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