Failed to retrieve information about the selected search resource. Please try again later or choose a different resource.

Anonymous
2023-08-02T14:28:15.2566667+00:00

I am trying the Chat Playground in AI studio, and I'm trying to add my own data. However, when I select the Azure Cognitive Search resource, it is giving me the following error (screenshot)- Failed to retrieve information about the selected search resource. Please try again later or choose a different resource.

Then I went over to cognitive search service for which I've a basic plan. When I try to view or create an index, it shows the following error:

Error message:The client XXX with object id XXX does not have authorization to perform action 'Microsoft.Search/searchServices/listAdminKeys/action' over scope '/subscriptions/XXX/resourceGroups/XXX/providers/Microsoft.Search/searchServices/XXX' or the scope is invalid. If access was recently granted, please refresh your credentials.

I'm guessing the issue is I've no access to the service, am I right? According to my admin, I should have contributor access. Is there a way to verify that? Else, how can I fix the issue?

User's image

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.
1,351 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,092 questions
0 comments No comments
{count} votes

Accepted answer
  1. brtrach-MSFT 17,741 Reputation points Microsoft Employee Moderator
    2023-08-02T22:23:01.4933333+00:00

    @Anonymous It seems like the error message is related to the permissions of the Azure AD application or service principal that you are using to access the Azure Cognitive Search resource.

    To verify if you have the required permissions, you can follow these steps:

    1. Go to the Azure portal and navigate to the Azure Cognitive Search resource that you are trying to access.
    2. Click on the "Access control (IAM)" tab in the left-hand menu.
    3. Check if your Azure AD application or service principal is listed under the "Role assignments" tab. If it is not listed, you will need to add it as a Contributor or Owner to the resource.
    4. If your Azure AD application or service principal is listed, click on it to view the assigned role. Make sure that it has the "Contributor" or "Owner" role assigned to it.

    If you are still having issues after verifying the permissions, you can try refreshing your credentials by signing out and signing back into the Azure portal. If the issue persists, you can try regenerating the admin keys for the Azure Cognitive Search resource and updating the connection string in your application.

    Also, as mentioned in your previous post, it's not enough to have contributor access:https://learn.microsoft.com/en-us/answers/questions/1339517/ai-studio-showing-no-deployment-found-and-no-acces


0 additional answers

Sort by: Most helpful

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.