Back
You can able to do that, by calling a Simple API :
https://management.azure.com/subscriptions/YOUR_SUBSCRIPTIONID/resourceGroups/YOUR_RESOURCE_GROUP_NAME/providers/Microsoft.Network/networkSecurityGroups/YOUR_NSG_NAME?api-version=2016-07-01
This is give you a JSON file with rules, also you require an Authorization header and in able to get that, go to your Azure, open developer mode in your browser and then open network tab, after that go to invoke and then copy the authorization header.
I hope this will help.
Want to become an Azure expert? join Azure Developer training now!!
31k questions
32.8k answers
501 comments
693 users