Could not retrieve credential from local cache for service principal
See original GitHub issueOur github actions stopped working today with the error:
ERROR: Could not retrieve credential from local cache for service principal **********. Run
az login
for this service principal.
I’ve tried recreating the service principal, with no luck.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:11
- Comments:12 (3 by maintainers)
Top Results From Across the Web
"Could not retrieve credential from local cache for service ...
This issue is caused by Azure CLI version 2.30.0 which seemed to be rolled out MS hosted agents recently. Hence I adapted all...
Read more >Could not retrieve credential from local cache for service ...
The issue affects all azure_rm resource types, not just azure_rm_postgresqlfirewallrule mentioned in the issue description.
Read more >[Solved] "Could not retrieve credential from local cache for ...
[Solved] "Could not retrieve credential from local cache for service principal" when using Azure CLI credentials in Python SDK on Azure Devops ...
Read more >https://raw.githubusercontent.com/azure/azure-cli/...
... This could mean either real access token, or client secret of a service principal # This naming is no good, but can't...
Read more >Sign in with Azure CLI — Login and Authentication
In this article. Sign in interactively; Sign in with credentials on the command line; Sign in with a service principal; Sign in with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Was there a change in the az installed in the runners today ? The workaround subitly stopped working and I needed to update all my workflows with 2.30.0 which now works…
Could you please advise as it’s annoying to have to debug that.
We’re experiencing the same problem,
ERROR: Could not retrieve credential from local cache for service principal. Run
az loginfor this service principal. Error: Error: az cli script failed.