Search code examples
azureazure-web-app-servicevnet

Is it possible to effectively assign a static IP address to an Azure Web App using NAT?


My application is making HTTP requests to a 3rd party API which has an IP whitelist. Of course, I could add the IP addresses assigned when the Web App is created but test environments are created and destroyed on demand, meaning we need to request an update the whitelist.

My thoughts are to attached the Web App to an existing VNet and assign a NAT to specify the outbound IP. Will that work?


Solution

  • According to the official document, the example operation can be completed, WEBSITE_VNET_ROUTE_ALL needs to be configured, and you need to pay attention to WEBSITE_VNET_ROUTE_ALL is currently not supported in Windows containers.