Lesstep
Azure Pipelines · YAML pipelines and resources · Checked November 5, 2026

Azure Pipelines: "This pipeline needs permission to access a resource before this run can continue": who can select Permit, and how to authorize a pipeline ahead of time

This is not a failure: the run waits. A YAML pipeline stops here when it uses a protected resource that has not authorized it: a service connection, an agent pool, an environment, a variable group, a secure file or, with Protect access to repositories in YAML pipelines turned on, a repository. Someone who administers that resource selects View and then Permit, and the run goes on (a Stack Overflow question about it has been seen more than 30,000 times).

If the waiting run is a pull request's build validation: Azure DevOps Pull Requests, a plugin for JetBrains IDEs, shows the pull request's branch policies with their state, so the required build that has not passed is next to the pull request in your IDE. Get it on JetBrains Marketplace

What it looks like

Why it happens

Who can select Permit

Permit changes the resource's pipeline permissions, so it takes a role that administers that resource, not a role in the pipeline. From Microsoft's security role tables:

If you cannot permit and nobody else is around, send the person who created the resource the link to the waiting run.

Authorizing a pipeline ahead of time

PATCH https://dev.azure.com/YOUR-ORG/YOUR-PROJECT/_apis/pipelines/pipelinepermissions/queue/QUEUE-ID?api-version=7.1-preview.1
{ "pipelines": [ { "id": 16, "authorized": true } ] }

Telling it apart

Azure DevOps pull requests in IntelliJ IDEA and Rider

Azure DevOps Pull Requests, a plugin by Lesstep for JetBrains IDEs 2024.1 or later and Android Studio, reads the organization, project and repository from your git remote and lists the pull requests that wait for your review in an IDE tool window, on Azure DevOps Services and on Azure DevOps Server. It shows the branch policies of a pull request with their state, so a required build that has not passed is next to its pull request, and when a required policy has not passed, its Complete dialog offers auto-complete first. The review inbox is free; voting, commenting, completing and creating are Pro, with a 30-day trial.

Get it on JetBrains Marketplace

Azure DevOps and Azure Pipelines are trademarks of Microsoft Corporation; GitHub is a trademark of GitHub, Inc.; IntelliJ IDEA and Rider are trademarks of JetBrains s.r.o. This page is not affiliated with or endorsed by Microsoft, GitHub, Inc. or JetBrains.

More: no Microsoft-hosted parallel job yet · a required policy has not passed · Node.js 6, 10 and 16 leave the agent on November 24, 2026 · 日本語