Hello,
I have Virtual machine created in azure, I am trying to access azure open ai and azure search service from virtual machine but it is giving below error Exception Error code: 400 - {'error': {'requestid': '9ad0e3db-ef59-4ffc-9237-fd5970e39c74', '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.
I have whitelisted Azure VM public IP in open ai and search service networking, but when I am making it public accessible, it is working (I can access both services from VM)
Can anyone help me here?
###################### 2nd issue:
I have tried securing both the services using private endpoints, but still I am getting the above search service error. I have tried to ping private endpoints from Azure VM, and it is resolving the private endpoint IP address.
To again confirm, I created a simple Python script to call the open AI service using the key and endpoint, and I was able to get the response from the VM, but the issue seems to be in the search service.
Am I missing any part while creating a private endpoint for the search service? (I have selected resource as searchservice while creating private endpoint for search service.)