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

Commit 6c37ffd

Browse files
authored
Merge pull request #184 from MicrosoftLearning/fix-lab11a
M11-Lab11a Changes to fix Windows 2017 build references
2 parents 51394bf + 7608f0d commit 6c37ffd

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Instructions/Labs/AZ400_M11_Configuring_Pipelines_as_Code_with_YAML.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ In this task, you will add a YAML build definition to the existing project.
182182
1. On the **Select a repository** pane, click **PartsUnlimited**.
183183
1. On the **Configure your pipeline** pane, click **ASP<nolink>.NET** to use this template as the starting point for your pipeline. This will open the **Review your pipeline YAML** pane.
184184

185-
> **Note**: The pipeline definition will be saved as a file named **azure-pipelines.yml** in the root of the repository. The file will contain the steps required to build and test a typical ASP<nolink>.NET solution. You can also customize the build as needed. In this scenario, you will update the **pool** to enforce the use of a VM running Visual Studio 2017.
185+
> **Note**: The pipeline definition will be saved as a file named **azure-pipelines.yml** in the root of the repository. The file will contain the steps required to build and test a typical ASP<nolink>.NET solution. You can also customize the build as needed. In this scenario, you will update the **pool** to enforce the use of a VM running Windows 2019.
186186

187187
1. Make sure `trigger` is **master**.
188188

@@ -202,8 +202,6 @@ In this task, you will add a YAML build definition to the existing project.
202202

203203
> **Note**: Each task from the YAML file is available for review, including any warnings and errors.
204204

205-
1. Return to the pipeline run pane, switch from the **Summary** tab to the **Tests** tab, and review test statistics.
206-
207205
#### Task 3: Add continuous delivery to the YAML definition
208206

209207
In this task, you will add continuous delivery to the YAML-based definition of the pipeline you created in the previous task.
@@ -233,7 +231,7 @@ In this task, you will add continuous delivery to the YAML-based definition of t
233231
jobs:
234232
- job: Deploy
235233
pool:
236-
vmImage: 'vs2017-win2016'
234+
vmImage: 'windows-2019'
237235
steps:
238236
```
239237

@@ -256,7 +254,7 @@ In this task, you will add continuous delivery to the YAML-based definition of t
256254

257255
> **Note**: By default, these two stages run independently. As a result, the build output from the first stage might not be available to the second stage without additional changes. To implement these changes, we will use one task to publish the build output at the end of the build stage and another to download it in the beginning of the deploy stage.
258256

259-
1. Place the cursor on a blank line at the end of the build stage to add another task. (right below `task: VSTest@2` )
257+
1. Place the cursor on a blank line at the end of the build stage to add another task. (right below `task: VSBuild@1` )
260258
1. On the **Tasks** pane, search for and select the **Publish build artifacts** task.
261259
1. On the **Publish build artifacts** pane, accept the default settings and click **Add**.
262260

0 commit comments

Comments
 (0)