Wednesday, July 10, 2019

Cognitive Services and Authentication using multi-service Subscription Key

Any request to Cognitive Services needs to be authenticated. For using multiple Cognitive Services like Computer Vision, Text Analytics, you can use still use a single subscription key to authenticate your requests.
Note: QnA Maker, Speech Services, Custom Vision, and Anomaly Detector services don’t support multi-support Subscription Key.














Pre-requisites
  • Azure Subscription
Steps
1. Log on to the Azure Portal
2. Create a new resource of type “Cognitive Service” from the marketplace.

















3. Type the name of the resource, subscription, location, pricing tier and resourcing group. Also pay attention to the online services terms.















4. Once the resource is created, note down the endpoint and access keys. The same access key can be used to authenticate any Cognitive Services like Custom Vision, Text Analytics etc.
























Download code: https://github.com/shantha05/CognitiveServices (CognitiveServicesDemo project)
Technorati Tags:


Tuesday, July 09, 2019

Cognitive Services and Authentication using Single Subscription Key

Any request to Cognitive Services needs to be authenticated. For using single Cognitive Service like Computer Vision or Custom Vision you can use separate subscription key for each specific service to authenticate your requests.
Pre-requisites
  • Azure Subscription
Steps
1. Log on to the Azure Portal
2. Create a new resource “Computer Vision” from the marketplace.















3. Type a name for the resource, subscription, location, pricing tier and resourcing group.




















4. Once the resource is created, note down the endpoint and access keys. The access key can be used only to authenticate to “Computer Vision” resource and cannot be used to authenticate other Cognitive Services like Custom Vision, Text Analytics etc.


























Download code: https://github.com/shantha05/CognitiveServices
Technorati Tags: Cognitive Services