question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not retrieve credential from local cache for service principal

See original GitHub issue

Our 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:closed
  • Created 2 years ago
  • Reactions:11
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
totogtrcommented, Nov 9, 2021

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.

3reactions
shreekannancommented, Nov 2, 2021

We’re experiencing the same problem,

ERROR: Could not retrieve credential from local cache for service principal. Run az login for this service principal. Error: Error: az cli script failed.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found