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

Commit b997986

Browse files
authored
Update AZ400_M03_L04 for UI changes
Changes to match the current UI and for clarity.
1 parent 9cb9816 commit b997986

1 file changed

Lines changed: 21 additions & 19 deletions

File tree

Instructions/Labs/AZ400_M03_L04_Enabling_Continuous_Integration_with_Azure_Pipelines.md

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -91,19 +91,19 @@ Let's start by importing the build pipeline named [eshoponweb-ci-pr.yml](https:/
9191

9292
In this task, you will add policies to the main branch and only allow changes using Pull Requests that comply with the defined policies. You want to ensure that changes in a branch are reviewed before they are merged.
9393

94-
1. Go to **Repo>Branches** section.
94+
1. Go to **Repos>Branches** section.
9595
1. On the **Mine** tab of the **Branches** pane, hover the mouse pointer over the **main** branch entry to reveal the ellipsis symbol on the right side.
9696
1. Click the ellipsis and, in the pop-up menu, select **Branch Policies**.
9797
1. On the **main** tab of the repository settings, enable the option for **Require minimum number of reviewers**. Add **1** reviewer and check the box **Allow requestors to approve their own changes**(as you are the only user in your project for the lab)
98-
1. On the **main** tab of the repository settings, click on **Add Build Validation** and in the Build pipeline list, select **eshoponweb-ci-pr** then click **Save**.
98+
1. On the **main** tab of the repository settings, in the **Build Validation** section, click **+** (Add a new build policy) and in the **Build pipeline** list, select **eshoponweb-ci-pr** then click **Save**.
9999

100100
#### Task 3: Working with Pull Requests
101101

102102
In this task, you will use the Azure DevOps portal to create a Pull Request, using a new branch to merge a change into the protected **main** branch.
103103

104-
1. Navigate to the **Repos** section
105-
1. Create a new branch named **Feature01** based on the **main** branch
106-
1. Navigate to the **/eShopOnWeb/src/Web/Program.cs** file as part of the **Feature01** branch and make the following change on the first line:
104+
1. Navigate to the **Repos** section in the eShopOnWeb navigation and click **Branches**.
105+
1. Create a new branch named **Feature01** based on the **main** branch.
106+
2. Click **Feature01* and navigate to the **/eShopOnWeb/src/Web/Program.cs** file as part of the **Feature01** branch and make the following change on the first line:
107107

108108
```csharp
109109
// Testing my PR
@@ -117,8 +117,8 @@ In this task, you will use the Azure DevOps portal to create a Pull Request, usi
117117
- At least 1 user should review and approve the changes.
118118
- Build validation, you will see that the build **eshoponweb-ci-pr** was triggered automatically
119119

120-
1. After all validations are successful, on the top-right click on **Approve**. Now you can click on **Complete**.
121-
1. On the **Complete Pull Request** tab, Click on **Complete Merge**
120+
1. After all validations are successful, on the top-right click on **Approve**. Now from the **Set auto-complete** dropdown you can click on **Complete**.
121+
1. On the **Complete Pull Request** tab, click on **Complete Merge**
122122

123123
### Exercise 2: Configure CI Pipeline as Code with YAML
124124

@@ -132,7 +132,7 @@ Let's start by importing the CI pipeline named [eshoponweb-ci.yml](https://githu
132132

133133
1. Go to **Pipelines>Pipelines**
134134

135-
1. Click on **Create Pipeline** button
135+
1. Click on **New Pipeline** button
136136

137137
1. Select **Azure Repos Git (YAML)**
138138

@@ -154,7 +154,7 @@ Let's start by importing the CI pipeline named [eshoponweb-ci.yml](https://githu
154154

155155
The default build pipeline definition doesn't enable Continuous Integration.
156156

157-
1. Now, you need to replace the **Trigger** and **Resources** sections with the following code:
157+
1. Now, you need to replace the **trigger: none** code with the following code:
158158

159159
```YAML
160160
trigger:
@@ -170,7 +170,7 @@ The default build pipeline definition doesn't enable Continuous Integration.
170170
171171
Since you enabled Branch Policies, you need to pass by a Pull Request in order to update your code.
172172
173-
1. Click the **Save** button to save the pipeline definition.
173+
1. Click the **Save** button (not **Save and run**) to save the pipeline definition.
174174
1. Select **Create a new branch for this commit**
175175
1. Keep the default branch name and **Start a pull request** checked.
176176
1. Click on **Save**
@@ -188,21 +188,23 @@ In this task, you will create a Pull Request, using a new branch to merge a chan
188188
189189
1. Navigate to the **Repos** section
190190
1. Create a new branch named **Feature02** based on the **main** branch
191-
1. Navigate to the **/eShopOnWeb/src/Web/Program.cs** file as part of the **Feature02** branch and remove the first line:
191+
2. Click the new **Feature02** branch
192+
3. Navigate to the **/eShopOnWeb/src/Web/Program.cs** file and remove the first line:
192193

193194
```csharp
194195
// Testing my PR
195196
```
196197

197198
1. Click on **Commit > Commit** (leave default commit message).
198-
1. A message will pop-up, proposing to create a Pull Request (as your **Feature02** branch is now ahead in changes, compared to **main**). Click on **Create a Pull Request**.
199-
1. In the **New pull request** tab, leave defaults and click on **Create**.
200-
1. The Pull Request will show some pending requirements, based on the policies applied to the target **main** branch.
201-
1. After all validations are successful, on the top-right click on **Approve**. Now you can click on **Complete**.
202-
1. On the **Complete Pull Request** tab, Click on **Complete Merge**
203-
1. Go back to **Pipelines>Pipelines**, you will notice that the build **eshoponweb-ci** was triggered automatically after the code was merged.
204-
1. Click on the **eshoponweb-ci** build then select the last run.
205-
1. After its successful execution, click on **Related > Published** to check the published artifacts:
199+
1. A message will pop-up, proposing to create a Pull Request (as your **Feature02** branch is now ahead in changes, compared to **main**).
200+
3. Click on **Create a Pull Request**.
201+
4. In the **New pull request** tab, leave defaults and click on **Create**.
202+
5. The Pull Request will show some pending requirements, based on the policies applied to the target **main** branch.
203+
6. After all validations are successful, on the top-right click on **Approve**. Now from the **Set auto-complete** dropdown you can click on **Complete**.
204+
7. On the **Complete Pull Request** tab, Click on **Complete Merge**
205+
8. Go back to **Pipelines>Pipelines**, you will notice that the build **eshoponweb-ci** was triggered automatically after the code was merged.
206+
9. Click on the **eshoponweb-ci** build then select the last run.
207+
10. After its successful execution, click on **Related > Published** to check the published artifacts:
206208
- Bicep: the infrastructure artifact
207209
- Website: the app artifact
208210

0 commit comments

Comments
 (0)