Forum Discussion
Mrmgraham
Jun 10, 2021Copper Contributor
SNAT Port Exhaustion
We have an app service making calls to other azure services and app services. We occasionally see this exception, what can be done to help? We are investigating our code and trying to improve by reus...
Stefan_Schackow
Microsoft
Jun 10, 2021Best guidance is here: https://docs.microsoft.com/en-us/azure/app-service/troubleshoot-intermittent-outbound-connection-errors . Beyond that, a somewhat more involved approach would be to switch the back-end connection to go over a vnet connection to the downstream endpoint. https://azure.github.io/AppService/2021/04/22/Site-with-secure-backend-communication.html shows one general approach, and the idea would be to have downstream app services setup with private endpoints so the app service to app service communication goes over a vnet. Another somewhat less invasive approach would be to instead use Azure's NAT Gateway and route all outbound traffic from an app through a vnet and through the NAT gateway. That will get you a dedicated outbound IP address and a dedicated IP port space for outbound calls.
- MrmgrahamJun 10, 2021Copper ContributorThank you for your response. We will investigate