When we sign up a Microsoft Trranslator service for a specific region but the translation request URL is of a different geography, the translation requests will be served based on specific region or geography?

Rajesh Voleti 1 Reputation point
2020-05-28T15:38:03.087+00:00

While creating a Microsoft Translator Service, we can opt for a specific region instead of global and pass the in the header section as value for key 'Ocp-Apim-Subscription-Region'.

As per this link (https://learn.microsoft.com/en-in/azure/cognitive-services/translator/reference/v3-0-reference), if we have the region as 'global' then we can use geographical based URL to force the translation requests being served the corresponding data center region.

If we select region as 'australiaeast' while creating the translator service and use base URL as 'api-nam.cognitive.microsofttranslator.com' (United States), currently the translation requests are getting processed successfully.

However, we need to know whether these translation requests are being served from 'australiaeast' or 'api-nam.cognitive.microsofttranslator.com' region. Please confirm.

Azure Translator
Azure Translator
An Azure service to easily conduct machine translation with a simple REST API call.
340 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,364 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 41,961 Reputation points Microsoft Employee
    2020-06-01T10:34:40.407+00:00

    Are you passing the header Ocp-Apim-Subscription-Region while using the regional endpoint api-nam.cognitive.microsofttranslator.com? Regional endpoint forces the request to be handled by that geography mentioned in the URI. In this case it is NAM.
    It is recommended to use the URI api-apc.cognitive.microsofttranslator.com if the resource is created in Australia region to avoid request being handled by other geographies.

    1 person found this answer helpful.