From dfbde8d06e479cf3d7b7da17147b04deaa229337 Mon Sep 17 00:00:00 2001 From: Daniel Rodriguez Date: Wed, 2 Jun 2021 20:25:47 +0000 Subject: [PATCH] Idea on how to improve the related docs --- sdk/identity/identity/samples/AzureIdentityExamples.md | 2 +- .../src/credentials/managedIdentityCredential/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/identity/identity/samples/AzureIdentityExamples.md b/sdk/identity/identity/samples/AzureIdentityExamples.md index 2ea0410e4812..f65a9c73ba2b 100644 --- a/sdk/identity/identity/samples/AzureIdentityExamples.md +++ b/sdk/identity/identity/samples/AzureIdentityExamples.md @@ -96,7 +96,7 @@ If your application is hosted in Azure, you can make use of [Managed Identity](h | Credential with example | Usage | | --------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [ManagedIdentityCredential](#authenticating-in-azure-with-managed-identity) | Authenticate in a virtual machine, app service, function app, cloud shell, or AKS environment on Azure, with system assigned, or user assigned managed identity enabled. | +| [ManagedIdentityCredential](#authenticating-in-azure-with-managed-identity) | Authenticate in a virtual machine, app service, function app, cloud shell, or AKS environment on Azure, with system assigned managed identity, user assigned managed identity, or app registration. . | | [DefaultAzureCredential](#authenticating-with-defaultazurecredential) | Tries `EnvironmentCredential`, `ManagedIdentityCredential`, `AzureCliCredential`, `AzurePowerShellCredential`, and other credentials sequentially until one of them succeeds. Use this to have your application authenticate using developer tools, service principals or managed identity based on what is available in the current environment without changing your code. | ### Examples diff --git a/sdk/identity/identity/src/credentials/managedIdentityCredential/index.ts b/sdk/identity/identity/src/credentials/managedIdentityCredential/index.ts index 44d54f6939d8..86ae0db18f53 100644 --- a/sdk/identity/identity/src/credentials/managedIdentityCredential/index.ts +++ b/sdk/identity/identity/src/credentials/managedIdentityCredential/index.ts @@ -32,9 +32,9 @@ export class ManagedIdentityCredential implements TokenCredential { /** * Creates an instance of ManagedIdentityCredential with the client ID of a - * user-assigned identity. + * user-assigned identity or app registration. * - * @param clientId - The client ID of the user-assigned identity. + * @param clientId - The client ID of the user-assigned identity or app registration. * @param options - Options for configuring the client which makes the access token request. */ constructor(clientId: string, options?: TokenCredentialOptions);