Azure AI Studio - Connecting Azure AI Search index in the Playground

Karol Jedruszek 5 Reputation points
2024-03-29T16:20:01.02+00:00

Hello,

I'm working with Azure AI Studio to create a Chat application. I want to connect it to Sharepoint data and followed appropriate tutorials in Azure documentation. I've created an Azure AI Search indexer which indexes my Sharepoint data successfully.

The problem I'm encountering is when I'm trying to connect the index in the Playground of my chat service, via the "Add your data" option. Error in the Azure AI Studio only shows:

User's image

When going into the network tab, I can see that request to create the index has failed with message:

{ "statusCode": 401, "message": "Unauthorized. Access token is missing, invalid, audience is incorrect (https://cognitiveservices.azure.com), or have expired." }

I have a Contributor access to all resources in my Azure tenant (inherited from Subscription). I've even explicitly added myself as a Contributor to all related services and still encounter this error.

We've already did this process for another index in the same Azure AI Search service and did not encounter this error. Any reason why this might be happening now?

Thanks!

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
700 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,363 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 15,056 Reputation points
    2024-03-29T17:58:14.0466667+00:00

    Tokens can expire or become invalid for various reasons. Try refreshing or regenerating the access token used for authentication. Verify that the application has the correct scopes or permissions set when requesting a new token.

    The error message mentions an incorrect audience URL. Double-check the endpoint URL you're using to make sure it matches the expected audience URL.

    If it is not working, you may need to upscale it to the support team.