AZ-400 ยท Agents and runners
Hosted vs self-hosted agents and runners
Microsoft-hosted agents, GitHub-hosted runners (and larger runners), self-hosted options, cost, licensing and parallel jobs, tool selection, network connectivity and security, maintainability.
Key points
- Microsoft-hosted agents and GitHub-hosted runners: fresh, maintained VM per job, no upkeep; fixed hardware, private networks harder to reach.
- Self-hosted: your machines; you pick tools, size and network placement, caches can persist, but you patch and secure them.
- Self-hosted agents use outbound HTTP long poll.
- Azure DevOps capacity: parallel jobs.
- GitHub larger runners: billed per minute, static IPs, Azure private networking.
Source: https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/agents
Practice questions
What happens to the virtual machine after a job finishes on a Microsoft-hosted agent?
- It is discarded, and the next job gets a fresh VM
- It is kept and reused by the next job in the pipeline
- It is kept for 24 hours so caches can be reused
- It is stopped and restarted with the same disk
Show answer
Answer: A. It is discarded, and the next job gets a fresh VM
Each job gets a fresh VM that is discarded afterwards, so nothing persists. Persistent caches are a reason to choose self-hosted agents instead.
Which capabilities do GitHub larger runners provide?
- Static IP addresses for firewall allowlists
- Connection to Azure private networks
- Autoscaling with demand
- Use of the included free minutes of private repositories
- You install and patch the OS yourself
Show answer
Answer: A. Static IP addresses for firewall allowlists, B. Connection to Azure private networks, C. Autoscaling with demand
Larger runners support static IP addresses, Azure private networking (Linux and Windows) and autoscaling. They are billed per minute and do not use the included free minutes of private repositories.
On the free tier, buying your first Microsoft-hosted parallel job lets you run two Microsoft-hosted jobs at the same time.
Show answer
Answer: False
False. The first purchase only removes the time limits on the single job you already have; you still run one job at a time until you buy a second.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
