Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Export Azure resource group as JSON by using PowerShell

$
0
0

Summary: Use the Azure Resource Manager cmdlets to export a resource group as a JSON configuration.

Hey, Scripting Guy! Question I’ve heard that JSON is used to define features in Azure Resource Manager. Is there a way to export a resource group in JSON format?

Hey, Scripting Guy! Answer Just use the Export-AzureRMResourceGroup cmdlet and provide the resource group name. It will automatically save a JSON file that matches the resource group name in your current folder. Here is an example:

Export-AzureRMResourceGroup –resourcegroupname HSG-AzureRG

The Doctor


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>