Does outbound IP of APIM premium tier is same as the Virtual IP address ?

$@chin 200 Reputation points
2024-11-06T15:57:12.23+00:00

Hi,

APIM is configured with an external VNet with no NAT gateway or Azure firewall configured.

Scenario 1: Looking for clear information on whether the Virtual IP address of the APIM Premium tier will act as the outbound IP. Specifically, will all traffic from APIM to external services use the same IP as the VIP or will it have a different IP?

Scenario 2: If the backend of APIM is an Azure Function or Web App, and traffic flows from APIM to external services through those apps, will the outbound IP be the APIM VIP or the outbound IP of the Web App or Function App?

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

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 29,276 Reputation points
    2024-11-06T17:01:46.0033333+00:00

    @$@chin Thanks for reaching out.

    For Scenario 1, If the APIM instance is in an external VNet and the backend (external service) is public, then the outbound IP address for traffic from APIM to the backend will be the public IP address (VIP) of the APIM instance.

    When API Management is deployed in an external virtual network and API Management connects to private (intranet-facing) backends, internal IP addresses (dynamic IP, or DIP addresses) from the subnet are used for the runtime API traffic. When a request is sent from API Management to a private backend, a private IP address will be visible as the origin of the request. So, if you have any firewall you would need to whitelist the entire subnet range.

    For Scenario 2, if the backend of APIM is an Azure Function or Web App, and traffic flows from APIM to external services through those apps, then the outbound IP address will be the public IP address of the Azure Function or Web App. The APIM VIP is not used for outgoing traffic, and the outbound IP address will be determined by the backend service that is handling the traffic.

    please refer: https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-ip-addresses#ip-addresses-for-outbound-traffic

    do let me know incase of further queries, I would be happy to assist you.


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.