From 8a073efb87f024ab4ea8788c698c4f6e476d0725 Mon Sep 17 00:00:00 2001 From: Michael Kenntenich <37703728+mkennten@users.noreply.github.com> Date: Tue, 22 Jun 2021 18:09:02 +0200 Subject: [PATCH] Updated Mod 5 Lab 1, providing the correct steps to install the agent --- ..._Agent_Pools_and_Understanding_Pipeline_Styles.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Instructions/Labs/AZ400_M05_Configuring_Agent_Pools_and_Understanding_Pipeline_Styles.md b/Instructions/Labs/AZ400_M05_Configuring_Agent_Pools_and_Understanding_Pipeline_Styles.md index fdb0e7f53..c6ea1b41b 100644 --- a/Instructions/Labs/AZ400_M05_Configuring_Agent_Pools_and_Understanding_Pipeline_Styles.md +++ b/Instructions/Labs/AZ400_M05_Configuring_Agent_Pools_and_Understanding_Pipeline_Styles.md @@ -215,15 +215,17 @@ In this task, you will configure the LOD VM as an Azure DevOps self-hosting agen > **Note**: If you receive an error message at this point indicating that the current system settings prevent you from downloading the file, in the Internet Explorer window, in the upper right corner, click the gearwheel symbol designating the **Settings** menu header, in the dropdown menu, select **Internet Options**, in the **Internet Options** dialog box, click **Advanced**, on the **Advanced** tab, click **Reset**, in the **Reset Internet Explorer Settings** dialog box, click **Reset** again, click **Close**, and try the download again. -1. Start Windows PowerShell as administrator and, from the **Administrator: Windows PowerShell** console, copy the **Create the agent** commands shown in **Get the agent** pane. Run the following script to create the **C:\\agent** directory and extract the content of the downloaded archive into it (make sure all commands run, click "enter" if last one did not). It will look similar to this (use the copied one for latest version): +1. Start Windows PowerShell as administrator and in the **Administrator: Windows PowerShell** console run the following lines to create the **C:\\agent** directory and extract the content of the downloaded archive into it. ```powershell - PS C:\> mkdir agent ; cd agent - PS C:\agent> Add-Type -AssemblyName System.IO.Compression.FileSystem ; - [System.IO.Compression.ZipFile]::ExtractToDirectory("$HOME\Downloads\vsts-agent-win-x64-[AGENT_VERSION].zip", "$PWD") + cd \ + mkdir agent ; cd agent + $TARGET = Get-ChildItem "$Home\Downloads\vsts-agent-win-x64-*.zip" + Add-Type -AssemblyName System.IO.Compression.FileSystem + [System.IO.Compression.ZipFile]::ExtractToDirectory($TARGET, "$PWD") ``` -1. Open the **Administrator: Windows PowerShell** console, run the following to configure the agent: +1. In the same **Administrator: Windows PowerShell** console, run the following to configure the agent: ```powershell .\config.cmd