Skip to content

Commit a315ab8

Browse files
authored
Azure Identity README cleanup (Azure#45866)
1 parent ade2cee commit a315ab8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sdk/identity/Azure.Identity/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ These examples demonstrate authenticating `SecretClient` from the [Azure.Securit
160160

161161
#### Authenticate with a user-assigned managed identity
162162

163-
To authenticate with a user-assigned managed identity, you must specify an ID for the managed identity.
163+
To authenticate with a user-assigned managed identity, you must specify one of the following IDs for the managed identity.
164164

165-
The following example demonstrates authenticating with a user-assigned managed identity using the client ID:
165+
**Client ID**
166166

167167
```C# Snippet:AuthenticatingWithManagedIdentityCredentialUserAssigned
168168
string userAssignedClientId = "some client ID";
@@ -172,7 +172,7 @@ var credential = new ManagedIdentityCredential(
172172
var client = new SecretClient(new Uri("https://myvault.vault.azure.net/"), credential);
173173
```
174174

175-
The following example demonstrates authenticating with a user-assigned managed identity using its resource ID:
175+
**Resource ID**
176176

177177
```C# Snippet:AuthenticatingWithManagedIdentityCredentialUserAssignedResourceId
178178
ResourceIdentifier userAssignedResourceId = new ResourceIdentifier(
@@ -183,7 +183,7 @@ var credential = new ManagedIdentityCredential(
183183
var client = new SecretClient(new Uri("https://myvault.vault.azure.net/"), credential);
184184
```
185185

186-
The following example demonstrates authenticating with a user-assigned managed identity using its object ID:
186+
**Object ID**
187187

188188
```C# Snippet:AuthenticatingWithManagedIdentityCredentialUserAssignedObjectId
189189
string userAssignedObjectId = "some object ID";
@@ -214,7 +214,7 @@ var credential = new DefaultAzureCredential(
214214
});
215215
```
216216

217-
[AzureAuthorityHosts](https://learn.microsoft.com/dotnet/api/azure.identity.azureauthorityhosts?view=azure-dotnet) defines authorities for well-known clouds.
217+
[AzureAuthorityHosts](https://learn.microsoft.com/dotnet/api/azure.identity.azureauthorityhosts?view=azure-dotnet) defines authorities for well-known clouds.
218218

219219
2. Set the `AZURE_AUTHORITY_HOST` environment variable to the appropriate authority host URL. For example, `https://login.microsoftonline.us/`. Note that this setting affects all credentials in the environment. Use the previous solution to set the authority host on a specific credential.
220220

0 commit comments

Comments
 (0)