Skip to content

Commit 667fdaa

Browse files
authored
add AADSTS50020 to troubleshooting doc (Azure#37786)
1 parent 14d9861 commit 667fdaa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

sdk/identity/Azure.Identity/TROUBLESHOOTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ curl 'http://169.254.169.254/metadata/identity/oauth2/token?resource=https://man
239239
|Failed To Read VS Code Credentials</p></p>OR</p>Authenticate via Azure Tools plugin in VS Code|No Azure account information was found in the VS Code configuration.|<ul><li>Ensure the [Azure Account plugin](https://marketplace.visualstudio.com/items?itemName=ms-vscode.azure-account) is properly installed</li><li>Use **View > Command Palette** to execute the **Azure: Sign In** command. This command opens a browser window and displays a page that allows you to sign in to Azure.</li><li>If you already had the Azure Account extension installed and logged in to your account, try logging out and logging in again. Doing so will repopulate the cache and potentially mitigate the error you're getting.</li></ul>|
240240
|MSAL Interaction Required Error|The `VisualStudioCodeCredential` was able to read the cached credentials from the cache but the cached token is likely expired.|Log into the Azure Account extension via **View > Command Palette** to execute the **Azure: Sign In** command in the VS Code IDE.|
241241
|ADFS tenant not supported|ADFS tenants aren't currently supported by Visual Studio `Azure Service Authentication`.|Use credentials from a supported cloud when authenticating with Visual Studio. The supported clouds are:</p><ul><li>AZURE PUBLIC CLOUD - https://login.microsoftonline.com/</li><li>AZURE GERMANY - https://login.microsoftonline.de/</li><li>AZURE CHINA - https://login.chinacloudapi.cn/</li><li>AZURE GOVERNMENT - https://login.microsoftonline.us/</li></ul>|
242+
|AADSTS50020| User account '{EmailHidden}' from identity provider 'live.com' doesn't exist in tenant 'Microsoft Services' and cannot access the application '04f0c124-f2bc-4f59-8241-bf6df9866bbd'(VS with native MSA) in that tenant. The account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account.|Specify a `TenantId` value that corresponds to the resource to which you're authenticating in the `VisualStudioCredentialOptions` (or the `DefaultAzureCredentialOptions` if you're using `DefaultAzureCredential`).|
242243

243244
## Troubleshoot `VisualStudioCredential` authentication issues
244245

sdk/identity/Azure.Identity/src/Credentials/ManagedIdentityCredential.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
namespace Azure.Identity
1111
{
1212
/// <summary>
13-
/// Attempts authentication using a managed identity that has been assigned to the deployment environment. This authentication type works in Azure VMs,
14-
/// App Service and Azure Functions applications, as well as the Azure Cloud Shell. More information about configuring managed identities can be found here:
13+
/// Attempts authentication using a managed identity that has been assigned to the deployment environment. This authentication type works for all Azure hosted
14+
/// environments that support managed identity. More information about configuring managed identities can be found here:
1515
/// https://docs.microsoft.com/azure/active-directory/managed-identities-azure-resources/overview
1616
/// </summary>
1717
public class ManagedIdentityCredential : TokenCredential

0 commit comments

Comments
 (0)