1. Agent types #
Hosted or yours.
Overview #
An agent belongs to a pool; a job requests a pool (pool: name: Default or vmImage: ubuntu-latest) and can require capabilities (demands: docker) announced by the agent.
2. Installing a self-hosted agent #
Linux, as a service.
Installation #
mkdir -p ~/azagent && cd ~/azagent
curl -sLO https://download.agent.dev.azure.com/agent/5.282.0/vsts-agent-linux-x64-5.282.0.tar.gz
tar xzf vsts-agent-linux-x64-5.282.0.tar.gz
./config.sh --unattended --url https://dev.azure.com/<organization> --auth pat --token "$AZP_TOKEN" \
--pool Default --agent poste-local --acceptTeeEula
sudo ./svc.sh install && sudo ./svc.sh start- The personal access token (PAT) only needs the Agent Pools (read, manage) scope and is only used for registration.
- The agent opens an outbound HTTPS connection: no inbound port to open.
- For scaling: scale set agents (VMSS) or Managed DevOps Pools, managed by Azure in your virtual network.
Watch out : A self-hosted agent runs the code of every authorized pipeline: separate pools by trust level and do not authorize all pipelines by default.
Commands to know #
Commands to know
./config.sh --unattended --url … --auth pat --token … --pool Default: register an agent./run.sh: run the agent in the foregroundsudo ./svc.sh status: service status./config.sh remove --auth pat --token …: unregister the agent
Sources #
Checked in November 2026: CI/CD platforms change every month, check versions and plans in the vendor's documentation.
My progress
Sign in to track your progress and take notes. Sign in
💬 Questions about this lesson
No questions yet: be the first to ask for help or share your configuration.
Recommended Articles
Azure YAML pipelines: stages, tasks, variables and templates
Writing Azure pipelines in YAML: trigger and pr triggers, stages, jobs and steps, versioned tasks...
Deploying with Azure Pipelines: environments, approvals and service connections
Delivering with Azure Pipelines: multi-stage pipelines, environments, approvals and checks, deplo...
Azure DevOps: services, organization and plans
Discover Azure DevOps: Boards, Repos, Pipelines, Test Plans and Artifacts, organizations and proj...
Azure DevOps security, governance and best practices
Running Azure DevOps securely: permissions and groups, protected resources, pipeline authorizatio...
End-to-end CI/CD (5/5): GitHub Actions, GitLab CI, Jenkins and Argo CD in practice
Compare and use CI/CD tools: GitHub Actions, GitLab CI, Jenkins, Argo CD and Flux; a complete pip...
Azure Boards and Azure Repos: planning and collaborating
Organizing work with Azure Boards (Agile, Scrum, Basic and CMMI processes, work items, backlogs, ...
GitHub Actions runners: hosted, self-hosted and ARC
Choosing where workflows run: hosted runners and images, larger runners, self-hosted runners (ins...
Observability on Azure: Azure Monitor, Log Analytics, Application Insights, managed Prometheus and Grafana
A complete overview of observability on Azure: Azure Monitor (metrics, logs and Log Analytics, KQ...
New Relic APM: agents, OpenTelemetry and distributed traces
Instrumenting applications with New Relic: language agents, configuration, transactions and Apdex...