Azure Resource Manager (ARM) templates provide a powerful way in which to define Azure resources and configuration, by essentially using a text file. This helps with the consistency and automation of resource deployments.
In this hands-on lab, you will learn how to locate and leverage one of Microsoft’s public quickstart ARM Templates.
**Scenario**
To help you walk through the lab, consider the following scenario:
You work as a cloud administrator for a company that has recently migrated to Azure with the help of a third-party consultancy.
You’re just beginning to use infrastructure-as-code, and need to build an ARM template for a storage account. You’re not sure where to start, so the third-party consultancy recommended using Microsoft’s quickstart templates to get up and running.
You need to create a General-purpose V2 Storage Account with multiple blob containers. Premium storage is required, with LRS replication configured.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Get Started and Locate a Template
Log in to the Azure Portal using the credentials that have been provided for you (we’ll use the Azure Portal in a later objective).
Locate a quickstart template for creating a Storage Account with multiple Blob Containers.
Note: There are several ways to locate a QuickStart ARM Template, as shown below:
- Edit and Deploy a QuickStart ARM Template
- Edit the quickstart template in the Azure Portal to meet the requirements of the scenario (General-purpose v2 Storage, Premium Storage, LRS).
- Deploy the quickstart template to Central US using the existing Subscription and Resource Group.
Note: There are several ways to deploy a template, as shown below:
- Use Deploy to Azure from the GitHub page
- Use Deploy to Azure from the Microsoft Templates page
- Manually select the template from the dropdown list within the ARM Resource settings page
Template deployment > Deploy a Custom Template
in the Marketplace within the Azure Portal. The teamplate is now named: storage-multi-blob-container
Note: The Microsoft ARM Template reference for Storage Accounts provides detailed information on how to define a Storage Account within an ARM template.