Step 1: Add a new self-hosted agent pool by selecting Project Settings ---> Pipelines --> Agent pool . Step 2: Click on Add pool but...
Step 1: Add a new self-hosted agent pool by selecting Project Settings ---> Pipelines-->Agent pool.
Step 2: Click on Add pool button and select New and pool type as Self-hosted. Provide the name and click on Create button.
Step 3: Click on Default Agent and Click on New Agent Button and it will give some instructions that how to download the agent.
Download the agent
Create the agent
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-2.200.2.zip", "$PWD")
Configure the agent
PS C:\agent> .\config.cmd
It will ask server url :
https://dev.azure.com/org/where org is organization
Token: Create a PAT (Personal Access Token) and copy it here
Optionally run the agent interactively
PS C:\agent> .\run.cmd
COMMENTS