Vnet Integration stuck

Handian Sudianto 6,096 Reputation points
2023-09-06T01:18:13.8933333+00:00

Hello,

today one of our app having error and when i check connectivity from the app to the database server i got 'connection attempt failed' like below picture.User's image

Then i disconnect the vnet integration and recreate and the app can successfull connect to the database server. Sometimes i always facing this issue, the vnet should be recreated and the app working normally. Anyone know why this happened?

User's image

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,762 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,935 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 28,036 Reputation points Microsoft Employee Moderator
    2023-09-06T11:07:55.6933333+00:00

    @Handian Sudianto ,

    Adding to Lex Li's suggestions, based on my understanding of your scenario, after VNET disconnect/reconnect the app connects to the database server successful.

    To isolate the issue, why you might be experiencing intermittent connection errors between your Azure app service and the database server.

    --One of the reasons could be that you are hitting a limit while making new outbound connections. The limits you can hit include : TCP connections and SNAT ports.

    TCP connections: There's a limit on the number of outbound connections that can be made.

    SNAT ports are used to communicate with public IP addresses. Each instance on Azure App service is initially given a pre-allocated number of 128 SNAT ports. When app rapidly open a new connection, they can quickly exhaust their pre-allocated quota of the 128 ports. They are then blocked until a new SNAT port becomes available, either through dynamically allocating additional SNAT ports, or through reuse of a reclaimed SNAT port. If your app runs out of SNAT ports, it will have intermittent outbound connectivity issues.

    --You may always leverage App Service diagnostics from Azure Portal> Navigate to your App Service app in the Azure Portal.

     In the left navigation, click on Diagnose and solve problems - Review and run – Network troubleshooter and ““Configuration and Management”  (IP address configuration)

    --Service Health keeps you informed about the health of your environment. Kindly review Service Health check alerts.

    Ref: Please take a look at the doc to troubleshoot intermittent outbound connection errors in Azure App Service.

    Kindly let us know, I'll follow-up with you further.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.