Skip to content

Commit 5a5d522

Browse files
Merge pull request #2984 from Orin-Thomas/orthomas-16Feb25-B
Update to more detailed Key Vault warning advice reusable content
2 parents ca4b4e0 + c1bb35c commit 5a5d522

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

articles/ai-services/openai/includes/text-to-speech-dotnet.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ To make requests to your Azure OpenAI service, you need the service endpoint as
4343
- [Microsoft Entra ID](/entra/fundamentals/whatis) is the recommended approach for authenticating to Azure services and is more secure than key-based alternatives.
4444
- Access keys allow you to provide a secret key to connect to your resource.
4545
46-
> [!IMPORTANT]
47-
> Access keys should be used with caution. If your service access key is lost or accidentally exposed in an insecure location, your service may become vulnerable. Anyone who has the access key is able to authorize requests against the Azure OpenAI service.
46+
[!INCLUDE [Azure Key Vault](~/reusable-content/ce-skilling/azure/includes/ai-services/security/azure-key-vault.md)]
4847
4948
### Get the Azure OpenAI endpoint
5049
@@ -100,9 +99,6 @@ The access key value can be found in the **Keys & Endpoint** section when examin
10099
Console.WriteLine("Finished streaming");
101100
```
102101
103-
> [!IMPORTANT]
104-
> For production, store and access your credentials using a secure method, such as [Azure Key Vault](/azure/key-vault/general/overview). For more information about credential security, see [Azure AI services security](../../security-features.md).
105-
106102
1. Run the application using the `dotnet run` command or the run button at the top of Visual Studio:
107103
108104
```dotnetcli

articles/ai-services/openai/includes/text-to-speech-javascript.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ Your app's _package.json_ file will be updated with the dependencies.
176176
});
177177
178178
```
179+
[!INCLUDE [Azure Key Vault](~/reusable-content/ce-skilling/azure/includes/ai-services/security/azure-key-vault.md)]
179180

180181
1. Run the script with the following command:
181182

articles/ai-services/openai/includes/text-to-speech-typescript.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,5 @@ Your app's _package.json_ file will be updated with the dependencies.
204204
node Text-to-speech.js
205205
```
206206

207+
[!INCLUDE [Azure Key Vault](~/reusable-content/ce-skilling/azure/includes/ai-services/security/azure-key-vault.md)]
207208
---

0 commit comments

Comments
 (0)