If you have provisioned resources manually, there is a way to generate an automation script from the whole resource group. To do so, follow these steps:
- Go to your resource group and click on the Export template blade:
Figure 2.7: Export template blade
In the newest version of the portal, the Automation script option has been renamed to Export template.
- You will see a new window where you can find the whole ARM template. This can be exported. What's more, this feature generates four additional scripts that can be used if you do not like JSON templates:
- CLI
- PowerShell
- .NET
- Ruby
All are equally functional, so it is only a matter of preference.
- In the following screenshot, we can see that the generated template is much more complex as it contains all the possible parameters that can be set for a resource:
Figure 2.8: ARM template generated from the portal
From my experience, I can tell that using such a generated template is a good...