Configuring and Deploying a VM ARM Template
Deploying IaC is an efficient strategy for consistent deployments. A particularly useful example is deploying VM infrastructure with an ARM template to minimize mistakes and ensure a standardized configuration. In this exercise, you will deploy a few resources that will include Virtual Hard Disks (VHDs). Your VM will contain both an OS and a data disk.
You are going to deploy the following resources with your ARM template:
- Windows Server 2019
- VNet
- Network Security Group (NSG)
Note
Microsoft has several ARM templates available on GitHub to help get you started: https://github.com/Azure/azure-quickstart-templates.
The following ARM template can be used to deploy the resources. The script is long and, therefore, has been split up into sections to explain what the ARM code does. To use the following script, you can download the complete template from the GitHub repo for this book: https://packt.link/Xo9Yw.
The...