Table of contents
Azure DevOps is a powerful platform for managing and automating software development processes. To effectively utilize its features, it is essential to set up agent pools that enable the execution of pipelines and jobs. In this blog post, we will guide you through the process of setting up an agent pool on a Windows and resolving the common error message "No hosted parallelism has been purchased or granted." Let's get started! 🚀
🔄 Step 1: Setting up Agent Pool on Windows 🖥️
🔹 Log in to Azure DevOps and navigate to your project.
🔹 Go to Settings, then Agent Pools.
🔹 Select the default agent pool and click on the "Get the agent" button.
🔄 Step 2: Downloading and Configuring the Agent 💾
🔹 Download the agent file onto your Windows machine.
🔹 Open PowerShell with administrative access.
🔹 Navigate to a suitable location where you want to set up the agent by running the following command:
🔹 Create a new directory for the agent and navigate into it:
mkdir agent_new ; cd agent_new
🔹 Extract the agent files from the downloaded ZIP archive using the following PowerShell command:
Add-Type -AssemblyName System.IO.Compression.FileSystem [System.IO.Compression.ZipFile]::ExtractToDirectory("$HOME\Downloads\vsts-agent-win-x64-3.220.5.zip", "$PWD")
Note: Adjust the ZIP file name and version number according to the agent you downloaded
🔄 Step 3: Configuring and Running the Agent ⚙️
🔹 In the same PowerShell session, run the configuration script:
🔹 Follow the instructions provided by the configuration script to set up the agent. Enter the URL of your Azure DevOps server, select the agent pool, and provide a unique agent name when prompted.
🔹 Once the configuration is complete, run the following command to start the agent:
🔄 Alternative Method: If you prefer a simpler approach, you can use the following steps:
🔹 Download the agent file and extract it to a suitable location on your Windows.
🔹 Open PowerShell with administrative access and navigate to the agent's directory.
🔹 Run the following commands:
arduinoCopy code.\config.cmd .\run.cmd
After the agent is successfully running, it will be listening for jobs from Azure DevOps. You can confirm its status by checking the agent pool in Azure DevOps, where the agent should appear online. ✔️
By following the steps outlined in this blog post, you have learned how to set up an agent pool on a Windows in Azure DevOps. Additionally, we have resolved the common error message related to parallelism grants. Now you can confidently execute your pipelines using the default agent without encountering the mentioned errors. Thank you for reading this blog post, and we hope it has been valuable in helping you set up your Azure DevOps environment! ✅🙌
🔍 Thumbnail Image credits:
🔍 Checkout GitHub Repository for projects:
🔍 Check out my YouTube channel - Prasad Suman Mohan: