Our application is hosted on Azure app service (say Server A).
I see 7 Outbound IP Addresses
. And there are 30 Additional Outbound IP Addresses
.
There is no App Gateway or API Gateway configured.
This application needs to communicate with an external server who wants to whitelist one IP of Server A.
So, is it possible to have a single public IP for server A without subscribing to any additional services.
2
Answers
Please note that outbound IPs might change.
Also:
Considering the above, I think your best option is to get a static outbound IP:
See also Azure NAT Gateway integration.
The best solution is to use a NAT gateway. NAT works as a single point for all your outbound (internet) connectivity within a virtual network. Also, NAT protects you from the Port Exhaustion issue, which could be the case when you rely on an embedded App Service outbound setup.
Below is the bicep script to set up NAT + Public IP Address.
And then, you link the NAT with a VNet resource.
You don’t need AppGateway/Frontdoor solutions for your task, as their target are inbound requests.