Hi Sourav
[Answer Part I]
If we have a close look at this error message you shared, there are 4 things to check.
Invalid AzureCognitiveSearch configuration detected: Call to get Azure Search index failed.
1- Check if you are using the correct Azure Search endpoint and index name.
2- If you are using key based authentication, check if the admin key is correct.
3- If you are using access token authentication or managed identity of Azure OpenAI,
3a- check if the Azure Search has enabled RBAC based authentication and
3b- if the user identity or Azure OpenAI managed identity has required role assignments to access Azure Search resource [https://aka.ms/aoaioydauthentication].
4- If the Azure Search resource has no public network access, make sure enable trusted service of Azure Search.
Probably 1 is correct as you mentioned the public access worked.
Guess you are using managed identity? if public access worked, the RABC should work.
Wonder if the allow trusted service
is turned on in AI Search?
[Answer Part 2]
for the private endpoint bit, the tricky part is that your App Service
must need to resolve the AI search endpoint as a private ip address via private dns zone as described in the private endpoint article.
To test it out, try to do a nslook in the kudo console of your app service, the lookup should return similar resolve as below. If so, the traffic from the App service
will go via private ip (i.e. does not go out to public internet) and be trusted by AI Search. If not, your App service
would still get a public ip for ai search and thus still going out to public internet (will be blocked by AI search). There are a few steps required to allow your app service
utilize private dns zone
privatelink.search.windows.net
Server: UnKnown
Address: 168.63.129.16
Non-authoritative answer:
Name: [search service name].privatelink.search.windows.net
Address: 10.0.0.5
Aliases: [search service name].search.windows.net