Create JSON file from existing Resource Group in Azure

Easily create JSON templates for Azure!

John Savill

September 18, 2016

1 Min Read
Create JSON file from existing Resource Group in Azure

Q. How do I create a JSON file from an existing Resource Group in Azure?

A. Behind the scenes, everything with Azure Resource Manager is stored as JSON however to actually create resources you can use the portal, PowerShell along with JSON templates. If you have created resources and want to export out the JSON that represents a Resource Group deployment (which can then be used to redeploy) this can be accomplished using PowerShell and the modern Azure portal.

To use PowerShell use:

Export-AzureRmResourceGroup -ResourceGroupName

From the portal simply open up the Resource Group (Browse - Resource Groups - ) then select Automation script which will show the JSON for the entire content of the Resource Group including the option to download or add to your private library in Azure which can then be re-deployed at a later time.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like