- Lab
- A Cloud Guru
Deploying Azure Templates
In this hands-on lab, we use the Azure portal to modify the QuickStart template to add an additional data disk prior to deployment. We will then deploy this template and confirm that the changes we made were successfully deployed.
Path Info
Table of Contents
-
Challenge
Connect to the Azure Portal with the Lab Account
Log in to the portal using the supplied username and password.
-
Challenge
Use Template Deployment and Edit the Template
-
From the portal home, click + Create.
-
Search for the type template.
-
Select Template deployment (deploy using custom templates).
-
Select Create a Windows virtual machine.
-
Click Edit template.
-
Add a second data disk with
"lun": 1
. ThedataDisk
section starts around line 290. Edit that section so it appears as:"dataDisks": [ { "diskSizeGB": 1023, "lun": 0, "createOption": "Empty" }, { "diskSizeGB": 1023, "lun": 1, "createOption": "Empty" } ]
-
Change the instance type to
Standard_D2s_v3
. ThevmSize
section starts around line 130. Change thedefaultValue
parameter to the specified instance type. -
Click Save.
-
-
Challenge
Edit the Parameters
- Click Edit parameters.
- Change the
"adminUsername"
parameter to"localadmin"
, with the quotation marks. - Change the
"dnsLabelPrefix"
parameter to"vm1446aaadd"
, with the quotation marks. Replaceaaa
with your initials anddd
with your the date of your choosing (e.g.,"vm1446rb31"
). - Click Save.
-
Challenge
Create the Virtual Machine
- Enter a 12-72 character password. Follow the on-screen instructions until a green check mark appears.
- Click Review + create, then click Create.
-
Challenge
Verify Deployment by Clicking the Bell on the Azure Menu
- Click the bell on the Azure menu.
- Once it is complete, click Home > All resources > simple-vm > Settings > Disks.
- Verify there are two data disks, LUN 0 and LUN 1. This shows the template was edited successfully.
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.