mirror of
https://github.com/MicrosoftLearning/AZ-104-MicrosoftAzureAdministrator.git
synced 2026-02-04 23:59:08 +00:00
Update LAB_03-Manage_Azure_Resources_by_Using_ARM_Templates.md
This commit is contained in:
parent
abd1b7693b
commit
66edfa5eeb
@ -6,29 +6,30 @@ lab:
|
||||
|
||||
# Lab 03 - Manage Azure resources by Using ARM Templates
|
||||
|
||||
## Lab requirements
|
||||
|
||||
This lab requires an Azure subscription.
|
||||
|
||||
# Estimated timing: 30 minutes
|
||||
|
||||
## Lab scenario
|
||||
Your team has explored the basic Azure administrative capabilities such as provisioning resources and organizing them based on resource groups. Next, your team wants to look at ways to automate and simplify deployments. Organizations often look to automation to reduce administrative overhead, reduce human error or increase consistency, and as a way to enable administrators to work on more complex or creative tasks.
|
||||
|
||||
**Note:** An **[interactive lab simulation](https://mslabs.cloudguides.com/guides/AZ-104%20Exam%20Guide%20-%20Microsoft%20Azure%20Administrator%20Exercise%205)** is available that allows you to click through this lab at your own pace. You may find slight differences between the interactive simulation and the hosted lab, but the core concepts and ideas being demonstrated are the same.
|
||||
|
||||
## Lab requirements
|
||||
|
||||
This lab requires
|
||||
|
||||
## Estimated timing: 30 minutes
|
||||
|
||||
## Architecture diagram
|
||||
|
||||

|
||||
|
||||
## Tasks
|
||||
|
||||
+ Task 1: Create an ARM template for deployment of an Azure managed disk.
|
||||
+ Task 2: Edit an ARM template and then create an Azure managed disk by using the template.
|
||||
+ Task 3: Review the ARM template-based deployment of the managed disk.
|
||||
|
||||
## Architecture diagram
|
||||
|
||||

|
||||
|
||||
## Task 1: Create an ARM template for deployment of an Azure managed disk.
|
||||
In this task, you will use the Azure portal to generate an ARM template. You can then download the template to use in future deployments. An organization that plans to deploy hundreds or thousands of disks could leverage one or more templates to help automate the deployments. In this task, we use the Azure portal. You can also decompile the template into Azure Bicep.
|
||||
|
||||
In this task, you will use the Azure portal to generate an ARM template. You can then download the template to use in future deployments. An organization that plans to deploy hundreds or thousands of disks could leverage one or more templates to help automate the deployments.
|
||||
|
||||
1. Sign in to the **Azure portal** - `http://portal.azure.com`.
|
||||
|
||||
@ -40,10 +41,10 @@ In this task, you will use the Azure portal to generate an ARM template. You can
|
||||
|
||||
| Setting | Value |
|
||||
| --- | --- |
|
||||
| Subscription | The subscription that you are using |
|
||||
| Resource Group | `az104-rg1` (If necessary, select **Create new**.)
|
||||
| Subscription | <your subscription> |
|
||||
| Resource Group | `az104-rg3` (If necessary, select **Create new**.)
|
||||
| Disk name | `az104-disk1` |
|
||||
| Region | **East US** |
|
||||
| Region | <your region> |
|
||||
| Availability zone | **No infrastructure redundancy required** |
|
||||
| Source type | **None** |
|
||||
| Size | **32 Gb** |
|
||||
@ -61,12 +62,12 @@ In this task, you will use the Azure portal to generate an ARM template. You can
|
||||
|
||||
1. Extract the content of the downloaded file into the **Downloads** folder on your computer.
|
||||
|
||||
|
||||
1. Close all **File Explorer** windows.
|
||||
|
||||
1. In the Azure portal, cancel the deployment of the managed disk.
|
||||
|
||||
## Task 2: Edit an ARM template and then create an Azure managed disk by using the template
|
||||
## Task 2: Edit an ARM template and then create an Azure managed disk by using the template.
|
||||
|
||||
In this task, you will use the ARM template that you created to deploy a new managed disk. This task outlines the general process of having template-based deployments so that you can quicky and easily repeat deployments. If you needed to change a parameter or two, you can easily modify the template in the future.
|
||||
|
||||
1. In the Azure portal, search for and select `Deploy a custom template`.
|
||||
@ -102,9 +103,9 @@ In this task, you will use the ARM template that you created to deploy a new man
|
||||
|
||||
| Setting | Value |
|
||||
| --- |--- |
|
||||
| Subscription | *the name of the Azure subscription you are using in this lab* |
|
||||
| Resource Group | `az104-rg1` (If necessary, select **Create new**)|
|
||||
| Region | the name of any Azure region available in the subscription you are using in this lab, typically **East US**. |
|
||||
| Subscription | <your subscription> |
|
||||
| Resource Group | `az104-rg3` (If necessary, select **Create new**)|
|
||||
| Region | <your region> |
|
||||
| Disk Name | `az104-disk1` |
|
||||
| Location | the value of the location parameter you noted in the previous task |
|
||||
| Sku | **Standard_LRS** |
|
||||
@ -121,17 +122,22 @@ In this task, you will use the ARM template that you created to deploy a new man
|
||||
|
||||
1. Verify that the deployment completed successfully.
|
||||
|
||||
## Task 3: Review the ARM template-based deployment of the managed disk
|
||||
## Task 3: Review the ARM template-based deployment of the managed disk.
|
||||
|
||||
In this task, you verify that the deployment has finished successfuly. All prior deployments are documented in the resource group that the deployment was targeted to. This review will show the details around the time and length of deployment, which can be helpful when troubleshooting. It is often a good practice to review the first few template-based deployments to ensure success prior to using the templates for large-scale operations.
|
||||
|
||||
1. In the Azure portal, search for and select **Resource groups**.
|
||||
|
||||
1. In the list of resource groups, click **az104-rg1**.
|
||||
1. In the list of resource groups, click **az104-rg3**.
|
||||
|
||||
1. On the **az104-rg1** resource group blade, in the **Settings** section, click **Deployments**.
|
||||
1. On the **az104-rg3** resource group blade, in the **Settings** section, click **Deployments**.
|
||||
|
||||
1. From the **az104-rg1 - Deployments** blade, click the first entry in the list of deployments and review the content of the **Input** and **Template** blades.
|
||||
1. From the **az104-rg3 - Deployments** blade, click the first entry in the list of deployments and review the content of the **Input** and **Template** blades.
|
||||
|
||||
## Task 4: Deploy your template using Azure PowerShell
|
||||
|
||||
|
||||
## Task 5: Deploy your template using CLI
|
||||
|
||||
## Review
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user