Example 1 – exporting a resource group to an ARM template

The first example is about the export of a complete resource group, that is, a resource container and any number of other resources. To export a resource group, perform the following steps:

  1. In the navigation section of the Resource groups dashboard, click on Automation script, as shown in the following screenshot:
  1. Now you can see the resource group template. Click on the Download button to save the template on your local site and to finalize your work:
  1. Alternatively, you also have the option to save your template directly on the Azure platform. Press the Add to library button for that:
  1. Now, open the Save template blade. Here, you must type in a value for the Name and the Description of the template, then click the Save button:
  1. If you want to find your template within the Azure platform, click the All services list and then the Templates option:
  1. Open the Templates blade with a list of all available templates:
  1. Let's go back to the Automation script blade. In addition to the template in the JSON data format, special scripts (or classes) are also provided for Azure CLI, Azure PowerShell, .NET, or Ruby. You will see this by pressing one of the links in the navigation area. These scripts help you to deploy the template:
Not all resource types support the export template function. If your resource group only contains a storage account, a virtual machine, or a virtual network, you will not see an error. However, if you have created other resource types, you may see an error stating that there is a problem with the export.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.220.163.91