Unable to access AzureOpenAI

Kannanc 0 Reputation points
2024-12-24T13:03:23.9066667+00:00

I have a AzureOpenAI Chat playground setup with a deployment of gpt-4o model. I am trying to access it to integrate with our application, but unable to access it. I have a Cognitive Services OpenAI contributor role assigned for OpenAI Service access, and contributor role to the resource group. But I am receiving the following error while attempt to access:

openai.AuthenticationError: Error code: 401 - {'error': {'code': 'PermissionDenied', 'message': 'Principal does not have access to API/Operation.'}}

What might be wrong?

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,453 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,003 questions
{count} votes

Your answer

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