Lesstep
Azure Pipelines · Microsoft Entra ID · Checked November 7, 2026

Azure Pipelines: "AADSTS7000215: Invalid client secret provided" and "AADSTS7000222"

An Azure Resource Manager service connection of the secret kind signs in to Microsoft Entra ID with an app registration and one of its client secrets. When Entra rejects that secret, every task that uses the connection fails. AADSTS7000222 means the secret has expired; AADSTS7000215 means the secret sent is not a valid one for that app, most often because the secret's ID was saved instead of its value, or the secret was deleted in Entra.

When the failing run is a pull request's build validation, the pull request waits on it: Azure DevOps Pull Requests, a plugin for JetBrains IDEs, lists the pull request's branch policies with their state in IntelliJ IDEA, Rider or PyCharm, and with Pro runs a failed build policy again once the connection is fixed. Get it on JetBrains Marketplace

What it looks like

First, look at the connection

A connection Azure DevOps created: Rotate secret

A connection you created: a new secret value

For good: workload identity federation

Azure DevOps pull requests in IntelliJ IDEA, Rider and PyCharm

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 with Pro you run a failed or expired build policy again from there. The review inbox is free; voting, commenting, completing and creating are Pro, with a 30-day trial.

Get it on JetBrains Marketplace

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

More: Please run 'az login' to setup account · There was a resource authorization issue · This pipeline needs permission to access a resource · 日本語