Thank you for using Q&A Platform
This error message, No hosted parallelism has been purchased or granted, is a common issue for new Azure DevOps organizations and private projects. Here's a breakdown of what it means and how to fix it.
What is Hosted Parallelism?
In Azure Pipelines, a "parallel job" represents the ability to run one job at a time on a hosted agent. A hosted agent is a virtual machine provided by Microsoft to run your build and release pipelines. When you get this error, it means your organization does not have a license to use these hosted agents. This is a measure by Microsoft to prevent the abuse of its free services.
How to Resolve the Error
You have two primary ways to fix this:
- Request a Free Grant (Recommended for Private Projects):
* This is the solution specified in the error message.
* Go to the provided link: https://aka.ms/azpipelines-parallelism-request.
* Fill out the form with your information, including your Azure DevOps organization URL.
* Microsoft will review your request. This process can take a few business days. Once approved, you will be granted a free tier of parallelism, typically one concurrent job with a limited number of minutes per month for private projects.
- Purchase Parallel Jobs:
* If you need more capacity than the free grant offers or can't wait for the approval process, you can purchase additional parallel jobs.
* Navigate to your Azure DevOps organization settings.
* Go to Organization settings > Parallel jobs > Microsoft-hosted.
* From there, you can purchase more parallel jobs. This is a more suitable option for commercial or large-scale projects.
An Alternative: Use a Self-Hosted Agent
If you need a quick workaround while waiting for your free parallelism grant to be approved, you can set up a self-hosted agent.
- A self-hosted agent is a machine (physical or virtual) that you manage yourself. Azure Pipelines will orchestrate the build/release process, but the actual work is done on your own machine.
- You don't need to purchase or request parallelism to use a self-hosted agent.
- You can configure a self-hosted agent by going to Organization settings > Agent pools and creating a new agent. You will then need to download and run the agent software on your machine.
I hope this helps in resolving the issue, do let me know if you have any further questions on this