In this Article, we’ll walkthrough how to Create Self hosted agent pool in Azure Devops
Prerequisites:
  - Azure Devops User Account
 
  - Devops Project created under your organization
 
Implementation Steps:
  - Generate Personal Access Token (PAT)
 
  - Create Agent pool
 
  - Add Agent
 
  - Check Agent Status
 
Step 1: Generate Personal Access Token (PAT)
  - Sign in to your Azure DevOps organization (https://dev.azure.com/{your_organization}).
 
  - From your home page, open your user settings, and then select Personal access tokens.
 
  
    Step 2: Create agent pool
   
  - Go to Desired Project
 
  - Select project settings gear button located in the left-bottom
 
  - Click Agent Pools > Add pool
 
  - Select Self-hosted Pool type
 
  - Fill Agent Pool Name
 
  - Enable Grant access permission to all pipelines
 
  - Click Create
 
  - 
    
      
    
   
Step 2: Add agent
  - Select newly created Agent Pool
 
  - Navigate to Agents tab > click New Agent
 
  - Follow the Instructions outlined below
    
      
        - Click Download button, to downlad the agent
 
        - Create a directory using below command
 
        - D:> md your-desired-directory-name
 
        - D:> cd your-desired-directory-name
 
        - D:\your-desired-directory-nam> Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory(“\vsts-agent-win-x64-2.217.2.zip", "$PWD")
 
        - Configure the Agent usinf below command
 
        - PS C:\agent> .\config.cmd
 
        - PS C:\agent> .\run.cmd
 
      
    
   
Step 3: Check Agent Status