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.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Connect to the Azure Portal with the Lab Account
Log in to the portal using the supplied username and password.
- 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.
- 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.
- 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.
- 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.