Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Azure by (13.1k points)
Can anyone help me how I can able to export Inbound Security rules so that, I can import it to different Network Security Group by importing them. Is it possible to do that?

1 Answer

0 votes
by (26.7k points)
edited by

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

Browse Categories

...