Hey Sandeep,
If your pipeline is queuing indefinitely using a Managed DevOps Pool (MDP), it typically means the pool is either unable to provision the agents or is restricted by concurrency limits. Since MDP is a fully managed service, the underlying VMs are abstracted and you will not see a VM Scale Set in your resource group to troubleshoot.
Below are the specific areas to investigate to resolve this.
- Verify Self-Hosted Parallel Jobs and Maximum Agents: Azure DevOps treats MDP agents as self-hosted agents, which requires sufficient concurrency licensing.
- Check your Azure DevOps organization settings to ensure you have available self-hosted parallel jobs. If this limit is at 0 or fully consumed, jobs queue indefinitely.
- In the Azure Portal, review your Managed DevOps Pool's Maximum agents setting under Settings > Pool. If the limit specified here is already running, new pipelines must wait.
- Validate Virtual Network and RBAC Permissions: If your pool is attached to a custom virtual network, network access misconfigurations will silently block agent provisioning. You must verify that:
- The target subnet has been successfully delegated to
Microsoft.DevOpsInfrastructure/pools. - The
DevOpsInfrastructureservice principal has been explicitly assigned theReaderandNetwork Contributorroles on your virtual network. Without these, the service cannot inject agents into your VNet.
- The target subnet has been successfully delegated to
- Check Standby Agent Configurations: If Standby agent mode is turned off, MDP provisions agents entirely on-demand. While usually fast, fetching a fresh image can sometimes take up to 15 minutes. If you are using a custom image, verify that recent image updates haven't introduced an initialization failure.
- Review Provisioning Logs via Azure Monitor: Since you cannot access the raw VM instances, the best way to uncover silent failures is through the diagnostic logs. On your Managed DevOps Pool resource in the Azure Portal, go to Monitoring > Diagnostic settings, and route the Resource Provisioning Logs to a Log Analytics workspace. This will expose the exact scaling or provisioning errors blocking your agents.
If above troubleshooting does not help, please check below questions and share findings in comments.
- Could you share the full agent assignment error or pipeline logs?
- Which agent pool and region are you targeting, and is it a Microsoft-hosted or self-hosted pool?
- Can you post the relevant section of your pipeline YAML or the UI settings where you configured the MDP?
References:
- Troubleshoot Managed DevOps Pools issues
- Configure Managed DevOps Pools networking
- Overview of Managed DevOps Pools
Note: This response is drafted with the help of AI systems.