Tobias Haimerl, Apologies for the delayed response here.
I see that you have tried multiple steps to isolate the issue.
Just to highlight, SNAT port exhaustion can occur when there are too many outbound connections from your App Service, which can cause delays in establishing new connections. This can result in slow preflight requests.
Each instance on Azure App service is initially given a preallocated number of 128 SNAT ports. The SNAT port limit affects opening connections to the same address and port combination
If you haven't done this already, to further isolate the issue:
- You may leverage Azure Monitor to monitor the number of outbound connections and identify any spikes or unusual patterns. If you see a high number of outbound connections, you may need to optimize your application to reduce the number of connections.
- By default, each instance of an App Service has 128 SNAT ports. I understand you have scale-out/you may consider to test by scaling up your App Service plan (ASP).
- Depending on your setup/requirement, you may consider to use Azure CDN which can help reduce the number of outbound connections from your App Service by caching static content and serving it from a nearby edge location.
Further, refer the doc steps outlined to avoid the SNAT port exhaustion problem.
To fetch more details about the logs : Enable and review logs to fetch more details about the error
Kindly let us know, I'll follow-up with you further.
If the answer helped (pointed, you in the right direction) > please click Accept Answer to benefit the community find answers quickly to similar question.