Azure AI Search Service Endpoint Access Issue

satish 5 Reputation points
2024-10-10T10:11:14.25+00:00

I have an Azure AI Search Service created in Subscription2, it has private endpoint(Vnet2-Subnet2) and dns entry added for this private endpoint ip in private dns zone. From this private dns zone, virtual network link added to VNet1 in Subscription1.

In Subscription1, there is a VM in VNet1-Subnet1 which has python application running to connect to Azure AI Search Service using API Key.

Along with the private dns zone- virtual network private link, NSG group rules are added at the subnet(subnet2) level for accepting the inbound connections, vnet peering is setup between vnet1 <=> vnet2 along with the routing rules.

dns resolution and connectivity has been established with the above setup, even though i'm calling- azure ai search service endpoint with api key, it is returning error message "Failed to get Azure RBAC authorization decision. Please wait and retry your request later.".

To fix this I tried following, but it still resulted the same error:

  1. recycled the keys.
  2. Tried with "API Access control" option setting to "API keys" alone & also "Both" option including "Role-based access control" along with "API keys" option
  3. I tried adding the managed identity to VM and providing contributor access for this identity on azure ai search service.

curl -k -X POST "https://.privatelink.search.windows.net/indexes/products?api-version=2020-06-30" -H "Content-Type: application/json" -H "api-key: " -d @index.json

Warning: Couldn't read data from file "index.json", this makes an empty POST. {"error":{"code":"","message":"Failed to get Azure RBAC authorization decision. Please wait and retry your request later."}}

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,339 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2024-10-17T11:38:33.4+00:00
    0 comments No comments

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.