Skip to content

Commit e07171a

Browse files
authored
Updated auth variables
1 parent 8d4663b commit e07171a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

javascript/AnomalyDetector/anomaly_detector_quickstart.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ const msRest = require('@azure/ms-rest-js')
2929
// Spreadsheet with 2 columns and n rows.
3030
let CSV_FILE = './request-data.csv'
3131

32-
// Authentication vars
33-
let key = process.env['ANOMALY_DETECTOR_KEY']
32+
// Authentication variables
33+
// Add your Anomaly Detector subscription key and endpoint to your environment variables.
34+
let key = process.env['ANOMALY_DETECTOR_SUBSCRIPTION_KEY']
3435
let endpoint = process.env['ANOMALY_DETECTOR_ENDPOINT']
3536
let credentials = new msRest.ApiKeyCredentials({ inHeader: { 'Ocp-Apim-Subscription-Key': key } })
3637
// Points array for the request body

0 commit comments

Comments
 (0)