Share via

Azure AI Translator not working after resource creation – Portal “Try it” fails and API returns 401001 across subscriptions

JiKoudela-2226 45 Reputation points
2026-04-22T11:12:35.73+00:00

Hello.

I've been on this for two days now. I made the following text with the assistance of Copilot chat:

I am experiencing a blocking issue with Azure AI Translator where newly created Translator resources are not functional.

Summary:

  • Azure AI Translator resources fail immediately after creation
  • Azure Portal “Try it” translation tool fails
  • REST API calls return error 401001 (“credentials are missing or invalid”)
  • Issue reproduces across subscriptions, regions, tiers, and tools

Details:

  • Created multiple Azure AI Translator resources
  • Tested in different Azure subscriptions
  • Tested in different regions (West Europe and France Central)
  • Tested on pricing tiers:

  - F0 (Free)

  - S1 (Standard / Paid)

  • Resource provisioning status shows Active
  • Keys and endpoints are issued correctly

Observed behavior:

  1. In the Azure Portal, using the Translator resource’s built‑in “Try it / Translate text” tool:

   - Translation fails with message:

     “Translation failed. Please try again later.”

  1. Using the REST API (tested from Postman and application code):

   - Endpoint:

     https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=cs

   - Headers:

     Ocp-Apim-Subscription-Key: <key>

     Ocp-Apim-Subscription-Region: <resource region>

     Content-Type: application/json

   - Body:

     [

       { "Text": "Hello world" }

     ]

   - Response:

     {

       "error": {

         "code": 401001,

         "message": "The request is not authorized because credentials are missing or invalid."

       }

     }

Notes:

  • The issue reproduces with both Key1 and Key2
  • The issue reproduces even immediately after upgrading to S1
  • The issue reproduces even when called from Azure Portal (not client code)
  • No Azure service outages are reported
  • There are no network restrictions enabled on the resource
  • The same behavior occurs across multiple subscriptions and regions

Expected behavior:

Azure AI Translator should work immediately after resource provisioning, especially when tested via the Azure Portal itself.

Conclusion:

Because the failure occurs inside the Azure Portal test tool and across subscriptions and pricing tiers, this appears to be a backend provisioning or entitlement issue with the Azure AI Translator service rather than a client configuration problem.

Has anyone from Microsoft seen this issue recently or can confirm if there is a backend problem with Translator resource activation?

Azure Translator in Foundry Tools

Answer accepted by question author

Karnam Venkata Rajeswari 3,335 Reputation points Microsoft External Staff Moderator
2026-04-25T18:20:42.27+00:00

Hello @JiKoudela-2226 ,

Welcome to Microsoft Q&A .Thank you for reaching out to us.

Adding to the inputs provided by Jerald Felix, please check if the following helps-

The 401001 error (“credentials are missing or invalid”) generally indicates an authentication mismatch. In most scenarios, this is caused by incorrect endpoint usage or missing/incorrect headers. As a first level validation, the following checks are recommended:

  1. Kindly ensure the correct endpoint is being used:
    • Global endpoint (commonly used): https://api.cognitive.microsofttranslator.com/...
  2. Validate required authentication headers:
    • Ocp-Apim-Subscription-Key - required for all requests
    • Ocp-Apim-Subscription-Region - required for regional or multi-service resources and must exactly match the deployed region
  3. Please confirm that:
    • The key belongs to the same resource being called
    • The region value is correct (for example: westeurope, francecentral)
    • No formatting issues or extra spaces exist in headers

There can also be a possibility that the resource provisioning or backend activation has not completed correctly, even though the resource shows as active. In such cases a backend validation might be needed, which can be done by reaching out to support for further assistance.

 

The following references might be helpful , please check them out

Thank you

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

Answer accepted by question author

Jerald Felix 13,255 Reputation points Volunteer Moderator
2026-04-25T05:30:20.2666667+00:00

Hello JiKoudela-2226,

Greetings!

Thanks for raising this question in Q&A forum.

I completely understand how frustrating this must be two days on a blocking issue is no fun at all! You've done an excellent job documenting the problem. The 401001 error ("credentials are missing or invalid") combined with failure even inside the Azure Portal's own "Try it" tool strongly points to a backend provisioning or entitlement issue, not a mistake on your end. This sometimes happens when a new Translator resource is created but the backend activation doesn't fully propagate meaning the keys are issued but the service entitlement behind them isn't yet fully live.

Let's go through everything you can check and do right now:

Step 1: Confirm You Are Using the Right Endpoint for Your Resource Type

There are two types of Translator resources and they use different endpoints. This is one of the most common causes of 401001:

If you created a single-service Translator resource, use the resource-specific endpoint (not the global one):

https://<your-resource-name>.cognitiveservices.azure.com/translator/text/v3.0/translate

If you are using the global endpoint https://api.cognitive.microsofttranslator.com, you must also pass the Ocp-Apim-Subscription-Region header. Make sure the region value matches exactly what is shown in your resource — for example westeurope or francecentral (all lowercase, no spaces).

Step 2: Double-Check Your Request Headers in Postman

Make sure all three required headers are present and correct:

Ocp-Apim-Subscription-Key: <your-key1-or-key2>
Ocp-Apim-Subscription-Region: westeurope   ← must match your resource region exactly
Content-Type: application/json

Even a small typo or extra space in the region value will cause a 401001 error.

Step 3: Try the Resource-Specific Endpoint Instead of the Global One

Since the global endpoint is failing, switch to your resource's own endpoint in Postman:

POST https://<your-resource-name>.cognitiveservices.azure.com/translator/text/v3.0/translate?api-version=3.0&to=cs

With the same headers and body. This bypasses the global routing layer and goes directly to your resource.

Step 4: Regenerate Your Keys

Go to your Translator resource in the Azure Portal, navigate to Keys and Endpoint, and click Regenerate Key1. Wait about 60 seconds, then copy the fresh key and try again. Occasionally newly provisioned keys don't activate cleanly on the first generation.

Step 5: Check If a "Azure AI Services" Multi-Service Resource Works Instead

Try creating a new resource of type "Azure AI Services" (the multi-service kind) instead of the standalone Translator resource. This uses a different provisioning path and has been known to work when single-service Translator resources have activation issues.

Step 6: Check Your Subscription for Any Policy Restrictions

Go to Azure Portal → Subscriptions → Your Subscription → Resource Providers and confirm that Microsoft.CognitiveServices is listed as Registered. If it shows as "NotRegistered", click Register and wait a few minutes before trying again.

Step 7: Raise an Azure Support Ticket This Likely Needs Backend Investigation

Since this is failing across multiple subscriptions, regions, tiers, and even inside the Portal's own test tool, you've clearly ruled out all client-side issues. This needs Microsoft's backend team to look at the provisioning state of your resources. Please open an Azure Support Request with Severity B and include:

  • Your resource names and resource IDs (from the Properties blade)
  • The exact subscription IDs you tested with
  • The timestamps of when resources were created
  • Screenshots of the 401001 error from Postman and the Portal

The support team can inspect the internal entitlement state of your resources directly and resolve any backend activation issue quickly.

If this answer helps you kindly accept the answer which will help others who have similar questions.

Best Regards,

Jerald Felix.

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. JiKoudela-2226 45 Reputation points
    2026-04-29T07:19:49.81+00:00

    Thank you all for you're answers.

    I solved the problem by creating a new Translator service with region set to "Global". It works now.

    Have a nice day!

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.