APIM configured in External VNet - connection request times out to open.azure.com

Sravya 0 Reputation points
2024-07-08T20:34:40.0133333+00:00

We have an APIM set up in an External VNET with the backend web service url (openai.azure.com) configured along with the hostname. We are using OpenAPI spec to test out the endpoints of the backend, but it always ends in a time out error. The backend service has the APIM subnet in the allowed list.
We have the NSG rules for the APIM VNet set from the recommended list:
https://learn.microsoft.com/en-us/azure/api-management/api-management-using-with-vnet?tabs=stv2

Inbound on 443 from the internet was blocked, but the connection should have worked via the VPN which is allowed, but that fails too.

Unsure what else is missing from a networking perspective. Any advice is appreciated!

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,177 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. hossein jalilian 8,150 Reputation points
    2024-07-08T23:53:25.54+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    Ensure that the APIM subnet is correctly configured in the External VNET mode. This mode allows APIM to access the internet directly for backend connectivity. if you have any UDRs applied to the APIM subnet, make sure they're not interfering with the traffic to openai.azure.com.

    Verify that APIM can resolve the openai.azure.com hostname. You might need to configure custom DNS servers if you're using Azure Private DNS zones.

    Double-check that the Azure OpenAI service is correctly configured to allow access from the APIM subnet IP range.

    Ensure that the Azure OpenAI service is operational and not experiencing any outages.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful

    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.