BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeDesigning and Implementing Microsoft DevOps Solutions (AZ-400)Agent and runner infrastructure
Lesson421 words

Agent and runner infrastructure

Design and implement agent and runner infrastructure

Every job needs a machine. Choosing which machine is a cost, security and maintainability decision, and the exam tests the trade-off rather than the click-path.

The options

OptionManaged byBillingUse when
Microsoft-hostedMicrosoftConcurrency-based (parallel jobs)Standard toolchains, no persistent state needed
Self-hostedYouYour infrastructure + parallel job licenceCustom software, private network access, large caches
VM Scale Set agentsYou, autoscaledAzure VM costBursty demand needing elastic self-hosted capacity
Managed DevOps PoolsMicrosoft, on your configAzure costThe current recommendation over raw VMSS agents
GitHub-hosted (for Pipelines)GitHubPer minute, pay-as-you-goMore powerful machines, usage-based billing

Microsoft-hosted agents exist only in Azure DevOps Services — they are not available in Azure DevOps Server. Any on-premises scenario is self-hosted by definition.

Why teams move to self-hosted

Three reasons recur, and they map directly to exam scenarios:

  1. Software you must install that is not on the hosted image.
  2. Network reachability — the build must reach a private endpoint, an on-premises database, or a licence server.
  3. Speed through persistence. Machine-level caches and configuration survive between runs on a self-hosted agent. A Microsoft-hosted agent is a clean machine every time, which is excellent for reproducibility and terrible for incremental build caches.

That third point is the trade-off in one line: hosted buys you cleanliness, self-hosted buys you warm caches. You cannot have both on the same agent.

Billing models differ in kind, not just amount

Microsoft-hosted capacity is bought as parallel jobs — a concurrency slot, not minutes. Two jobs at once needs two parallels regardless of how long they run. GitHub-hosted agents for Azure Pipelines bill per minute of usage instead, which inverts the optimisation: with concurrency billing you care about how many jobs overlap; with per-minute billing you care about how long they take.

Maintainability

Self-hosted is not free after setup. You own agent version upgrades, OS patching, tool installs, disk hygiene between runs, and the security posture of a machine that holds pipeline credentials. VM Scale Set agents and Managed DevOps Pools exist to keep the elasticity while handing back most of that burden — which is why Microsoft now recommends Managed DevOps Pools over building your own autoscaling scale-set pool.

Primary sources

  • https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/agents
  • https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted
All Designing and Implementing Microsoft DevOps Solutions (AZ-400) Study Resources

Related Notes

  • Agent and runner infrastructure — quick notes150 words
  • Alerting on pipeline events255 words
  • Alerting on pipeline events — quick notes94 words
  • Analyzing usage and application performance241 words
  • Analyzing usage and application performance — quick notes73 words
  • Appropriate access levels217 words
  • Appropriate access levels — quick notes85 words
  • Automating container scanning277 words
  • Automating container scanning — quick notes96 words
  • Automating documentation from Git history191 words
  • Automating documentation from Git history — quick notes55 words
  • AZ-400 — exam map — roadmap403 words

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up.

Start Studying

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free
Designing and Implementing Microsoft DevOps Solutions (AZ-400) ResourcesExplore All HivesBlogHome

© 2026 BrainyBee. Free AI-powered exam prep.