Creating an ARM template
In this section, we will be discussing how you can manage your Azure infrastructure as code and create reusable templates to manage and recreate your cloud environment.
One of the cornerstones of the modern DevOps approach is the ability to manage and provision the infrastructure for a distributed application with a declarative or even procedural set of definition files that can be versioned and stored together with the application source code. In this Infrastructure-as-Code (IaC) approach, these files should be created in such a way that whatever the current state of the infrastructure, executing these resources should always lead to the same desired state (that is, idempotency).
In the Azure stack, the infrastructure resources created within a subscription are managed by a service called ARM. Azure Resource Manager (ARM) provides a consistent management tier that allows developers to interact with it to execute infrastructure...