Skip to content

Commit a05f337

Browse files
Update docs/azure/sdk/authentication/local-development-dev-accounts.md
Co-authored-by: alexwolfmsft <[email protected]>
1 parent 581f0f4 commit a05f337

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

docs/azure/sdk/authentication/local-development-dev-accounts.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -137,20 +137,21 @@ Complete the following steps:
137137
dotnet add package Microsoft.Extensions.Azure
138138
```
139139
140-
1. In `Program.cs`, complete the following steps:
141-
1. Add `using` directives for the `Azure.Identity` and `Microsoft.Extensions.Azure` namespaces.
142-
1. Register the Azure service client using the corresponding `Add`-prefixed extension method.
140+
1. In `Program.cs`, add `using` directives for the `Azure.Identity` and `Microsoft.Extensions.Azure` namespaces.
143141
144-
Azure services are accessed using specialized client classes from the Azure SDK client libraries. Register these client types so you can access them through dependency injection across your app.
142+
1. Register the Azure service client using the corresponding `Add`-prefixed extension method.
145143
146-
1. Pass a `TokenCredential` instance to the `UseCredential` method. A couple common `TokenCredential` examples include:
147-
- A `DefaultAzureCredential` instance optimized for local development. This example sets environment variable `AZURE_TOKEN_CREDENTIALS` to `dev`. For more information, see [Exclude a credential type category](credential-chains.md#exclude-a-credential-type-category).
144+
Azure services are accessed using specialized client classes from the Azure SDK client libraries. Register these client types so you can access them through dependency injection across your app.
148145
149-
:::code language="csharp" source="../snippets/authentication/local-dev-account/Program.cs" id="snippet_DefaultAzureCredentialDev":::
146+
1. Pass a `TokenCredential` instance to the `UseCredential` method. A couple common `TokenCredential` examples include:
150147
151-
- An instance of a credential corresponding to a specific development tool, such as `VisualStudioCredential`.
148+
- A `DefaultAzureCredential` instance optimized for local development. This example sets environment variable `AZURE_TOKEN_CREDENTIALS` to `dev`. For more information, see [Exclude a credential type category](credential-chains.md#exclude-a-credential-type-category).
152149
153-
:::code language="csharp" source="../snippets/authentication/local-dev-account/Program.cs" id="snippet_VisualStudioCredential":::
150+
:::code language="csharp" source="../snippets/authentication/local-dev-account/Program.cs" id="snippet_DefaultAzureCredentialDev":::
151+
152+
- An instance of a credential corresponding to a specific development tool, such as `VisualStudioCredential`.
153+
154+
:::code language="csharp" source="../snippets/authentication/local-dev-account/Program.cs" id="snippet_VisualStudioCredential":::
154155
155156
> [!TIP]
156157
> If your team uses multiple development tools to authenticate to Azure, use `DefaultAzureCredential` instead of a specific development tool credential.

0 commit comments

Comments
 (0)