You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was getting the following exception when using DefaultAzureCredential:
Unhandled exception. Azure.Identity.AuthenticationFailedException: Azure CLI authentication failed due to an unknown error. CLIInternalError: The command failed with an unexpected error. Here is the traceback:
Get Token request returned http error: 400 and server response: {"error":"invalid_grant","error_description":"AADSTS9002313: Invalid request. Request is malformed or invalid.\r\nTrace ID: bb605d03-a3a5-44c6-95a7-76f523940000\r\nCorrelation ID: 54e3890f-28ae-44da-b69d-9ecdaa0b3091\r\nTimestamp: 2021-06-09 21:50:12Z","error_codes":[9002313],"timestamp":"2021-06-09 21:50:12Z","trace_id":"bb605d03-a3a5-44c6-95a7-76f523940000","correlation_id":"54e3890f-28ae-44da-b69d-9ecdaa0b3091","error_uri":"https://login.microsoftonline.com/error?code=9002313"}
I was getting the following exception when using
DefaultAzureCredential
:It also repro'd using the following code:
Or when running CLI command
az account get-access-token
.I was able to fix it by running
az login
again. I have no idea what caused my az cli login to be corrupted (or whatever happened here).The text was updated successfully, but these errors were encountered: