Azure PowerShell (14) Bulk export of azure ASM ACL and arm NSG configuration information

Source: Internet
Author: User

Windows Azure Platform Family of articles Catalog

  Recently there is a customer requirement that requires bulk export of an ACL for an azure Classic vm (Access Control List) and an NSG (Network Security Group) setting for an arm VM.

It took me a little time to write a PowerShell script that was posted on my github:

  Https://github.com/leizhang1984/AzureChinaPowerShell/blob/master/ARM/ExportACL-NSG/exportACL-NSG.ps1

Discover Switch-azuremode-name Azureresourcemanager

This statement is not supported on the latest Azure PowerShell.

So this PowerShell operation needs to log in two times, the first is to perform an arm login, and the second is to perform an ASM login.

The exported CSV file is saved in the D packing directory with the file name: Azureacl-nsg.csv

  

Azure PowerShell (14) Bulk export of azure ASM ACL and arm NSG configuration information

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.