An Azure service to easily conduct machine translation with a simple REST API call.
hi sandervv & thx for sharing urs issue here at Q&A portal,
If firewall is enabled on the Translator resource, use the resource custom endpoint, not api-eur.cognitive.microsofttranslator.com. The working URL is the right pattern https://RESOURCE.cognitiveservices.azure.com/translator/text/v3.0
When u enable selected networks/private endpoints on the resource, Azure gives resource-specific endpoints under Keys and Endpoint > Virtual Network. That’s the endpoint that matches ur firewall/private networking config. MS doc says Translator behind firewalls should use the custom endpoint from the resource networking page https://learn.microsoft.com/en-us/azure/ai-services/translator/text-translation/reference/v3/reference
api-eur.cognitive.microsofttranslator.com is a regional/public Translator endpoint, but it’s not the same as ur resource endpoint w/ firewall rules. So the firewall won’t behave the way u expect there. For data processing, if ur Translator resource is in West Europe and u call the resource endpoint w/ the correct region header, the request is tied to that regional resource. Don’t use the global endpoint if u specifically need regional control.
Make sure u send Ocp-Apim-Subscription-Key: <key> & Ocp-Apim-Subscription-Region: westeurope
https://learn.microsoft.com/en-us/azure/ai-services/translator/how-to/use-firewalls
So pls use the RESOURCE.cognitiveservices.azure.com/translator/text/v3.0 endpoint for firewall/private access. Don’t use api-eur... for that setup.
rgds,
Alex
&
If my answer was helpful pls mark it and additional thx if u follow me at Q&A portal
and at my blog https://ctrlaltdel.blog/