How to fix Azure AI Deployment Error code: 400 'Invalid AzureCognitiveSearch configuration detected: Call to get Azure Search index failed.
Hi,
I followed the tutorial https://learn.microsoft.com/en-us/azure/ai-foundry/tutorials/deploy-chat-web-app from start to finish verbatim. I am able to interface with my chat app in Azure AI Foundry Playground, when deploying as a web app however no matter what pricing plan I choose I receive this error when I enter text:
Error code: 400 - {'error': {'requestid': 'xxx-xxx-xxx-xxx-xx'', 'code': 400, 'message': 'Invalid AzureCognitiveSearch configuration detected: Call to get Azure Search index failed. Check if you are using the correct Azure Search endpoint and index name. If you are using key based authentication, check if the admin key is correct. If you are using access token authentication or managed identity of Azure OpenAI, check if the Azure Search has enabled RBAC based authentication and if the user identity or Azure OpenAI managed identity has required role assignments to access Azure Search resource [https://aka.ms/aoaioydauthentication]. If the Azure Search resource has no public network access, make sure enable trusted service of Azure Search.\nAzure Search Error: 403, message='Server responded with status 403. Error message: {"error":{"code":"","message":"The given API key doesn't match service's internal, primary or secondary keys."}}', url='https://xxx.net/indexes/xxx?api-version=2024-03-01-preview'\nServer responded with status 403. Error message: {"error":{"code":"","message":"The given API key doesn't match service's internal, primary or secondary keys."}}'}}
I have tried everything from rebuilding from scratch and deleting all resources multiple times and I am able to interact perfectly fine in the Azure AI Playground. I resolved the Manage Identity error by popularing AZURE_SEARCH_KEY for the web app. Could someone please tell me how to resolve this error?
Thanks