Skip to content

Commit 95ee6d3

Browse files
authored
Merge pull request #205655 from DenKenMSFT/UserStory1971500-08
Subscription key note update - Metrics Advisor, Quickstarts
2 parents 962ed88 + e518de0 commit 95ee6d3

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

articles/applied-ai-services/metrics-advisor/includes/quickstarts/csharp.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ var credential = new MetricsAdvisorKeyCredential(subscriptionKey, apiKey);
137137
var adminClient = new MetricsAdvisorAdministrationClient(new Uri(endpoint), credential);
138138
```
139139

140+
> [!IMPORTANT]
141+
> 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/cognitive-services-security.md) article for more information.
142+
140143
## Add a data feed
141144

142145
Metrics Advisor supports multiple types of data sources. In this sample we'll illustrate how to create a `DataFeed` that extracts data from a SQL server.

articles/applied-ai-services/metrics-advisor/includes/quickstarts/java.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ MetricsAdvisorAdministrationClient metricsAdvisorAdministrationClient =
142142

143143
```
144144

145+
> [!IMPORTANT]
146+
> 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/cognitive-services-security.md) article for more information.
147+
145148
## Add a data feed
146149

147150
Replace `sql_server_connection_string` with your own SQL server connection string, and replace `query` with a query that returns your data at a single timestamp. You will also need to adjust the `DataFeedMetric` and `DataFeedDimension` values based on your custom data.

articles/applied-ai-services/metrics-advisor/includes/quickstarts/javascript.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,16 @@ Create variables for your resource's Azure endpoint and key.
6161

6262
> [!IMPORTANT]
6363
> Go to the Azure portal. If the Metrics Advisor resource you created in the **Prerequisites** section deployed successfully, click the **Go to Resource** button under **Next Steps**. You can find your subscription keys and endpoint in the resource's **Key and Endpoint** page, under **Resource Management**. <br><br>To retrieve your API key you must go to [https://metricsadvisor.azurewebsites.net](https://metricsadvisor.azurewebsites.net). Select the appropriate: **Directory**, **Subscriptions**, and **Workspace** for your resource and choose **Get started**. You will then be able to retrieve your API keys from [https://metricsadvisor.azurewebsites.net/api-key](https://metricsadvisor.azurewebsites.net/api-key).
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. See the Cognitive Services [security](../../../../cognitive-services/cognitive-services-security.md) article for more information.
6664
6765
```javascript
6866
subscriptionKey = "<paste-your-metrics-advisor-key-here>";
6967
apiKey ="<paste-your-metrics-advisor-api-key-here>";
7068
endpoint = "<paste-your-metrics-advisor-endpoint-here>";
7169
```
7270

71+
> [!IMPORTANT]
72+
> 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/cognitive-services-security.md) article for more information.
73+
7374
## Object model
7475

7576
The following classes and interfaces handle some of the major features of the Metrics Advisor JavaScript SDK.

articles/applied-ai-services/metrics-advisor/includes/quickstarts/python.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,16 @@ Create variables for your resource's Azure endpoint and key.
4949

5050
> [!IMPORTANT]
5151
> Go to the Azure portal. If the Metrics Advisor resource you created in the **Prerequisites** section deployed successfully, click the **Go to Resource** button under **Next Steps**. You can find your subscription keys and endpoint in the resource's **Key and Endpoint** page, under **Resource Management**. <br><br>To retrieve your API key you must go to [https://metricsadvisor.azurewebsites.net](https://metricsadvisor.azurewebsites.net). Select the appropriate: **Directory**, **Subscriptions**, and **Workspace** for your resource and choose **Get started**. You will then be able to retrieve your API keys from [https://metricsadvisor.azurewebsites.net/api-key](https://metricsadvisor.azurewebsites.net/api-key).
52-
>
53-
> 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. See the Cognitive Services [security](../../../../cognitive-services/cognitive-services-security.md) article for more information.
5452
5553
```python
5654
subscription_key = "<paste-your-metrics-advisor-subscription-key-here>"
5755
api_key = "<paste-your-metrics-advisor-api-key-here>"
5856
service_endpoint = "<paste-your-metrics-advisor-endpoint-here>"
5957
```
6058

59+
> [!IMPORTANT]
60+
> 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/cognitive-services-security.md) article for more information.
61+
6162
## Object model
6263

6364
The following classes handle some of the major features of the Metrics Advisor Python SDK.

0 commit comments

Comments
 (0)