From 27add8f5461e3f51d32dfe22525d96b854d66647 Mon Sep 17 00:00:00 2001 From: Cristian Vergara Date: Thu, 14 Jan 2021 11:14:13 -0500 Subject: [PATCH] Update AZ400_M10_Controlling_Deployments_using_Release_Gates.md Removing the comments '' on some commands, that is causing trouble while using the typing feature on the LODS lab environment. --- ...trolling_Deployments_using_Release_Gates.md | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/Instructions/Labs/AZ400_M10_Controlling_Deployments_using_Release_Gates.md b/Instructions/Labs/AZ400_M10_Controlling_Deployments_using_Release_Gates.md index 10f1f0cd2..ed545d062 100644 --- a/Instructions/Labs/AZ400_M10_Controlling_Deployments_using_Release_Gates.md +++ b/Instructions/Labs/AZ400_M10_Controlling_Deployments_using_Release_Gates.md @@ -104,25 +104,20 @@ In this task, you will create two Azure web apps representing the **Canary** and > **Note**: possible locations can be found by running the following command, use the **Name** on `` : `az account list-locations -o table` - ```bash RESOURCEGROUPNAME='az400m10l01-RG' az group create -n $RESOURCEGROUPNAME -l '' - ``` - + 1. To create an App service plan - ```bash SERVICEPLANNAME='az400m01l01-sp1' az appservice plan create -g $RESOURCEGROUPNAME -n $SERVICEPLANNAME --sku S1 - ``` + 1. Create two web apps with unique app names. - ```bash SUFFIX=$RANDOM$RANDOM az webapp create -g $RESOURCEGROUPNAME -p $SERVICEPLANNAME -n PU$SUFFIX-Canary az webapp create -g $RESOURCEGROUPNAME -p $SERVICEPLANNAME -n PU$SUFFIX-Prod - ``` - + 1. Navigate to the resource group **az400m10l01-RG** you created earlier in this task and review the resources you created. 1. In the list of resources, click the **Canary** web app. 1. On the **Canary** web app page, in the vertical menu on the left, in the **Settings** section, click **Application Insights**. @@ -317,15 +312,12 @@ In this task, you will use Azure Cloud Shell to remove the Azure resources provi 1. In the Azure portal, open the **Bash** shell session within the **Cloud Shell** pane. 1. List all resource groups created throughout the labs of this module by running the following command: - ```sh az group list --query "[?starts_with(name,'az400m10l01-RG')].name" --output tsv - ``` - + 1. Delete all resource groups you created throughout the labs of this module by running the following command: - ```sh az group list --query "[?starts_with(name,'az400m10l01-RG')].[name]" --output tsv | xargs -L1 bash -c 'az group delete --name $0 --no-wait --yes' - ``` + >**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.