fbpx

The latest release of Azure PowerShell includes the new “Export-AzureRMResourceGroup” cmdlet. This cmdlet allows you to specify the name of a Resource Group and it will export the resources for that group into an ARM Template json file. This new cmdlet is part of the new Azure PowerShell release that was just released today!

Export-AzureRMResourceGroup -ResourceGroupName “MyResourceGroup”

When run, this cmdlet will export the full configurations of the specified Azure Resource Group to a json file. Combining this capability along with the Azure QuickStart Templates and you should have everything you need to start automating all your Azure Resource deployments with ARM Templates!

Download Azure PowerShell

One thing that I found isn’t supported yet is Azure Service Bus. Although ARM Templates do support some of the features of Azure Service Bus, the Export-AzureRMResourceGroup cmdlet doesn’t support exporting Service Bus resources at the time of writing this. Hopefully it’ll come in a future release, but for now I have submitted the following ARM Templates to the Azure QuickStart Templates:

Azure ARM Templates are the method of automating the configuration of both Azure and Azure Stack resources using an Infrastructure as Code approach. In the past the recommended method was to either use the PowerShell or Xplat-CLI, but going forward the recommended method of managing Azure and Azure Stack deployments is going to be ARM Templates. ARM Templates are easier to manage and offer a big improvement over procedural methods like PowerShell or Xplat-CLI for scripting entire deployments.

Happy ARM Templating!

 

Microsoft MVP

Chris Pietschmann is a Microsoft MVP, HashiCorp Ambassador, and Microsoft Certified Trainer (MCT) with 20+ years of experience designing and building Cloud & Enterprise systems. He has worked with companies of all sizes from startups to large enterprises. He has a passion for technology and sharing what he learns with others to help enable them to learn faster and be more productive.
HashiCorp Ambassador Microsoft Certified Trainer (MCT) Microsoft Certified: Azure Solutions Architect

Discover more from Build5Nines

Subscribe now to keep reading and get access to the full archive.

Continue reading