How to solve 401: Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.

Alena Stanchyts 0 Reputation points
2024-06-05T22:41:48.3366667+00:00

I am creating project at https://language.cognitive.azure.com/customText/projects/classification

via UI but constantly getting

401: Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.

I've already checked keys, region. Subscription is active (trial version)

but still geting this error.

Note: I am not making any api calls, but utilizing user interface.

Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
381 questions
{count} votes

1 answer

Sort by: Most helpful
  1. navba-MSFT 19,480 Reputation points Microsoft Employee
    2024-06-06T06:36:26.4866667+00:00

    @Alena Stanchyts Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    .

    Plan 1:

    Could you please open the Azure portal and navigate to your Azure AI Language resource and open the language studio and check if that works?

    User's image

    User's image

    Plan 2:

    Please confirm if you have either Owner or Contributor access on the resource.
    Also ensure that you have Cognitive Services Language Owner RBAC roles on your resource. More info here.

    .

    Plan 3:

    Navigate to the Language studio Select the settings icon and select the right resource.

    User's image

    Then navigate to the Custom text classification:

    User's image

    .

    Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.

    1 person found this answer helpful.