Bitzu

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

Single choice

What happens to the virtual machine after a job finishes on a Microsoft-hosted agent?

  1. It is discarded, and the next job gets a fresh VM
  2. It is kept and reused by the next job in the pipeline
  3. It is kept for 24 hours so caches can be reused
  4. 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.

Select all that apply

Which capabilities do GitHub larger runners provide?

  1. Static IP addresses for firewall allowlists
  2. Connection to Azure private networks
  3. Autoscaling with demand
  4. Use of the included free minutes of private repositories
  5. 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.

True or false

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.

Download on the App StoreGet it on Google Play

More AZ-400 topics in this module