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
First install the Azure Identity client library. For how to install this library, see [Azure Identity client library for Java](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity/README.md#include-the-package).
A secure, keyless authentication approach is to use Microsoft Entra ID (formerly Azure Active Directory) via the [Azure Identity library](/dotnet/api/overview/azure/identity-readme?view=azure-dotnet&preserve-view=true). To use the library:
402
+
A secure, keyless authentication approach is to use Microsoft Entra ID via the [Azure Identity library](/dotnet/api/overview/azure/identity-readme?view=azure-dotnet&preserve-view=true). To use the library:
390
403
391
404
```dotnetcli
392
405
dotnet add package Azure.Identity
@@ -410,7 +423,6 @@ ChatClient client = new(
410
423
model: "grok-3-mini", // Replace with your model deployment name.
@@ -611,9 +623,9 @@ Add the Azure Identity package:
611
623
</dependency>
612
624
```
613
625
614
-
After setup, you can choose which type of credential from `azure.identity` to use. As an example, `DefaultAzureCredential` can be used to authenticate the client: Set the values of the client ID, tenant ID, and client secret of the Microsoft Entra ID application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET.
626
+
After setup, you can choose which type of credential from `azure.identity` to use. As an example, `DefaultAzureCredential` can be used to authenticate the client.
615
627
616
-
Authorization is easiest using `DefaultAzureCredential`. It finds the best credential to use in its running environment. However, use of `DefaultAzureCredential` is only recommended for testing, not for production.
628
+
Authentication is easiest using `DefaultAzureCredential`. It finds the best credential to use in its running environment.
0 commit comments