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

Commit deeeb46

Browse files
authored
Update AZ400_M11_Configuring_Pipelines_as_Code_with_YAML.md
1 parent 7a96f6c commit deeeb46

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

Instructions/Labs/AZ400_M11_Configuring_Pipelines_as_Code_with_YAML.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -178,22 +178,29 @@ In this task, you will add a YAML build definition to the existing project.
178178

179179
1. On the **Where is your code?** pane, click **Azure Repos Git (YAML)** option.
180180
1. On the **Select a repository** pane, click **PartsUnlimited**.
181-
2. 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.
181+
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.
182182

183183
> **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.
184184

185-
3. Make sure `trigger` is **master**.
185+
1. Make sure `trigger` is **master**.
186186

187187
> **Note**: Review in Repos if your repository has **master** or **main** branch, organizations could choose default branch name for new repos: [Change the default branch](https://docs.microsoft.com/en-us/azure/devops/repos/git/change-default-branch?view=azure-devops#choosing-a-name).
188188

189-
4. On the **Review your pipeline YAML** pane, in line **10**, replace `vmImage: 'windows-latest'` with `vmImage: 'vs2017-win2016'`.
190-
5. On the **Review your pipeline YAML** pane, click **Save and run**.
191-
6. On the **Save and run** pane, accept the default settings and click **Save and run**.
192-
7. On the pipeline run pane, in the **Jobs** section, click **Job** and monitor its progress and verify that it completes successfully.
189+
1. On the **Review your pipeline YAML** pane, in line **10**, replace `vmImage: 'windows-latest'` with `vmImage: 'windows-2019'`.
190+
1. Remove the **VSTest@2** task:
191+
```yaml
192+
- task: VSTest@2
193+
inputs:
194+
platform: '$(buildPlatform)'
195+
configuration: '$(buildConfiguration)'
196+
```
197+
1. On the **Review your pipeline YAML** pane, click **Save and run**.
198+
1. On the **Save and run** pane, accept the default settings and click **Save and run**.
199+
1. On the pipeline run pane, in the **Jobs** section, click **Job** and monitor its progress and verify that it completes successfully.
193200

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

196-
8. Return to the pipeline run pane, switch from the **Summary** tab to the **Tests** tab, and review test statistics.
203+
1. Return to the pipeline run pane, switch from the **Summary** tab to the **Tests** tab, and review test statistics.
197204

198205
#### Task 3: Add continuous delivery to the YAML definition
199206

@@ -285,7 +292,7 @@ In this task, you will add continuous delivery to the YAML-based definition of t
285292
jobs:
286293
- job: Build
287294
pool:
288-
vmImage: 'vs2017-win2016'
295+
vmImage: 'windows-2019'
289296
290297
variables:
291298
solution: '**/*.sln'
@@ -306,11 +313,6 @@ In this task, you will add continuous delivery to the YAML-based definition of t
306313
platform: '$(buildPlatform)'
307314
configuration: '$(buildConfiguration)'
308315
309-
- task: VSTest@2
310-
inputs:
311-
platform: '$(buildPlatform)'
312-
configuration: '$(buildConfiguration)'
313-
314316
- task: PublishBuildArtifacts@1
315317
inputs:
316318
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
@@ -321,7 +323,7 @@ In this task, you will add continuous delivery to the YAML-based definition of t
321323
jobs:
322324
- job: Deploy
323325
pool:
324-
vmImage: 'vs2017-win2016'
326+
vmImage: 'windows-2019'
325327
steps:
326328
- task: DownloadBuildArtifacts@0
327329
inputs:

0 commit comments

Comments
 (0)