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

Commit d3aee14

Browse files
authored
Merge pull request #399 from MicrosoftLearning/yashints-patch-1
Updated Lab 15 to fix a few issues
2 parents 6d38d69 + bbc90d9 commit d3aee14

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

Instructions/Labs/AZ400_M06_L15_Azure_Deployments_Using_Resource_Manager_Templates.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ In this task, you will modify the main template to reference the template module
182182
name: 'linkedTemplate'
183183
params: {
184184
location: location
185+
storageAccountName: storageAccountName
185186
}
186187
}
187188
```
@@ -228,7 +229,7 @@ In this task, you will modify the main template to reference the template module
228229
1. From a **Bash** session in the Cloud Shell pane, run the following to perform a deployment by using a newly uploaded template:
229230

230231
```bash
231-
az deployment group what-if --name az400m13l01deployment --resource-group az400m13l01-RG --template-file main.bicep
232+
az deployment group what-if --name az400m06l15deployment --resource-group az400m06l15-RG --template-file main.bicep
232233
```
233234

234235
1. When prompted to provide the value for 'adminUsername', type **Student** and press the **Enter** key.
@@ -238,7 +239,16 @@ In this task, you will modify the main template to reference the template module
238239
1. From a **Bash** session in the Cloud Shell pane, run the following to perform a deployment by using a newly uploaded template:
239240

240241
```bash
241-
az deployment group create --name az400m13l01deployment --resource-group az400m13l01-RG --template-file main.bicep
242+
LOCATION='<region>'
243+
```
244+
> **Note**: replace the name of the region with a region close to your location. If you do not know what locations are available, run the `az account list-locations -o table` command.
245+
246+
```bash
247+
az group create --name az400m06l15deployment --location $LOCATION
248+
```
249+
250+
```bash
251+
az deployment group create --name az400m06l15deployment --resource-group az400m06l15-RG --template-file main.bicep
242252
```
243253

244254
1. When prompted to provide the value for 'adminUsername', type **Student** and press the **Enter** key.
@@ -251,7 +261,7 @@ In this task, you will modify the main template to reference the template module
251261

252262
> **Note**: As a next step, you could now modularize the remaining resource definitions in the main deployment template, such as the network and virtual machine resource definitions.
253263
254-
> **Note**: If you are not planning on using the deployed resources, you should delete them to avoid associated charges. You can do so simply by deleting the resource group **az400m13l01-RG**.
264+
> **Note**: If you are not planning on using the deployed resources, you should delete them to avoid associated charges. You can do so simply by deleting the resource group **az400m06l15-RG**.
255265
256266
### Exercise 2: Remove the Azure lab resources
257267

@@ -267,13 +277,13 @@ In this task, you will use Azure Cloud Shell to remove the Azure resources provi
267277
1. List all resource groups created throughout the labs of this module by running the following command:
268278

269279
```bash
270-
az group list --query "[?starts_with(name,'az400m13l01-RG')].name" --output tsv
280+
az group list --query "[?starts_with(name,'az400m06l15-RG')].name" --output tsv
271281
```
272282

273283
1. Delete all resource groups you created throughout the labs of this module by running the following command:
274284

275285
```bash
276-
az group list --query "[?starts_with(name,'az400m13l01-RG')].[name]" --output tsv | xargs -L1 bash -c 'az group delete --name $0 --no-wait --yes'
286+
az group list --query "[?starts_with(name,'az400m06l15-RG')].[name]" --output tsv | xargs -L1 bash -c 'az group delete --name $0 --no-wait --yes'
277287
```
278288

279289
> **Note**: The command executes asynchronously (as determined by the --nowait parameter), so while you will be able to run another Azure CLI command immediately afterwards within the same Bash session, it will take a few minutes before the resource groups are actually removed.

0 commit comments

Comments
 (0)