@Raja Usman Abdullah Thanks for reaching here!
If I have understood right you are facing below error when trying the Chat Playground in AI studio, and trying to add your own data.
Failed to retrieve information about the selected search resource. Please try again later or choose a different resource.
Could you please go to cognitive search service and when trying create an index, If 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.
If so, this could be due to permissions issue of the Azure AD application or service principal that you are using to access the Azure Cognitive Search resource.
You can follow these steps to verify if you have the required permissions:
- Go to the Azure portal and navigate to the Azure Cognitive Search resource that you are trying to access.
- Click on the "Access control (IAM)" tab in the left-hand menu.
- Check if your Azure AD application or service principal is listed under the "Role assignments" tab. If not, you will need to add it as a Contributor or Owner to the resource.
- 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. You can also try regenerating the admin keys for the Azure Cognitive Search resource and updating the connection string in your application.
Please let us know if issue remains.