401 error while trying to access Azure OpenAI service

Rudraksh Arora 0 Reputation points
2024-06-21T07:45:16.11+00:00

I deployed a gpt-4o model in East US location. I am trying to access the service using Azure OpenAI playground chat interface. I am receiving 401 error. API authentication key being used in the playground is correct. How to resolve this issue? How much time does it take for an approved account to activate for accessing Open AI services?

Screenshot 2024-06-20 204943

Screenshot 2024-06-20 205011

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,659 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. VasaviLankipalle-MSFT 15,956 Reputation points
    2024-06-21T21:48:28.15+00:00

    Hello @Rudraksh Arora , Thanks for using Microsoft Q&A Platform.

    Try to check if you have provided the correct API key and endpoint. Also make sure you have added all the necessary permissions and roles to the OpenAI resource like Cognitive Services OpenAI User, Cognitive Services OpenAI Contributor, Cognitive Services Contributor.

    Here is the documentation related to RBAC: https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/role-based-access-control

    I hope this helps.

    Regards,

    Vasavi

    0 comments No comments