You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 21, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: Instructions/Labs/AZ400_M06_L15_Azure_Deployments_Using_Resource_Manager_Templates.md
+15-5Lines changed: 15 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -182,6 +182,7 @@ In this task, you will modify the main template to reference the template module
182
182
name: 'linkedTemplate'
183
183
params: {
184
184
location: location
185
+
storageAccountName: storageAccountName
185
186
}
186
187
}
187
188
```
@@ -228,7 +229,7 @@ In this task, you will modify the main template to reference the template module
228
229
1. From a **Bash** session in the Cloud Shell pane, run the following to perform a deployment by using a newly uploaded template:
229
230
230
231
```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
232
233
```
233
234
234
235
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
238
239
1. From a **Bash** session in the Cloud Shell pane, run the following to perform a deployment by using a newly uploaded template:
239
240
240
241
```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
242
252
```
243
253
244
254
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
251
261
252
262
> **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.
253
263
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**.
255
265
256
266
### Exercise 2: Remove the Azure lab resources
257
267
@@ -267,13 +277,13 @@ In this task, you will use Azure Cloud Shell to remove the Azure resources provi
267
277
1. List all resource groups created throughout the labs of this module by running the following command:
268
278
269
279
```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
271
281
```
272
282
273
283
1. Delete all resource groups you created throughout the labs of this module by running the following command:
274
284
275
285
```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'
277
287
```
278
288
279
289
> **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