Skip to content

Commit 72a1a28

Browse files
committed
remove details about configuring Entra ID
1 parent 6e276b6 commit 72a1a28

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

articles/ai-foundry/foundry-models/how-to/use-chat-completions.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ For Azure OpenAI in Foundry Models, use the [Responses API](../../openai/support
4444
In the following examples, you create the client to consume the model and then send a basic request to the model.
4545

4646
> [!NOTE]
47-
> Use keyless authentication with Microsoft Entra ID. If that's not possible, use an API key and store it in Azure Key Vault. You can use an environment variable for testing outside of your Azure environments.
47+
> Use keyless authentication with Microsoft Entra ID. If that's not possible, use an API key and store it in Azure Key Vault. You can use an environment variable for testing outside of your Azure environments. To learn more about keyless authentication, see [What is Microsoft Entra authentication?](/entra/identity/authentication/overview-authentication) and [DefaultAzureCredential](/azure/developer/python/sdk/authentication/overview#defaultazurecredential).
4848
4949
### Use the responses API
5050

@@ -95,13 +95,6 @@ Microsoft Entra authentication only supports Azure OpenAI resources. Complete th
9595
pip install azure-identity
9696
```
9797

98-
1. Define an environment variable named `AZURE_TOKEN_CREDENTIALS`, and set it according to the environment in which the code runs:
99-
- In Azure, set it to `ManagedIdentityCredential`.
100-
> [!IMPORTANT]
101-
> If you use a user-assigned managed identity, define an environment variable named `AZURE_CLIENT_ID`. Set it to the client ID of the managed identity. If you don't set that environment variable, `DefaultAzureCredential` assumes a system-assigned managed identity.
102-
- In local development, set it to `dev`.
103-
The Azure Identity library's `DefaultAzureCredential` reads this environment variable. For more information, see [Exclude a credential type category](/azure/developer/python/sdk/authentication/credential-chains?tabs=dac#exclude-a-credential-type-category).
104-
10598
1. Use the following code to configure the OpenAI client object, specify your deployment, and generate responses.
10699

107100
```python
@@ -162,12 +155,6 @@ Microsoft Entra authentication only supports Azure OpenAI resources. Complete th
162155
```dotnetcli
163156
dotnet add package Azure.Identity
164157
```
165-
1. Define an environment variable named `AZURE_TOKEN_CREDENTIALS`, and set it according to the environment in which the code runs:
166-
- In Azure, set it to `ManagedIdentityCredential`.
167-
> [!IMPORTANT]
168-
> If you use a user-assigned managed identity, define an environment variable named `AZURE_CLIENT_ID`. Set it to the client ID of the managed identity. If you don't set that environment variable, `DefaultAzureCredential` assumes a system-assigned managed identity.
169-
- In local development, set it to `dev`.
170-
The Azure Identity library's `DefaultAzureCredential` reads this environment variable. For more information, see [Exclude a credential type category](/dotnet/azure/sdk/authentication/credential-chains?tabs=dac#exclude-a-credential-type-category).
171158
172159
1. Use the following code to configure the OpenAI client object, specify your deployment, and generate responses.
173160

0 commit comments

Comments
 (0)