Introduction
Azure Resource Manager (ARM) templates provide a few features that can help you deploy software to different environments.
Suppose you're managing a software team that's developing an inventory system for your partner companies. Each environment that the software will be deployed to will have different policies implemented through different Azure storage account SKUs. You have an ARM template that deploys a storage account and can be run on each environment. But you'd like to make it easier to change inputs for each deployment environment. You decide to use variables and functions in the ARM template and parameter files for inputs.
In this module, you make your ARM template reusable for different environments by adding variables and expressions via Resource Manager functions. You also add better tracking and organization of your deployed resources by using tags. You complete the goal of improving the flexibility of your deployments by using parameter files.
Learning objectives
In this module, you will:
- Create an expression for a unique value by using ARM template functions.
- Reuse your expression by storing it in an ARM template variable.
- Organize and track your deployed Azure resources by using resource tags.
- Manage multiple deployment parameters by using ARM template parameter files.
Prerequisites
- Familiarity with Azure, including the Azure portal, subscriptions, resource groups, and resource definitions.
- An Azure account. You can get a free account here.
- Visual Studio Code, installed locally.
- The Azure Resource Manager Tools for Visual Studio Code extension, installed locally.
- One of these tools:
- The latest version of the Azure CLI tools, installed locally.
- The latest version of Azure PowerShell, installed locally.
Need help? See our troubleshooting guide or provide specific feedback by reporting an issue.