Issue with Azure OpenAI "Use Your Own Data" Feature - Stuck at Data Connection

Meaun, Alexandr 5 Reputation points
2024-08-19T15:17:46.7733333+00:00

Hi everyone,

I'm encountering an issue with the "Use Your Own Data" feature in Azure OpenAI, specifically at the data connection stage in the Azure AI Studio. Here’s a detailed breakdown of what I've done so far:

 

Resources Created:

  1. Azure AI Search: I set up an Azure AI Search resource, created indexes corresponding to the columns in my data, and added a data source (Azure Blob Storage) and indexer to pull data from the blob storage into the AI search index.
  2. Azure OpenAI Service: This resource was configured and connected to Azure AI Search. I enabled the system-assigned managed identity to allow role-based access control (RBAC) across resources.
  3. Azure Blob Storage: I created a storage account to store my data files, which are in CSV format. I also enabled managed identity for this resource to facilitate role assignments.

Role Assignments:

  • I assigned the following roles to the respective resources:
    • Azure AI Search: Assigned "Search Index Data Reader" and "Search Service Contributor" roles to the Azure OpenAI resource.
      • Azure OpenAI: Assigned "Cognitive Services OpenAI Contributor" to Azure AI Search, and "Storage Blob Data Contributor" to Azure Blob Storage.
        • Azure Blob Storage: Assigned "Storage Blob Data Reader" to Azure AI Search.

Where I’m Stuck:

  • When I try to connect the data in the "Use Your Own Data" feature in Azure OpenAI Studio, I get stuck at the "Data Connection" step. Specifically, I’m unable to validate the connection between Azure OpenAI, Azure AI Search, and Azure Blob Storage. The error I receive is related to the authentication type (either System-assigned Managed Identity or API key), and it fails to validate, even though I’ve followed the recommended steps for role assignments and resource configurations.
  • I've tried both the system-assigned managed identity and API key methods, but neither seems to resolve the issue and I can't move passed this step.

I've attached a screenshot of the error I’m encountering at the data connection step.

Thanks in advance for any guidance or suggestions!Screenshot 2024-08-19 162744

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

1 answer

Sort by: Most helpful
  1. navba-MSFT 24,890 Reputation points Microsoft Employee
    2024-08-21T05:50:27.0733333+00:00

    @Meaun, Alexandr @Hendrik Carius Please ensure that you have followed the below:

    .

    .

    • The Azure AI Search resource has enabled both RBAC and API Keys authentication.

    User's image

    • The Azure OpenAI resource has enabled system assigned managed identity.
    • The Azure AI Search resource has enabled system assigned managed identity.
    • If you don't want to use API Keys, Assign yourself either the Cognitive Services OpenAI User or Cognitive Services OpenAI Contributor role to allow you to use your account to make Azure OpenAI inference API calls rather than having to use key-based auth.
    • Ensure that you have granted the below permissions:

    User's image

    In the above table, the Assignee means the system assigned managed identity of that resource.

    The admin needs to have the Owner role on these resources to add role assignments.

    More info here.

    After granting the above permissions wait for atleast 15 minutes for the RBAC changes to reflect and then test it.


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.