Why Are My Azure DevOps Pipelines Failing?
Asked by
BetterAskFirst
I've run into an issue where all my pipelines in Azure DevOps suddenly stopped working. After some investigation, I discovered that several service principal secrets had expired. I regenerated these secrets and updated the service connection details, but unfortunately, the problem persists. The error message I keep receiving includes: 'AADSTS7000222: The provided client secret keys for app are expired.' It advises me to visit the Azure portal to create new keys for my app or consider using certificate credentials for better security. Importantly, no changes have been made to the repo code, so I'm not sure what else could be causing this issue.
Answers
Good to hear the issue is resolved! Just a note for the futureโmake sure there aren't any similar service connection names, as that can lead to confusion like what you experienced. And consider looking into workload identity for added security.
Reply to this answer
It looks like the main issue here is that the client secret keys for your app have expired. Client secrets can become invalid over time, and you need to renew them and update the affected services. No code changes should have caused this, it's just a maintenance task you need to handle every now and then.
Reply to this answer
For anyone else facing similar issues, if youโre using agents, try rebooting them too. Sometimes that can help clear up any lingering issues.
Reply to this answer
Switching to workload identity credentials might be a good long-term solution. They tend to be more secure and don't have the expiration issue like secrets do, but you'd need to ensure your setup supports it.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions