Using Azure Functions with Azure Virtual Network NAT to Avoid SNAT Port Exhaustion

less than 1 minute read • By Jeff Martinez • March 2, 2021

Source Network Address Translation (SNAT) ports are used by App Service to translate outbound connections to public IP addresses. However, there are limitations to the number of SNAT port connections you can use at once and if your application runs out of SNAT ports it will cause intermittent connectivity issues. To avoid SNAT port exhaustion issues you will need to make sure that no new connections are created repetitively on the same host and port. Follow this sample for further detail on how this can be accomplished using Azure Functions, Regional VNET Integration, Private Endpoints and NAT Gateway.

To learn more about Troubleshooting outbound connection errors, see the documentation.