Powershell script to export Azure Network Security Group rules in all of the Subscriptions
A script used to get the list of all Network Security Groups (NSGs) in all your Azure Subscriptions.Finally, it will export the report into a csv file in the location specified. Credits to Charbel Nemnom – https://charbelnemnom.com