Authentication error - InvalidAuthenticationTokenTenant with AddAzureProvisioning #2963
-
Working yesterday, failing today after my travel from the US to Austria, and needing to re-authenticate with Visual Studio to get an updated license, I see this error when deploying running the application with Visual Studio using
The same error happens when using the command line Re-selected the account with Azure Service authentication, did a login with Running How can I find out why the wrong issuer is used? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I found out it's using |
Beta Was this translation helpful? Give feedback.
-
Just had this issue again - loving the option to set the credentials via configuration, e.g. {
"Azure": {
"CredentialSource": "AzureCli"
}
} This way it was immediately running. Using 8.0.0-preview.6.24177.4/8.0.100 |
Beta Was this translation helpful? Give feedback.
I found out it's using
DefaultAzureCredential
(as expected) excluding Managed Id, workload identity, and PowerShell credentials. I don't know why this was running successfully before because the Visual Studio account I'm using is not the Azure account.Fixed this by adding the Visual Studio key to Visual Studio to log out of the Visual Studio account - now the correct Azure account has been used.