Skip to content

403 Forbidden when ai search and azure openai public networking is disabled #1886

@GijsVoogd

Description

@GijsVoogd

Question regarding Azure OpenAI using RAG on our own data via AI Search.

Our setup is as follows:

AI Search:

  • private network disabled
  • private endpoint for inbound traffic
  • shared private link for openai (type account), and blob storage (type blob and dfs)
  • allow Azure services on the trusted services list to access this cognitive services account

Azure OpenAI:

  • private network disabled
  • private endpoint for inbound traffic (the openai account and search shared private link)
  • allow Azure services on the trusted services list to access this cognitive services account

The issue we’re facing is that it is calling Azure OpenAI and from Azure OpenAI, AI Search is called. This gives a 403 which seems to make sense since AI Search public network is disabled and we cannot integrate Azure OpenAI in the VNET. Shared private access is not an option on Azure OpenAI.

It works when we enable public access on AI Search but we have a requirement for private access only. Is there a way to make this work without enabling public access?

{

"error": {

"requestid": "xxx",

"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\u003d\u0027Server responded with status 403.

Metadata

Metadata

Assignees

No one assigned

    Labels

    vnetRelated to the optional support for private endpoint and Virtual Network deployment

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions