Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit 9030c09

Browse files
committed
Quick fixes typos and numbering
- Removing duplicated Lab requirements - Typos and numbering fixes
1 parent e85910a commit 9030c09

1 file changed

Lines changed: 24 additions & 26 deletions

File tree

Instructions/Labs/AZ400_M06_L12_Azure_Deployments_Using_Resource_Manager_Templates.md

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ lab:
1010

1111
## Lab requirements
1212

13-
## Lab requirements
14-
1513
- This lab requires **Microsoft Edge** or an [Azure DevOps supported browser.](https://docs.microsoft.com/azure/devops/server/compatibility)
1614

1715
- **Set up an Azure DevOps organization:** If you don't already have an Azure DevOps organization that you can use for this lab, create one by following the instructions available at [Create an organization or project collection](https://docs.microsoft.com/azure/devops/organizations/accounts/create-organization).
@@ -57,7 +55,7 @@ In this task you will import the eShopOnWeb Git repository that will be used by
5755

5856
![Import Repository](images/import-repo.png)
5957

60-
1. The repository is organized the following way:
58+
2. The repository is organized the following way:
6159
- **.ado** folder contains Azure DevOps YAML pipelines.
6260
- **.devcontainer** folder container setup to develop using containers (either locally in VS Code or GitHub Codespaces).
6361
- **.azure** folder contains Bicep&ARM infrastructure as code templates used in some lab scenarios.
@@ -73,28 +71,28 @@ In this lab, you will review an Azure Bicep template and simplify it using a reu
7371
In this task, you will use Visual Studio Code to create an Azure Bicep template
7472

7573
1. In the browser tab you have your Azure DevOps project open, navigate to **Repos** and **Files**. Open the `.azure\bicep` folder and find the `simple-windows-vm.bicep` file.
76-
74+
7775
![Simple-windows-vm.bicep file](./images/m06/browsebicepfile.png)
7876

79-
1. Review the template to get a better understanding of its structure. There are some parameters with types, default values and validation, some variables, and quite a few resources with these types:
77+
2. Review the template to get a better understanding of its structure. There are some parameters with types, default values and validation, some variables, and quite a few resources with these types:
8078

8179
- Microsoft.Storage/storageAccounts
8280
- Microsoft.Network/publicIPAddresses
8381
- Microsoft.Network/virtualNetworks
8482
- Microsoft.Network/networkInterfaces
8583
- Microsoft.Compute/virtualMachines
8684

87-
1. Pay attention to how simple the resource definitions are and the ability to implicitly reference symbolic names instead of explicit `dependsOn` throughout the template.
85+
3. Pay attention to how simple the resource definitions are and the ability to implicitly reference symbolic names instead of explicit `dependsOn` throughout the template.
8886

8987
#### Task 2: Create a bicep module for storage resources
9088

9189
In this task, you will create a storage template module **storage.bicep** which will create a storage account only and will be imported by the main template. The storage template module needs to pass a value back to the main template, **main.bicep**, and this value will be defined in the outputs element of the storage template module.
9290

9391
1. First we need to remove the storage resource from our main template. From the top right corner of your browser window click the **Edit** button:
94-
92+
9593
![Edit button](./images/m06/edit.png)
9694

97-
1. Now delete the storage resource:
95+
2. Now delete the storage resource:
9896

9997
```bicep
10098
resource storageAccount 'Microsoft.Storage/storageAccounts@2022-05-01' = {
@@ -107,15 +105,15 @@ In this task, you will create a storage template module **storage.bicep** which
107105
}
108106
```
109107

110-
1. Commit the file, however, we're not done with it yet.
108+
3. Commit the file, however, we're not done with it yet.
111109

112110
![Commiting the file](./images/m06/commit.png)
113111

114-
1. Next, hover your mouse over the bicep folder and click the elipsis icon, then select **New**, and **File**. Enter **storage.bicep** for the name and click **Create**.
112+
4. Next, hover your mouse over the bicep folder and click the ellipsis icon, then select **New**, and **File**. Enter **storage.bicep** for the name and click **Create**.
115113

116114
![New file menu](./images/m06/newfile.png)
117115

118-
1. Now copy the following code snippet into the file and commit your changes:
116+
5. Now copy the following code snippet into the file and commit your changes:
119117

120118
```bicep
121119
@description('Location for all resources.')
@@ -142,7 +140,7 @@ In this task, you will modify the main template to reference the template module
142140

143141
1. Navigate back to the `simple-windows-vm.bicep` file and click on the **Edit** button once again.
144142

145-
1. Next, add the following code after the variables:
143+
2. Next, add the following code after the variables:
146144

147145
```bicep
148146
module storageModule './storage.bicep' = {
@@ -154,7 +152,7 @@ In this task, you will modify the main template to reference the template module
154152
}
155153
```
156154

157-
1. We also need to modify the reference to the storage account blob URI in our virtual machine resource to use the output of the module instead. Find the virtual machine resource and replace the diagnosticsProfile section with the following:
155+
3. We also need to modify the reference to the storage account blob URI in our virtual machine resource to use the output of the module instead. Find the virtual machine resource and replace the diagnosticsProfile section with the following:
158156

159157
```bicep
160158
diagnosticsProfile: {
@@ -165,44 +163,44 @@ In this task, you will modify the main template to reference the template module
165163
}
166164
```
167165

168-
1. Review the following details in the main template:
166+
4. Review the following details in the main template:
169167

170168
- A module in the main template is used to link to another template.
171169
- The module has a symbolic name called `storageModule`. This name is used for configuring any dependencies.
172170
- You can only use **Incremental** deployment mode when using template modules.
173171
- A relative path is used for your template module.
174172
- Use parameters to pass values from the main template to the template modules.
175173

176-
1. Commit the template.
174+
5. Commit the template.
177175

178176
#### Task 4: Deploy resources to Azure by YAML pipelines
177+
179178
1. Navigate back to the **Pipelines** pane in of the **Pipelines** hub.
180-
1. In the **Create your first Pipeline** window, click **Create pipeline**.
179+
2. In the **Create your first Pipeline** window, click **Create pipeline**.
181180

182181
> **Note**: We will use the wizard to create a new YAML Pipeline definition based on our project.
183182
184-
1. On the **Where is your code?** pane, click **Azure Repos Git (YAML)** option.
185-
1. On the **Select a repository** pane, click **eShopOnWeb_MultiStageYAML**.
186-
1. On the **Configure your pipeline** pane, scroll down and select **Existing Azure Pipelines YAML File**.
187-
1. In the **Selecting an existing YAML File** blade, specify the following parameters:
183+
3. On the **Where is your code?** pane, click **Azure Repos Git (YAML)** option.
184+
4. On the **Select a repository** pane, click **eShopOnWeb_MultiStageYAML**.
185+
5. On the **Configure your pipeline** pane, scroll down and select **Existing Azure Pipelines YAML File**.
186+
6. In the **Selecting an existing YAML File** blade, specify the following parameters:
188187
- Branch: **main**
189188
- Path: **.ado/eshoponweb-cd-windows-cm.yml**
190-
1. Click **Continue** to save these settings.
191-
1. In the variables section, choose a name for your resource group, set the desired location and replace the value of the service connection with one of your existing service connections you created earlier.
192-
1. Click the **Save and run** button from the top right corder and when the commit dialog appeared, click **Save and run** again.
189+
7. Click **Continue** to save these settings.
190+
8. In the variables section, choose a name for your resource group, set the desired location and replace the value of the service connection with one of your existing service connections you created earlier.
191+
9. Click the **Save and run** button from the top right corder and when the commit dialog appeared, click **Save and run** again.
193192

194193
![Save and running the YAML pipeline after making changes](./images/m06/saveandrun.png)
195194

196-
1. Wait for the deploymemnt to finish and review the results.
195+
10. Wait for the deploymemnt to finish and review the results.
197196
![Successful resource deployment to Azure using YAML pipelines](./images/m06/deploy.png)
198197

199198
#### Task 1: Remove the Azure lab resources
200199

201200
In this task, you will use Azure Cloud Shell to remove the Azure resources provisioned in this lab to eliminate unnecessary charges.
202201

203202
1. In the Azure portal, open the **Bash** shell session within the **Cloud Shell** pane.
204-
205-
1. Delete all resource groups you created throughout the labs of this module by running the following command (replace the resource gruop name with what you chose):
203+
2. Delete all resource groups you created throughout the labs of this module by running the following command (replace the resource group name with what you chose):
206204

207205
```bash
208206
az group list --query "[?starts_with(name,'AZ400-EWebShop-NAME')].[name]" --output tsv | xargs -L1 bash -c 'az group delete --name $0 --no-wait --yes'

0 commit comments

Comments
 (0)