- Lab
- A Cloud Guru
Deploy Resources using an ARM Template in the Azure Portal
Azure Resource Manager (ARM) templates provide a powerful way to define Azure resources and configuration, by essentially using a text file. This helps with consistency and automation of resource deployments. In this hands-on lab, you will learn how to create a storage account using an ARM template and walk through modifying the template to see how parameters and variables work.
Path Info
Table of Contents
-
Challenge
Load the ARM Template Using the Azure Portal
- Download the ARM template to your computer or copy the template text from this link.
- Within the Azure portal, choose Create a resource and use the Template deployment (deploy using custom templates) option.
- Choose Build your own template in the editor and either paste the template text you copied or click Load file and select the labstoragetemplate.json file you downloaded previously.
-
Challenge
Modify the ARM Template Parameters and Variables
- Modify the ARM template as follows:
- Add a parameter called
storageAccountKind
and modify the resource definition to use it. - Create a variable called
uniqueStorageAccountName
and use thestorageAccountName
parameter and auniqueString
function to provide the resource with a unique name. - Change the location of the storage account resource to be hard-coded as
West US
.
- Add a parameter called
- Save the template.
- Modify the ARM template as follows:
-
Challenge
Deploy the ARM Template using the Parameters File
- Edit the parameters file as follows:
- Set the
storageAccountName
toazurelab
. - Set the
storageAccountKind
toStorageV2
.
- Set the
- Save the parameters.
- Deploy the ARM template to the existing subscription and resource group provided for this hands-on lab.
- Edit the parameters file as follows:
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.