How do I
save new secret in service connection
?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have an Azure release pipeline that's been working for a while but suddenly the AzureCLI task fails saying Azure login failed.
Here is the task.
Clicking on Manage I get through to Azure that shows a warning about an expired 'secret'.
It will produce a new secret, but what do I do with it? I can't find the old one anwhere.
How do I
save new secret in service connection
?
Hey Richard, it looks like your AzureCLI task is failing because the underlying Service Principal’s client secret has expired. When you hit “Manage” in your classic pipeline and see that warning, it’s telling you exactly that – the secret used by your Azure Resource Manager service connection is no longer valid, so az login blows up.
Here’s how to fix it:
Click on Rotate secret if it is visible to auto rotate.
Or
If you can’t find the original service connection or want a fresh start, you can also create a brand-new ARM service connection in DevOps and point your task to that.
Hope that helps—once the secret’s updated, your inline PowerShell or CLI steps will be able to az login again without errors!
Reference docs for more details:
Note: This content was drafted with the help of an AI system.