Hello Anupam Mathur,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you are having a Forbidden status code and OperationBlocked reason phrase due to an issue with your translation container not being able to reach the billing endpoint.
To resolve this:
First, ensure that your API key and billing endpoint are correct and valid, as an incorrect API key can cause errors. Verify that your Azure Cognitive Services resource is in a supported region, as some services are region-specific. Additionally, make sure the container is configured with all necessary environment variables, including Eula
, Billing
, API Key
, and Http_Proxy
if needed.
Secondly, check that your service is not using a free tier (F0), which might have connectivity limitations. Upgrading to a higher pricing tier (e.g., S0) can sometimes resolve these issues. Also, double-check your network settings to ensure there are no hidden firewalls or proxies blocking the connection to the billing endpoint, as network policies might affect connectivity. - similar solution on this platform - https://zcusa.951200.xyz/en-us/answers/questions/469165/running-luis-image-on-azure-container-instanse-sto
Lastly, the container tries to connect to the billing endpoint multiple times. If it consistently fails, there might be an intermittent network issue. Restarting the container or the service might help resolve this. - https://zcusa.951200.xyz/en-us/azure/ai-services/translator/containers/install-run
If these steps do not resolve the issue, consider contacting Azure support
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.