Search code examples
razurehttpazure-cognitive-serviceshttr

Endpoint to determine region of Microsoft Azure API Key


I'm working on an R package, mscstts2, that makes HTTP requests to the Microsoft Text to speech REST API

I'm wondering if Microsoft has an endpoint, such as the issueToken endpoint, that can determine the region of the resource, by using the API Key.

If not, is there any way we can determine the region of the resource for an user?


Solution

  • You can get the region of your Cognitive services resource by calling the API endpoints below:-

    Rest API reference1.

    This API will List all the Cognitive Services resource in your Azure account with their details along with the location of the resource, Refer below:-

    enter image description here

    Rest API reference2

    This API will List all the Cognitive Services resource by resource group with their details along with the location of the resource, Refer below:-

    enter image description here