You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 21, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: Instructions/Labs/AZ400_M03_L03_Configuring_Agent_Pools_and_Understanding_Pipeline_Styles.md
+20-12Lines changed: 20 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,11 +72,18 @@ In this task, you will create a template-based Azure DevOps YAML pipeline.
72
72
2. On the **Recent** tab of the **Pipelines** pane, click **New pipeline**.
73
73
3. On the **Where is your code?** pane, click **Azure Repos Git**.
74
74
4. On the **Select a repository** pane, click **EShopOnWeb**.
75
-
5. On the **Configure your pipeline** pane, click **ASP.NET**(Build and test ASP.NET Projects).
76
-
77
-
> Note: do not select ASP.NET Core (.NET Framework) or the .NET Desktop, although they look identical to the ASP.NET
78
-
79
-
6. On the **Review your pipeline YAML** pane, review the sample pipeline, click the down-facing caret symbol next to the **Run** button, click **Save**.
75
+
5. On the **Configure your pipeline** pane, click **Existing Azure Pipelines YAML File**.
76
+
6. On the **Select an existing YAML file**, select **main** for the Branch, and **/.ado/eshoponweb-ci-pr.yml** for the Path.
77
+
7. Click **Continue**.
78
+
8. On the **Review your pipeline YAML** pane, review the sample pipeline. This is a rather straight-forward .NET application Build pipeline, which does the following:
79
+
- A single Stage: Build
80
+
- A single Job: Build
81
+
- 3 tasks within the Build Job:
82
+
- Dotnet Restore
83
+
- Dotnet Build
84
+
- Dotnet Publish
85
+
86
+
9. On the **Review your pipeline YAML** pane, click the down-facing caret symbol next to the **Run** button, click **Save**.
80
87
81
88
> Note: we are just creating the pipeline definition for now, without running it. You will first set up an Azure DevOps agent pool and run the pipeline in a later exercise.
82
89
@@ -89,7 +96,9 @@ In this exercise, you will implement a self-hosted Azure DevOps agent.
89
96
In this task, you will configure your lab Virtual Machine as an Azure DevOps self-hosting agent and use it to run a build pipeline.
90
97
91
98
1. Within the Lab Virtual machine (Lab VM) or your own computer, start a web browser, navigate to [the Azure DevOps portal](https://dev.azure.com) and sign in by using the Microsoft account associated with your Azure DevOps organization.
92
-
> **Note**: The Lab Virtual machine should have all necessary prerequisite software installed. If you are installing on your own computer, you will need to install Visual Studio 2022 Community Edition and the .NET SDKs necessary to build the demo project.
99
+
100
+
> **Note**: The Lab Virtual machine should have all necessary prerequisite software installed. If you are installing on your own computer, you will need to install Visual Studio 2022 Community Edition and the .NET SDKs necessary to build the demo project.
101
+
93
102
2. In the Azure DevOps portal, in the upper right corner of the Azure DevOps page, click the **User settings** icon, depending on whether or not you have preview features turned on, you should either see a **Security** or **Personal access tokens** item in the menu, if you see **Security**, click on that, then select **Personal access tokens**. On the **Personal Access Tokens** pane, and click **+ New Token**.
94
103
3. On the **Create a new personal access token** pane, click the **Show all scopes** link and, specify the following settings and click **Create** (leave all others with their default values):
95
104
@@ -154,7 +163,7 @@ In this task, you will configure your lab Virtual Machine as an Azure DevOps sel
154
163
19. In the browser window displaying the list of projects, click the tile representing your **Configuring Agent Pools and Understanding Pipeline Styles** project.
155
164
20. On the **EShopOnWeb** pane, in the vertical navigational pane on the left side, in the **Pipelines** section, click **Pipelines**.
156
165
21. On the **Recent** tab of the **Pipelines** pane, select **EShopOnWeb** and, on the **EShopOnWeb** pane, select **Edit**.
157
-
22. On the **EShopOnWeb** edit pane, in the existing YAML-based pipeline, replace line `vmImage: windows-2019` designating the target agent pool the following content, designating the newly created self-hosted agent pool:
166
+
22. On the **EShopOnWeb** edit pane, in the existing YAML-based pipeline, replace line 13 which says `vmImage: ubuntu-latest` designating the target agent pool the following content, designating the newly created self-hosted agent pool:
158
167
159
168
```yaml
160
169
name: az400m03l03a-pool
@@ -164,11 +173,10 @@ In this task, you will configure your lab Virtual Machine as an Azure DevOps sel
164
173
165
174
> **WARNING**: Be careful with copy/paste, make sure you have same indentation shown above.
166
175
167
-
23. For `Task: NugetToolInstaller@0`, click on **Settings (link that is displaying above the task in grey color)**, modify **Version of NuGet.exe to install** > **6.6.1** and click on **Add**.
168
-
24. On the **EShopOnWeb** edit pane, in the upper right corner of the pane, click **Save** and, on the **Save** pane, click **Save** again. This will automatically trigger the build based on this pipeline.
169
-
25. In the Azure DevOps portal, in the vertical navigational pane on the left side, in the **Pipelines** section, click **Pipelines**.
170
-
26. On the **Recent** tab of the **Pipelines** pane, click the **EShopOnWeb** entry, on the **Runs** tab of the **EShopOnWeb** pane, select the most recent run, on the **Summary** pane of the run, scroll down to the bottom, in the **Jobs** section, click **Phase 1** and monitor the job until its successful completion.
176
+
23. On the **EShopOnWeb** edit pane, in the upper right corner of the pane, click **Save** and, on the **Save** pane, click **Save** again. This will automatically trigger the build based on this pipeline.
177
+
24. In the Azure DevOps portal, in the vertical navigational pane on the left side, in the **Pipelines** section, click **Pipelines**.
178
+
25. On the **Recent** tab of the **Pipelines** pane, click the **EShopOnWeb** entry, on the **Runs** tab of the **EShopOnWeb** pane, select the most recent run, on the **Summary** pane of the run, scroll down to the bottom, in the **Jobs** section, click **Phase 1** and monitor the job until its successful completion.
171
179
172
180
## Review
173
181
174
-
In this lab, you learned how to implement and use self-hosted agents with YAML pipelines.
182
+
In this lab, you learned how to implement and use self-hosted agents with YAML pipelines.
0 commit comments