About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
An Azure Pipelines run that fails with ##[error]No hosted parallelism has been purchased or granted has no Microsoft-hosted parallel job to run on. Microsoft's troubleshooting page says the free grant of Microsoft-hosted parallel jobs needs the Azure DevOps organisation to be linked to a valid Azure subscription, and that once billing is configured the grant is applied automatically. The other route is to run the job on a self-hosted agent.
What the error means
A parallel job is the capacity to run one pipeline job at a time. Microsoft's page says parallel jobs are "configured at the Azure DevOps organization level and shared by all pipelines in the organization's projects". There are two kinds, Microsoft-hosted and self-hosted, and each has a free and a paid tier.
The page says: "The self-hosted free tier is automatically granted, but you must enable the Microsoft-hosted free tier." Our own reading: a pipeline that asks for a Microsoft-hosted image in an organisation with no Microsoft-hosted parallel job has nothing to run on, which fits the error above.
Microsoft's troubleshooting page gives the message in full: "##[error]No hosted parallelism has been purchased or granted. To resolve this issue, set up billing for your organization by linking a valid Azure subscription. Once billing is configured, the free grant of parallel jobs is automatically applied to your organization."
The two kinds of agent behave differently, and the choice matters for the fix. Microsoft's hosted-agents page says that each time you run a pipeline "you get a fresh virtual machine for each job in the pipeline" and that the machine is discarded after one job. Its agents page says a self-hosted agent can be installed on Linux, macOS and Windows machines, and that you can install any other software on that machine that your jobs require. Our own reading: a self-hosted agent does not need the Microsoft-hosted grant, but you run and maintain the machine.
Free-tier figures on the parallel jobs page, dated 22 June 2026: one free job for private projects, up to 60 minutes each time, with a monthly limit of 1,800 minutes. That is 1,800 / 60 = 30 hours. Check the current page before relying on them.
Likely causes
| Cause | What you see | How to confirm |
|---|---|---|
| No billing subscription is linked, so the Microsoft-hosted free grant is not applied | The error text above on a job that uses a hosted image | Organization settings > Billing shows no subscription |
| The pipeline asks for a Microsoft-hosted image and the organisation has only the automatic self-hosted free job | Same error | pool: in the YAML uses vmImage |
| Public project: Microsoft's page says public projects are retired and existing ones keep their grants until they convert to private in 2027 | Different grant behaviour from private projects | Project visibility |
| All parallel jobs are busy | A queue, not this error | Project settings > Parallel jobs shows the running count equal to the limit |
The last row is a different symptom: Microsoft's page gives the message "The agent request is not running because all potential agents are running other requests" for queued jobs.
Prove the cause before changing anything
All of these only read.
1. Read the pool in the pipeline file.
grep -n -A2 "pool:" azure-pipelines.yml
Microsoft's hosted-agents page shows vmImage: 'ubuntu-latest' for a Microsoft-hosted agent, and the agents page shows name: Default for a pool of your own agents. The page notes that a pool can be set at pipeline, stage and job level, so check all three.
2. Read the organisation's parallel job limits. Microsoft's troubleshooting page says: "To check your limits, navigate to Project settings, Parallel jobs." The parallel jobs page gives a second path: Organization settings > Pipelines > Parallel jobs. Look at the maximum number for Microsoft-hosted jobs. Selecting View in-progress jobs lists the runs using or waiting for a parallel job. If both numbers read the same, such as 1/1, the cause is a busy queue, not this error.
3. Read the billing page. Organization settings > Billing. Microsoft's page says billing setup is a one-time setup per organisation and that it needs "An Azure subscription in the same Microsoft Entra ID as your Azure DevOps organization". It adds that Azure DevOps does not support the Azure Free Trial.
4. Check your role. Setting up billing needs membership of the Project Collection Administrators group.
Fix
Choose one route. Microsoft's page says that once billing is configured the free grant applies automatically to the organisation's private projects. A self-hosted pool changes only the pipelines you edit.
Link an Azure subscription for billing
First save the current state, by writing down what the Billing page shows now, in this form:
organisation: <name>
billing subscription: <name, or none>
microsoft-hosted parallel jobs shown: <number>
Risk: setting up billing links the organisation to an Azure subscription. Microsoft's page says all services are billed through Azure, and that billing is to be set up in Azure DevOps before making any purchases. The page calls setup a one-time setup per organisation.
As a Project Collection Administrator: sign in to https://dev.azure.com/{Your_Organization}, select Organization settings, select Billing, select Set up billing, select your Azure subscription, and select Save. Microsoft's page lists those steps.
Disruptive step, only if you need to back out: removing billing suits only an organisation whose saved notes show "none" for the billing subscription, because it removes billing that was not there before the change. Do not use it if the organisation already paid for anything. Removing billing immediately returns the paid quantities of Basic users, Azure Artifacts and Azure Test Plans to the free tier, and leaves a resource group in the old Azure subscription. The page does not say what happens to the free grant of parallel jobs after removal. Our own reading: the original error can return.
Go to Organization settings > Billing > Change billing, then select Remove billing and Save. Then compare the Billing page with the saved notes.
Move the job to a self-hosted agent
This needs an agent already registered in a pool, which Microsoft's agents page describes. First save the current state:
cp -p azure-pipelines.yml azure-pipelines.yml.2026-12-03
Risk: the next edit moves the pipeline's jobs onto your own machine. They then run with that machine's software, network and credentials instead of a fresh Microsoft-hosted image. Our own reading: they cannot run while that machine is off.
Edit the pool: block so that it names your pool, in the form the agents page shows:
pool:
name: Default
To undo it, only if you need to: the copy below overwrites the current azure-pipelines.yml, so any edit made since the save is lost, and the jobs go back to a Microsoft-hosted image, which fails with the same error while the organisation has no hosted parallel job. Copy the saved file back.
cp -p azure-pipelines.yml.2026-12-03 azure-pipelines.yml
Example (illustrative): The organisation example-org has a pipeline in azure-pipelines.yml with vmImage: 'ubuntu-latest'. Every run fails at once with the "No hosted parallelism" error. Organization settings > Billing shows no subscription, and the Parallel jobs page shows 0 Microsoft-hosted jobs. A Project Collection Administrator sets up billing against the company's Azure subscription. The next run starts on a hosted image. The team keeps the self-hosted route for builds that need access to build-agent1 on the internal network.
Confirm the fix
- Organization settings > Pipelines > Parallel jobs shows a Microsoft-hosted limit above zero, or the pipeline's pool is a self-hosted one with an online agent.
- Run the pipeline again. The error no longer appears and the job starts.
- In View in-progress jobs, the run shows as using a parallel job while it runs, per Microsoft's page.
What to watch afterwards
- A run consumes a parallel job only while it is actively running on an agent. Microsoft's page says a run waiting for an approval does not consume one.
- With one parallel job, a second run queues behind the first. Microsoft's page suggests one parallel job for every four to five users as a rule of thumb, and gives the Pool consumption report on an agent pool's Analytics tab for the previous 30 days.
- The free tier has a job time limit and a monthly limit; check the current page for the figures.
- If a pipeline exceeds the maximum job time limit, Microsoft's page suggests splitting it into multiple jobs.
Read next
Related articles you may want next.
- TroubleshootingGitLab "This job is stuck": no active runners online, or none that match the job's tagsGitLab says This job is stuck and no active runners online? Compare job tags with runner tags, status, pause and protected settings, then fix the mismatch.Read article
- TroubleshootingNuGet NU1101 "Unable to find package": check the id, the configured sources and package source mappingNuGet NU1101 Unable to find package, no packages exist with this id in source(s)? Check the id, the nuget.config the build reads and source mapping.Read article
- Troubleshootingnpm ERESOLVE "unable to resolve dependency tree": read the conflicting peer, then align, override or accept itnpm ERR! code ERESOLVE unable to resolve dependency tree? Read the Found and Could not resolve lines, then align versions or use overrides before any flag.Read article
Risks and limits
- These commands have not been run or lab-tested.
- The free grant is a Microsoft policy that can change. Check the current page for its size and duration.
- Azure DevOps Server has no dedicated free tier of parallel jobs, according to Microsoft's page; the steps here are for Azure DevOps Services.
- Billing setup affects the whole organisation, not one pipeline.
- Removing billing does not delete the resource group in the old subscription.
Sources
- Troubleshoot pipeline failure to start — Microsoft Learn, page dated 22 June 2026, accessed 3 December 2026
- Configure and pay for parallel jobs — Microsoft Learn, page dated 22 June 2026, accessed 3 December 2026
- Manage billing — Microsoft Learn, page dated 4 March 2026, accessed 3 December 2026
- Microsoft-hosted agents — Microsoft Learn, page dated 9 November 2026, accessed 3 December 2026
- Azure Pipelines agents — Microsoft Learn, page dated 13 November 2026, accessed 3 December 2026
This article was originally published on .