We couldn't connect your data Principal does not have access to API/Operation.

Sylvester Yemi David 0 Reputation points
2024-09-11T15:48:39.82+00:00

I am getting the error: 'We couldn't connect your data Principal does not have access to API/Operation.' After deploying chatbot using Azure OpenAI

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

2 answers

Sort by: Most helpful
  1. YutongTie-MSFT 52,866 Reputation points
    2024-09-11T22:45:39.23+00:00

    Hello Sylvester,

    Thanks for reaching out to us, could you please check if you have already applied the right roles to both your Azure OpenAI Service and your Data Storage Service as this document, especially the Storage Blob Data Contributor role- https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/use-your-data-securely#role-assignments

    Also did you set your storage account to access to public?

    Please let us know how it works.

    Regards,

    Yutong

    -Please kindly accept the answer if you feel helpful to support the community, thanks a lot.

    0 comments No comments

  2. Daniel FANG 720 Reputation points
    2024-09-17T08:04:29.4666667+00:00

    HI Sylvester

    I had same issue. the key is to check the app settings (AZURE_OPENAI_ENDPOINT) in your deployed app to find out which Azure OpenAI service is the app actually calling. In my case, the AZURE_OPENAI_ENDPOINT actually points to an auto generated openai service by AI Studio rather than the one i created manually (i.e. https://xxxx-m14sdgi2-australiaeast.openai.azure.com/)

    Once located the actual service, you can go to the RBAC tab of the service and give the web app's managed identity these roles: Cognitive Services OpenAI User role. (might also need Cognitive Services OpenAI Contributor)

    more details of configuration can be find in the github repo, look for [Using Microsoft Entra ID].
    https://github.com/microsoft/sample-app-aoai-chatGPT

    0 comments No comments

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.