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

Commit 1161a36

Browse files
authored
Merge pull request #661 from massimobonanni/FIX-Issue-647-LAB03
LAB 03 - Some fixes proposed in the issue #648
2 parents d21ceb1 + de60f83 commit 1161a36

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Instructions/Labs/AZ400_M02_L03_Configure_Agent_Pools_and_Understand_Pipeline_Styles.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ In this exercise, you will create an Azure virtual machine (VM) and use it to cr
143143

144144
> **Note**: Follow the installation instructions to install the agent.
145145
146+
> **Note**: The name of the zip file you downloaded with the **Download** button should be similar to the following `vsts-agent-win-x64-X.YYY.Z.zip` (at the time of writing this lab the file name is `vsts-agent-win-x64-4.255.0.zip`). The file name will be used later in one of the agent installation commands.
147+
146148
1. Start a PowerShell session and run the following commands to create a folder named **agent**.
147149

148150
```powershell
@@ -154,11 +156,13 @@ In this exercise, you will create an Azure virtual machine (VM) and use it to cr
154156
1. Run the following command to extract the content of the downloaded agent installer files:
155157

156158
```powershell
157-
Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory("$HOME\Downloads\vsts-agent-win-x64-3.245.0.zip", "$PWD")
159+
Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory("$HOME\Downloads\vsts-agent-win-x64-4.255.0.zip", "$PWD")
158160
```
159161

160162
> **Note**: If you downloaded the agent to a different location (or the downloaded version differs), adjust the above command accordingly.
161163
164+
> **Note**: Make sure that the zip file name specified inside the `ExtractToDirectory` command is the same as the zip file name you previously downloaded.
165+
162166
#### Task 4: Create a PAT token
163167

164168
> **Note**: Before configuring the agent, you need to create a PAT token (unless you have an existing one). To create a PAT token, follow the steps below:
@@ -208,7 +212,7 @@ In this exercise, you will create an Azure virtual machine (VM) and use it to cr
208212
209213
1. To configure the agent, perform the following actions when prompted:
210214

211-
- Enter the URL of the Azure DevOps organization (**server URL**) in the format `https://aex.dev.azure.com`{your organization name}.
215+
- Enter the URL of the Azure DevOps organization (**server URL**) in the format `https://dev.azure.com/{your organization name}`.
212216
- Accept the default authentication type (**`PAT`**).
213217
- Enter the value of the PAT token you created in the previous step.
214218
- Enter the agent pool name **`eShopOnWebSelfPool`** you created earlier in this exercise.
@@ -240,7 +244,7 @@ In this exercise, you will create an Azure virtual machine (VM) and use it to cr
240244
> [!IMPORTANT]
241245
> In order for the agent to be able to build and deploy Azure resources from the Azure DevOps pipelines (which you will step through in the upcoming labs), you need to install Azure CLI within the operating system of the Azure VM that is hosting the agent.
242246
243-
1. Start a web browser and navigate to the page [Install Azure CLI on Windows](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-windows?tabs=azure-cli&pivots=msi#install-or-update).
247+
1. Start a web browser and navigate to the page `https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-windows?tabs=azure-cli&pivots=msi#install-or-update`.
244248

245249
1. Download and install Azure CLI.
246250

@@ -306,7 +310,7 @@ In this task, you will create a YAML-based pipeline for the **eShopOnWeb** proje
306310
![Screenshot showing the YAML pool syntax.](images/eshoponweb-ci-pr-agent-pool.png)
307311
308312
1. On the **eShopOnWeb** edit pane, in the upper right corner of the pane, click **Validate and save**. Then click **Save**.
309-
1. On the **eShopOnWeb** edit pane, in the upper right corner of the pane, click **Run pipeline**.
313+
1. On the **eShopOnWeb** edit pane, in the upper right corner of the pane, click **Run**.
310314
311315
> **Note**: The pipeline will run on the self-hosted agent pool you created in the previous exercise.
312316
1. Open the pipeline run and monitor the job until its successful completion.

0 commit comments

Comments
 (0)