Resource group deployment

Aside from PowerShell in Azure Cloud Shell, you can use the Azure cmdlets to deploy entire resource groups. The idea of resource group deployment is that the groups can be integrated into your CI pipeline, much like DSC configurations and modules. The resource groups in Azure are also a way of defining Infrastructure as Code (IaC), like we saw in Chapter 12, PowerShell Desired State Configuration, with DSC.

The following screenshot from the Azure portal shows how a resource group deployment template might look like with different resource types, variables and parameters.

You can easily retrieve resource group templates from existing resource groups by choosing the option Automation Script. This includes the template to be used, as well as the variables and parameters that are fed into the template. We saw the same concept in Chapter 12PowerShell Desired State Configuration, with DSC configurations and configuration data.

For beginners, new templates can easily be created in Visual Studio. Starting with the Community Edition, it is possible to use the great editing functionality and a wizard-based structure to add resources to templates. You can define all portions of the resource manager template in an easy to use UI:

When developing new resource group templates, the VSCode extension Azure Resource Manager Tools also helps greatly, by providing IntelliSense in the context of resource groups. While the editing experience is not as polished as that of Visual Studio, it is still helpful.

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

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