A company deploys Azure virtual machines by using Azure Resource Manager (ARM) templates stored in a Git repository. The development, staging, and production environments each have their own template file. The files were meant to differ only in VM size, but other settings have drifted between them over time. In addition, the same virtual network resources are copied into the templates of four projects.
You need to redesign the templates to meet the following requirements:
- A single template must define the VMs for all three environments, with the VM size selected for each environment.
- A change to the virtual network definition must be made in one place and apply to all four projects.
- All templates must remain in the Git repository.
Which two actions should you perform? Each correct answer presents part of the solution.
A vmSize parameter lets one ARM template serve development, staging and production with different VM sizes. This removes the separate per-environment files that had drifted apart. Moving the shared virtual network resources into their own linked template lets all four projects use the updated definition in subsequent deployments. Both changes keep the templates in Git, so they stay versioned and reviewable.