Skip to content

Commit 368a6d2

Browse files
committed
retrieve resource info for JS and TS
1 parent e296bb4 commit 368a6d2

File tree

6 files changed

+8
-16
lines changed

6 files changed

+8
-16
lines changed

articles/ai-services/openai/includes/assistants-python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ms.date: 05/22/2024
2424

2525
## Passwordless authentication is recommended
2626

27-
For passwordless authentication, you need to
27+
For passwordless authentication, you need to:
2828

2929
1. Use the [azure-identity](https://pypi.org/project/azure-identity/) package.
3030
2. Assign the `Cognitive Services User` role to your user account. This can be done in the Azure portal under **Access control (IAM)** > **Add role assignment**.

articles/ai-services/openai/includes/assistants-typescript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ms.custom: passwordless-js, devex-track-typescript
2525

2626
## Passwordless authentication is recommended
2727

28-
For passwordless authentication, you need to
28+
For passwordless authentication, you need to:
2929

3030
1. Use the `@azure/identity` package.
3131
1. Assign the `Cognitive Services User` role to your user account. This can be done in the Azure portal under **Access control (IAM)** > **Add role assignment**.

articles/ai-services/openai/includes/realtime-python.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,11 @@ For the recommended keyless authentication with Microsoft Entra ID, you need to:
7676
7777
## Retrieve resource information
7878
79-
#### [Microsoft Entra ID](#tab/javascript-keyless)
80-
81-
[!INCLUDE [keyless-environment-variables](env-var-without-key.md)]
82-
83-
#### [API key](#tab/javascript-key)
84-
85-
[!INCLUDE [key-environment-variables](env-var-key.md)]
86-
87-
---
79+
[!INCLUDE [resource authentication](resource-auth.md)]
8880
8981
## Text in audio out
9082
91-
## [Microsoft Entra ID](#tab/javascript-keyless)
83+
## [Microsoft Entra ID](#tab/keyless)
9284
9385
1. Create the `text-in-audio-out.py` file with the following code:
9486
@@ -149,7 +141,7 @@ For the recommended keyless authentication with Microsoft Entra ID, you need to:
149141
python text-in-audio-out.py
150142
```
151143
152-
## [API key](#tab/javascript-key)
144+
## [API key](#tab/api-key)
153145
154146
1. Create the `text-in-audio-out.py` file with the following code:
155147

articles/ai-services/openai/includes/whisper-javascript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ author: eric-urban
3030

3131
## Microsoft Entra ID authentication is recommended
3232

33-
For passwordless authentication, you need to
33+
For passwordless authentication, you need to:
3434

3535
1. Use the `@azure/identity` package.
3636
1. Assign the `Cognitive Services User` role to your user account. This can be done in the Azure portal under **Access control (IAM)** > **Add role assignment**.

articles/ai-services/openai/includes/whisper-python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ echo export AZURE_OPENAI_ENDPOINT="REPLACE_WITH_YOUR_ENDPOINT_HERE" >> /etc/envi
6868

6969
## Passwordless authentication is recommended
7070

71-
For passwordless authentication, you need to
71+
For passwordless authentication, you need to:
7272

7373
1. Use the `@azure/identity` package.
7474
1. Assign the `Cognitive Services User` role to your user account. This can be done in the Azure portal under **Access control (IAM)** > **Add role assignment**.

articles/ai-services/openai/includes/whisper-typescript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ author: eric-urban
3030

3131
## Microsoft Entra ID authentication is recommended
3232

33-
For passwordless authentication, you need to
33+
For passwordless authentication, you need to:
3434

3535
1. Use the `@azure/identity` package.
3636
1. Assign the `Cognitive Services User` role to your user account. This can be done in the Azure portal under **Access control (IAM)** > **Add role assignment**.

0 commit comments

Comments
 (0)