@Anuar el Bakkali - Welcome to Microsoft Q&A and thanks for reaching out to us.
It's possible that the Diagnose and Solve Problems tool is not showing any results because the SNAT port exhaustion issue you are experiencing is intermittent or has not yet reached a critical level.
To mitigate SNAT port exhaustion, you can try the following:
Use connection pooling: By pooling your connections, you avoid opening new network connections for calls to the same address and port. This can help reduce the number of outbound connections from your Azure Function.
Use service endpoints/private endpoints: If your destination is an Azure service that supports service endpoints, you can avoid SNAT port exhaustion issues by using regional VNet Integration and service endpoints/private endpoints, respectively. When you use regional VNet Integration and place service endpoints on the integration subnet, your app outbound traffic to those services will not have outbound SNAT port restrictions.
Use a NAT gateway: With a NAT gateway, you have 64k outbound SNAT ports that are usable by the resources sending traffic through it. This can help increase the number of outbound connections from your Azure Function.
Hope this helps. and please feel free to reach out if you have any further questions.
If the above response was helpful, please feel free to "Accept as Answer" and click "Yes" so it can be beneficial to the community.