Skip to content
This repository was archived by the owner on Nov 14, 2025. It is now read-only.

Commit ae5dab5

Browse files
authored
Merge pull request #664 from massimobonanni/ISSUE652-LAB07
LAB07 - Fix issue #652 and other typos in the lab
2 parents 98884c5 + f994093 commit ae5dab5

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

Instructions/Labs/AZ400_M03_L07_Configure_Pipelines_as_Code_with_YAML.md

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ In this task you will import the eShopOnWeb Git repository that will be used by
6161
1. Hover on the **main** branch then click the ellipsis on the right of the column.
6262
1. Click on **Set as default branch**.
6363

64+
> **Note**: if the main branch is already the default branch, the **Set as default branch** option is grayed out. In this case, continue with the instructions
65+
6466
#### Task 3: Create Azure resources
6567

6668
In this task, you will create an Azure web app by using the Azure portal.
@@ -69,13 +71,7 @@ In this task, you will create an Azure web app by using the Azure portal.
6971
1. In the Azure portal, in the toolbar, click the **Cloud Shell** icon located directly to the right of the search text box.
7072
1. If prompted to select either **Bash** or **PowerShell**, select **Bash**.
7173

72-
> **Note**: If this is the first time you are starting **Cloud Shell** and you are presented with the **You have no storage mounted** message, select the subscription you are using in this lab, and select **Create storage**.
73-
74-
> **Note:** For a list of regions and their alias, run the following command from the Azure Cloud Shell - Bash:
75-
76-
```bash
77-
az account list-locations -o table
78-
```
74+
> **Note**: If this is the first time you are starting **Cloud Shell** and you are presented with the **Getting started** pop-up, select **No storage account required** and the subscription you are using in this lab, and click on **Apply**.
7975

8076
1. From the **Bash** prompt, in the **Cloud Shell** pane, run the following command to create a resource group (replace the `<region>` placeholder with the name of the Azure region closest to you such as 'centralus', 'westeurope' or other region of choice).
8177

@@ -95,6 +91,8 @@ In this task, you will create an Azure web app by using the Azure portal.
9591
az appservice plan create --resource-group $RESOURCEGROUPNAME --name $SERVICEPLANNAME --sku B3
9692
```
9793

94+
> **Note**: If you get an error like "The subscription is not registered to use namespace 'Microsoft.Web'" when you run the previous command, run the following `az provider register --namespace Microsoft.Web` and then run the command that generated the error again.
95+
9896
1. Create a web app with a unique name.
9997

10098
```bash
@@ -163,7 +161,7 @@ In this task, you will add continuous delivery to the YAML-based definition of t
163161
- in the **Azure subscription** drop-down list, select the Azure subscription into which you deployed the Azure resources earlier in the lab, click **Authorize**, and, when prompted, authenticate by using the same user account you used during the Azure resource deployment.
164162
- in the **App Service name** dropdown list, select the name of the web app you deployed earlier in the lab.
165163
- in the **Package or folder** text box, **update** the Default Value to `$(Build.ArtifactStagingDirectory)/**/Web.zip`.
166-
- In the **Application and Configuration Settings** add `-UseOnlyInMemoryDatabase true -ASPNETCORE_ENVIRONMENT Development`
164+
- Open the **Application and Configuration Settings** section and, in the **App settings** textbox, add `-UseOnlyInMemoryDatabase true -ASPNETCORE_ENVIRONMENT Development`
167165

168166
1. Confirm the settings from the Assistant pane by clicking the **Add** button.
169167

@@ -207,16 +205,16 @@ In this task, you will add continuous delivery to the YAML-based definition of t
207205
downloadPath: "$(Build.ArtifactStagingDirectory)"
208206
```
209207

210-
1. If the YAML indentation is off, With the added task still selected in the editor, press the **Tab** key twice to indent it four spaces.
208+
1. If the YAML indentation is off, with the added task still selected in the editor, press the **Tab** key twice to indent it four spaces.
211209

212210
> **Note**: Here as well you may also want to add an empty line before and after to make it easier to read.
213211

214-
1. Click **Save**, on the **Save** pane, click **Save** again to commit the change directly into the main branch.
212+
1. Click **Validate and save**, and on the **Validate and save** pane, click **Save** again to commit the change directly into the main branch.
215213

216214
> **Note**: Since our original CI-YAML was not configured to automatically trigger a new build, we have to initiate this one manually.
217215

218216
1. From the Azure DevOps left menu, navigate to **Pipelines** and select **Pipelines** again.
219-
1. Open the **eShopOnWeb_MultiStageYAML** Pipeline and click **Run Pipeline**.
217+
1. Open the **eShopOnWeb_MultiStageYAML** Pipeline and click **Run pipeline**.
220218
1. Confirm the **Run** from the appearing pane.
221219
1. Notice the 2 different Stages, **Build .Net Core Solution** and **Deploy to Azure Web App** appearing.
222220
1. Wait for the pipeline to kick off and wait until it completes the Build Stage successfully.
@@ -228,7 +226,7 @@ In this task, you will add continuous delivery to the YAML-based definition of t
228226

229227
1. Click on **View**
230228
1. From the **Waiting for Review** pane, click **Permit**.
231-
1. Validate the message in the **Permit popup** window, and confirm by clicking **Permit**.
229+
1. Validate the message in the **Permit access?** window, and confirm by clicking **Permit**.
232230
1. This sets off the Deploy Stage. Wait for this to complete successfully.
233231

234232
> **Note**: If the deployment should fail, because of an issue with the YAML Pipeline syntax, use this as a reference:
@@ -408,10 +406,9 @@ YAML Pipelines as Code don't have Release/Quality Gates as we have with Azure De
408406
1. Click **Run Pipeline** to trigger a new Pipeline run; confirm by clicking **Run**.
409407
1. Just like before, the Build Stage kicks off as expected. Wait for it to complete successfully.
410408
1. Next, since we have the _environment:approvals_ configured for the Deploy Stage, it will ask for an approval confirmation before it kicks off.
411-
1. This is visible from the Pipeline view, where it says **Waiting (0/1 checks passed)**. A notification message is also displayed saying **approval needs review before this run can continue to Deploy to an Azure Web App**.
412-
1. Click the **View** button next to this message.
413-
1. From the appearing pane **Checks and manual validations for Deploy to Azure Web App**, click the **Approval Waiting** message.
414-
1. Click **Approve**.
409+
1. This is visible from the Pipeline view, where it says **Waiting (1 check in progress)**. A notification message is also displayed saying **1 approval needs review before this run can continue to Deploy to an Azure Web App**.
410+
1. Click the **Review** button next to this message.
411+
1. From the appearing pane **Waiting for review**, click the **Approve** button.
415412
1. This allows the Deploy Stage to kick off and successfully deploying the Azure Web App source code.
416413

417414
> **Note:** While this example only used the approvals, know the other checks such as Azure Monitor, REST API, etc... can be used in a similar way

0 commit comments

Comments
 (0)