You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/azure/sdk/authentication/local-development-dev-accounts.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -137,20 +137,21 @@ Complete the following steps:
137
137
dotnet add package Microsoft.Extensions.Azure
138
138
```
139
139
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.
143
141
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.
145
143
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.
1. Pass a `TokenCredential` instance to the `UseCredential` method. A couple common `TokenCredential` examples include:
150
147
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).
> If your team uses multiple development tools to authenticate to Azure, use `DefaultAzureCredential` instead of a specific development tool credential.
0 commit comments