Lesson 2 of 3 Agents and Runners

Designing Agent and Runner Infrastructure

This lesson weighs cost, tools, licences, connectivity and maintenance, and compares scalable options.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain parallel job licensing and free tiers.
  • Explain how GitHub Actions is billed.
  • Compare ways of providing tools.
  • Choose between Managed DevOps Pools, larger runners and ARC.

Cost and licences

Azure Pipelines

Azure Pipelines licenses parallel jobs, which set how many jobs can run at once. The free grant has two parts. Microsoft-hosted: one job, up to 60 minutes per run, with a limit of 1,800 minutes a month, which you must enable by linking the organization to an Azure subscription. Self-hosted: one job with no time limit, granted automatically, plus one for each active Visual Studio Enterprise subscriber in the organization. Buying a Microsoft-hosted parallel job removes the monthly limit and raises the job limit to 360 minutes.

A self-hosted parallel job is cheaper than a hosted one, but the machine has its own cost, and so does the staff time to run it. Any number of self-hosted agents may be registered: the licence limits how many run at once.

GitHub Actions

GitHub bills hosted runners per minute according to their type, and each plan includes a monthly amount of compute. The current billing documentation states this in US dollars: Free $12, Pro and Team $18, and Enterprise Cloud $300. Standard hosted runners are free on public repositories. Windows and macOS minutes cost more than Linux minutes, and larger runners cost more still, so moving routine jobs to Linux is an effective saving. Artifact and package storage have separate allowances.

GitHub announced a per-minute platform charge for self-hosted runners in December 2025, and then postponed it. At the time of writing, it had not taken effect, so check the current pricing before making a cost comparison.

True or false

Licensing pipeline compute

Exam skills 3.3.2

Check the licensing rules for Azure Pipelines and GitHub Actions.

Log in to try this activity Interactive activities are free with an account.

Tool selection and maintenance

A team must decide how tools reach the machine. Installing tools during a job is simple, but it costs time on each run, and it depends on external downloads. Baking tools into a custom image makes jobs quick and predictable, but the image needs a build process. Running a job in a container packages tools in an image, so the machine needs only a container engine.

# Azure Pipelines: run a job in a container
jobs:
  - job: build
    pool:
      vmImage: ubuntu-latest
    container: mcr.microsoft.com/dotnet/sdk:9.0
    steps:
      - script: dotnet --version

# GitHub Actions
jobs:
  build:
    runs-on: ubuntu-latest
    container: mcr.microsoft.com/dotnet/sdk:9.0
    steps:
      - run: dotnet --version

Maintenance covers operating system patches, agent updates, disk clean-up and credential renewal. Azure Pipelines agents update themselves when a task needs a newer version, unless this is disabled. An agent registers using a token, and it must be configured with a service account that has the fewest rights it needs. Ideally, machines are replaced, not patched in place: rebuilding from an image removes drift.

Match the pairs

Getting tools onto the machine

Exam skills 3.3.2

Match each way of providing tools with its trade-off.

Log in to try this activity Interactive activities are free with an account.

Connectivity

Self-hosted agents need outbound HTTPS to the service endpoints. A proxy can be configured when an environment requires one. GitHub-hosted Linux runners use a multi-cloud pool of addresses, so allowing Azure IP ranges is not reliable, and the actions list from the GitHub /meta API gives the current ranges.

For access to private resources without running your own machines, GitHub larger runners, available on Team and Enterprise Cloud plans, support static IP addresses and Azure private networking. Managed DevOps Pools can similarly be placed into a virtual network. Static addresses suit a firewall allow list, whereas private networking places a runner inside your network.

Scenario questions

Runners and network access

Exam skills 3.3.2

Choose the connectivity option for each requirement.

Log in to try this activity Interactive activities are free with an account.

Scaling self-hosted capacity

Managed DevOps Pools

Managed DevOps Pools is an Azure service that gives Azure Pipelines scalable, dedicated agents without managing machines yourself. The virtual machines live in a Microsoft subscription rather than in yours, and you choose a size, a region and an image, which may be a custom one from Azure Compute Gallery or the same image that Microsoft-hosted agents use. Pools can reach your virtual network, keep agent state for up to seven days for faster builds through cache hits, and support jobs lasting up to two days. Microsoft describes it as the evolution of Azure Virtual Machine Scale Set agents, and it recommends it for autoscaling pools.

Azure Virtual Machine Scale Set agents

Scale set agents are self-hosted agents that run in a scale set in your own subscription, and Azure Pipelines scales them. They remain supported, but Microsoft advises considering Managed DevOps Pools for new autoscaling designs.

Actions Runner Controller

Actions Runner Controller (ARC) is a Kubernetes operator that creates runners as pods, using runner scale sets installed through Helm charts. Each runner is ephemeral. It suits organizations that already operate Kubernetes.

Larger runners

GitHub larger runners are hosted machines with more CPU, memory and disk, including GPU options, and they autoscale without any machines to manage.

The following comparison helps with selection.

Hosted
PatchingProvider
Private networkNo
Custom imageNo
Persistent stateNo
Choose when Standard builds with public dependencies.
Managed pool or larger runner
PatchingProvider, or your image
Private networkYes
Custom imageYes
Persistent stateOptional
Choose when Scale and private access with low upkeep.
Self-managed
PatchingYou
Private networkYes
Custom imageYes
Persistent stateYes
Choose when Full control, or locations that no service reaches.

The following diagram checks each build agent option against four needs.

Comparing agent options against four needs. More Microsoft-hosted parallel jobs reduce queues but cannot reach the virtual network or keep caches. Self-managed virtual machines meet the technical needs but add maintenance. Managed DevOps Pools meets all four; parallel job licensing still applies.
The scenario is illustrative.
Sort into groups

Which scaling option?

Exam skills 3.3.2

Match each description to the option for scaling pipeline compute.

Log in to try this activity Interactive activities are free with an account.
Worked example

Reducing queues

An organization with 40 Azure Pipelines users has many jobs queued each morning. Builds use large dependency caches and must reach a private artifact server in a virtual network. The team wants the least possible machine maintenance. What should you recommend?

Managed DevOps Pools fits: it scales to demand, reaches the virtual network, and can keep state between jobs to reuse caches, while Microsoft manages the machines. More Microsoft-hosted parallel jobs would reduce queues but would not reach the private server. Self-managed virtual machines would meet the technical need, but they conflict with the requirement to minimize maintenance. Note that parallel job licensing still applies.

Check yourself

Why might a new organization see no Microsoft-hosted free minutes?

Show answer

The Microsoft-hosted free tier must be enabled by linking the organization to an Azure subscription.

Exam Tips

Remember for the exam

  • Parallel jobs set how many jobs can run at once.
  • The free hosted tier needs a linked Azure subscription: 1 job, 60 minutes, 1,800 minutes a month.
  • Standard GitHub-hosted runners are free on public repositories.
  • Managed DevOps Pools is recommended for autoscaling Azure Pipelines agents.
  • ARC runs ephemeral GitHub runners on Kubernetes.