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!

 

Posted by Chris Pietschmann

Chris is a Microsoft MVP and has 15+ years of experience building enterprise systems both in the cloud and on-premises. He is also a Microsoft Certified (MCSD) Azure Solutions Architect. He has a passion for technology and sharing what he learns with others to help enable them to learn faster and be more productive.

One Comment

  1. […] 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 […]

    Like

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s