Azure-Samples / AnomalyDetector

Samples for the Anomaly Detection API documentation:
https://docs.microsoft.com/en-us/azure/cognitive-services/anomaly-detector/
MIT License
97 stars 167 forks source link

401 Tier Error for Cognitive Service #23

Closed mtochs closed 4 years ago

mtochs commented 4 years ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request
- [X] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  • Created cognitive search service with S0 tier (only tier I was able to select)
  • Added api key and endpoint
  • Ran notebook as is

Any log messages given by the failure

Exception: {"error":{"code":"401","message": "The Find anomalies for the entire series in batch. Operation under Anomaly Detector is not supported with the current subscription key and pricing tier CognitiveServices.S0."}}

There doesn't appear to be any other tier options than S0

Expected/desired behavior

OS and Version?

Windows 10

Versions

Mention any other details that might be useful

Will there be an update to integrate directly with anomaly detector service? Not the anomaly detector within cognitive search service.

mtochs commented 4 years ago

Figured it out. The example in the notebook for api endpoint uses the cognitive service url: https://westus2.api.cognitive.microsoft.com/anomalydetector/v1.0/timeseries/entire/detect

the correct endpoint is the anomaly detector api address in combination with the extra directory information: https://xxxxx.cognitiveservices.azure.com/anomalydetector/v1.0/timeseries/entire/detect

where xxxxx is the name of the anomaly detector api