add your data azure ai studio playground with error Failed to ensure chunk container

Gio 20 Reputation points
2023-07-21T11:04:34.52+00:00

I am using the playground and would like to test it with my data.

Choosing "Upload files" and then selecting the blob storage and the cognitive search resource. the process is failing with this error:
We couldn't connect your data
Failed to ensure chunk container: This request is not authorized to perform this operation. RequestId:309d1b99-501e-006b-2cc0-bb4f6b000000 Time:2023-07-21T10:48:41.1526944Z ErrorCode:AuthorizationFailure Content:

I've added firewall rules in the blob network settings:
User's image

What am I missing?

Thanks!

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
{count} votes

Answer accepted by question author
  1. VenkateshDodda-MSFT 25,241 Reputation points Microsoft Employee Moderator
    2023-07-24T05:32:49.4066667+00:00

    @Gio Thanks for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.

    Based on the shared storage requested ID, we have looked at the backend logs and we see that upload of blob to cognitive search got failed with error IpAuthorizationFailure .

    If Azure Storage is behind a firewall and in the same region as Azure Cognitive Search, you won't be able to create an inbound rule that admits requests from your search service.

    The solution for this scenario is for search to connect as a trusted service refer to this documentation on how to create an trusted service with cognitive search to create an index.

    Feel free to reach back to me if you have any further questions on this.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 36,006 Reputation points Moderator
    2023-07-24T05:25:35.72+00:00

    Gio greetings & Welcome to Microsoft Q&A forum!

    Failed to ensure chunk container: This request is not authorized to perform this operation.

    I understand that you are getting an error while you are uploading files to Blob container. Are you following any documentation for the steps?

    Usually this error occurs when you don't have required permission on the Blob Storage account which you are trying to access.

    Ensure you have the Storage Blob Data Contributor role enabled.

    Also, To add a new data source to your Azure OpenAI resource, you need the following Azure RBAC roles.User's image

    I suggest you, check if you have enabled these roles or not.

    Goto Azure Portal -> Storage Account -> Access Control (IAM) -> Check my Access

    User's image

    If you don't have the role, you can add using Add role assignment tab.

    User's image

    Once enabled, you will be able to add/upload data.

    Also, For Azure OpenAI to access your storage account, you will need to turn on Cross-origin resource sharing (CORS). If CORS isn't already turned on for the Azure Blob storage resource, select Turn on CORS.

    I've added firewall rules in the blob network settings:

    Note that, Azure OpenAI on your data does not currently support private endpoints.

    For more details, see Azure OpenAI on your data and Chat with Azure OpenAI models using your own data if you haven't checked earlier.

    Hope this helps.

    Do let me know if you need any further help in this regard.

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further queries do let us know.


Your answer

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