Skip to content
This repository was archived by the owner on Nov 14, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ YAML-based pipelines allow you to fully implement CI/CD as code, in which pipeli

Regardless of the choice of the pipeline style, to build your code or deploy your solution by using Azure Pipelines, you need an agent. An agent hosts compute resources that run one job at a time. Jobs can be run directly on the host machine of the agent or in a container. You have an option to run your jobs using Microsoft-hosted agents, which are managed for you, or implementing a self-hosted agent that you set up and manage on your own.

In this lab, you'll step through converting a classic pipeline into a YAML-based one and running it first by using a Microsoft-hosted agent and then performing the equivalent task using a self-hosted agent.
In this lab, you will learn how to implement and use self-hosted agents with YAML pipelines.

## Objectives

Expand Down Expand Up @@ -132,7 +132,7 @@ In this task, you will configure the LOD VM as an Azure DevOps self-hosting agen
| Enter agent pool (press enter for default) | **az400m05l05a-pool** |
| Enter agent name | **az400m05-vm0** |
| Enter work folder (press enter for _work) | **Enter** |
| **(Only if shown)** Enter Perform an unzip for tasks for each step. (press enter for N) | **Enter** |
| **(Only if shown)** Enter Perform an unzip for tasks for each step. (press enter for N) | **WARNING**: only press **Enter** if the message is shown|
| Enter run agent as service? (Y/N) (press enter for N) | **Y** |
| enter enable SERVICE_SID_TYPE_UNRESTRICTED (Y/N) (press enter for N) | **Y** |
| Enter User account to use for the service (press enter for NT AUTHORITY\NETWORK SERVICE) | **Enter** |
Expand All @@ -153,6 +153,9 @@ In this task, you will configure the LOD VM as an Azure DevOps self-hosting agen
demands:
- agent.name -equals az400m05-vm0
```
> **WARNING**: Be careful with copy/paste, make sure you have same indentation shown above.


1. For `Task: NugetToolInstaller@0`, click on **Settings (link that is displaying above the task in grey colour)**, modify **Version of NuGet.exe to install** > **4.0.0** and click on **Add**.
1. On the **PartsUnlimited** 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.
1. In the Azure DevOps portal, in the vertical navigational pane on the left side, in the **Pipelines** section, click **Pipelines**.
Expand All @@ -162,4 +165,4 @@ In this task, you will configure the LOD VM as an Azure DevOps self-hosting agen

## Review

In this lab, you learned how to convert classic pipelines into YAML-based ones and how to implement and use self-hosted agents.
In this lab, you learned how to implement and use self-hosted agents with YAML pipelines.