This is a request that has been posed A LOT in the past… Being able to export your configurations in order to “replay” them. And during build, an announcement was made that the 1.3.0 release of Azure Powershell had a feature we were craving for!
It has not been added to the “azure cmdlet reference“, though we can see the options easily via the “Windows Powershell ISE” ;
Export-AzureRmResourceGroup -ResourceGroupName “kvaes-test-export” -Path “c:\temp”
So now let’s see how this baby works! First I’m going to retrieve my resource groups. And “kvaes-test-geo” seems like a good one to use…
An additional parameter is the “-Path” to which the .json file will be save.
After completion, the file shows up where it should be … (always a good sign!) 😉
Opening it up in an IDE… We can verify that an actual export was done with all resources inside.
- It is now possible to export Resource Groups!
- This means that exporting is possible for “Resource Manager” configurations only. So not for “Classic Mode” (Service Management).
- The content inside the export is of good quality. Though be aware that it still needs tweaking if you want to use it for things like Disaster Recovery or mass deployments!