Skip to content

Commit 32bc53c

Browse files
authored
Merge pull request #205657 from DenKenMSFT/UserStory1971500-09
Subscription key note update - Content Moderator, Quickstarts & Tutorials
2 parents 794af3b + 3aa0cb9 commit 32bc53c

File tree

7 files changed

+20
-9
lines changed

7 files changed

+20
-9
lines changed

articles/cognitive-services/Content-Moderator/image-lists-quickstart-dotnet.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ public static class Clients
111111
}
112112
```
113113

114+
> [!IMPORTANT]
115+
> Remember to remove the key from your code when you're done, and never post it publicly. For production, use a secure way of storing and accessing your credentials like [Azure Key Vault](../../key-vault/general/overview.md). See the Cognitive Services [security](../cognitive-services-security.md) article for more information.
114116
115117
### Initialize application-specific settings
116118

articles/cognitive-services/Content-Moderator/includes/quickstarts/csharp-sdk.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ In the **Program** class, create variables for your resource's key and endpoint.
9090

9191
> [!IMPORTANT]
9292
> Go to the Azure portal. If the Content Moderator resource you created in the **Prerequisites** section deployed successfully, click the **Go to Resource** button under **Next Steps**. You can find your key and endpoint in the resource's **key and endpoint** page, under **resource management**.
93-
>
94-
> Remember to remove the key from your code when you're done, and never post it publicly. For production, consider using a secure way of storing and accessing your credentials. For more information, see the Cognitive Services [security](../../../cognitive-services-security.md) article.
9593
9694
[!code-csharp[](~/cognitive-services-quickstart-code/dotnet/ContentModerator/Program.cs?name=snippet_creds)]
9795

96+
> [!IMPORTANT]
97+
> Remember to remove the key from your code when you're done, and never post it publicly. For production, use a secure way of storing and accessing your credentials like [Azure Key Vault](../../../../key-vault/general/overview.md). See the Cognitive Services [security](../../../cognitive-services-security.md) article for more information.
9898
9999
In the application's `main()` method, add calls for the methods used in this quickstart. You will create these later.
100100

articles/cognitive-services/Content-Moderator/includes/quickstarts/java-sdk.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,18 +93,18 @@ Navigate to the new folder and create a file called *ContentModeratorQuickstart.
9393
9494
In the application's **ContentModeratorQuickstart** class, create variables for your resource's key and endpoint.
9595

96+
> [!IMPORTANT]
97+
> Go to the Azure portal. If the Content Moderator resource you created in the **Prerequisites** section deployed successfully, click the **Go to Resource** button under **Next Steps**. You can find your key and endpoint in the resource's **key and endpoint** page, under **resource management**.
98+
9699
[!code-java[](~/cognitive-services-quickstart-code/java/ContentModerator/src/main/java/ContentModeratorQuickstart.java?name=snippet_creds)]
97100

98101
> [!IMPORTANT]
99-
> Go to the Azure portal. If the Content Moderator resource you created in the **Prerequisites** section deployed successfully, click the **Go to Resource** button under **Next Steps**. You can find your key and endpoint in the resource's **key and endpoint** page, under **resource management**.
100-
>
101-
> Remember to remove the key from your code when you're done, and never post it publicly. For production, consider using a secure way of storing and accessing your credentials. For more information, see the Cognitive Services [security](../../../cognitive-services-security.md) article.
102+
> Remember to remove the key from your code when you're done, and never post it publicly. For production, use a secure way of storing and accessing your credentials like [Azure Key Vault](../../../../key-vault/general/overview.md). See the Cognitive Services [security](../../../cognitive-services-security.md) article for more information.
102103
103104
In the application's **main** method, add calls for the methods used in this quickstart. You'll define these methods later.
104105

105106
[!code-java[](~/cognitive-services-quickstart-code/java/ContentModerator/src/main/java/ContentModeratorQuickstart.java?name=snippet_maincalls)]
106107

107-
108108
## Object model
109109

110110
The following classes handle some of the major features of the Content Moderator Java client library.

articles/cognitive-services/Content-Moderator/includes/quickstarts/python-sdk.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,13 @@ Create a new Python script and open it in your preferred editor or IDE. Then add
5757
5858
Next, create variables for your resource's endpoint location and key.
5959

60+
> [!IMPORTANT]
61+
> Go to the Azure portal. If the Content Moderator resource you created in the **Prerequisites** section deployed successfully, click the **Go to Resource** button under **Next Steps**. You can find your key and endpoint in the resource's **key and endpoint** page, under **resource management**.
62+
6063
[!code-python[](~/cognitive-services-quickstart-code/python/ContentModerator/ContentModeratorQuickstart.py?name=snippet_vars)]
6164

6265
> [!IMPORTANT]
63-
> Go to the Azure portal. If the Content Moderator resource you created in the **Prerequisites** section deployed successfully, click the **Go to Resource** button under **Next Steps**. You can find your key and endpoint in the resource's **key and endpoint** page, under **resource management**.
64-
>
65-
> Remember to remove the key from your code when you're done, and never post it publicly. For production, consider using a secure way of storing and accessing your credentials. For example, [Azure key vault](../../../../key-vault/general/overview.md).
66+
> Remember to remove the key from your code when you're done, and never post it publicly. For production, use a secure way of storing and accessing your credentials like [Azure Key Vault](../../../../key-vault/general/overview.md). See the Cognitive Services [security](../../../cognitive-services-security.md) article for more information.
6667
6768
## Object model
6869

articles/cognitive-services/Content-Moderator/includes/quickstarts/rest-api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ You'll use a command like the following to call the Content Moderator API to ana
3939
Copy the command to a text editor and make the following changes:
4040

4141
1. Assign `Ocp-Apim-Subscription-Key` to your valid Face subscription key.
42+
> [!IMPORTANT]
43+
> Remember to remove the key from your code when you're done, and never post it publicly. For production, use a secure way of storing and accessing your credentials like [Azure Key Vault](../../../../key-vault/general/overview.md). See the Cognitive Services [security](../../../cognitive-services-security.md) article for more information.
4244
1. Change the first part of the query URL to match the endpoint that corresponds to your subscription key.
4345
[!INCLUDE [subdomains-note](../../../../../includes/cognitive-services-custom-subdomains-note.md)]
4446
1. Optionally change the body of the request to whatever string of text you'd like to analyze.

articles/cognitive-services/Content-Moderator/term-lists-quickstart-dotnet.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ public static class Clients
107107
}
108108
```
109109

110+
> [!IMPORTANT]
111+
> Remember to remove the key from your code when you're done, and never post it publicly. For production, use a secure way of storing and accessing your credentials like [Azure Key Vault](../../key-vault/general/overview.md). See the Cognitive Services [security](../cognitive-services-security.md) article for more information.
112+
110113
### Add private properties
111114

112115
Add the following private properties to namespace TermLists, class Program.

articles/cognitive-services/Content-Moderator/video-moderation-api.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ private static readonly string CONTENT_MODERATOR_PRESET_FILE = "preset.json";
118118

119119
```
120120

121+
> [!IMPORTANT]
122+
> Remember to remove the keys from your code when you're done, and never post them publicly. For production, use a secure way of storing and accessing your credentials like [Azure Key Vault](../../key-vault/general/overview.md). See the Cognitive Services [security](../cognitive-services-security.md) article for more information.
123+
121124
If you wish to use a local video file (simplest case), add it to the project and enter its path as the `INPUT_FILE` value (relative paths are relative to the execution directory).
122125

123126
You will also need to create the _preset.json_ file in the current directory and use it to specify a version number. For example:

0 commit comments

Comments
 (0)