We are getting "Error 400 Bad Request" when connecting Azure Open AI using an Azure AI Index as the data source

Santini, Robert 0 Reputation points
2025-04-16T12:39:01.45+00:00

We are trying to connect a web form chat box application we are creating to our existing open ai service and search service that we have set up. When we try to connect to the open ai service or search service individually from the application using api-keys to authenticate we do not have an issue. However, we want to connect to the open ai service and use the data source that we have set up in our AI Search Service and then send that information along with the system and user prompt to retrieve a response back from the open ai service. When we do this, it will generate an error "Error 400 Bad request". If we change are Firewall settings to allow All networks the application works fine. So, the issue is that we need the open ai service to have permission to connect to the search service when we have Selected IP addresses selected and not All networks under the Networking. Below is how we have the Network settings for the search service

SearchServiceNetworking

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,287 questions
{count} votes

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.