How to diagnose network issues with Azure webapp (linux-container)

John K 6 Reputation points
2020-12-08T13:01:11.047+00:00

I have two webapps in the same data center in Azure. Both are .NET core apps running in docker containers. Both use the same MongoDB cluster hosted in the same data center (managed by MongoDB Atlas):

46197-apps.png

Starting yesterday, webapp2 can no longer connect to the mongo cluster.

In order to rule out any firewall issues, I've temporarily allowed incoming network traffic to the "prod" cluster from any IP address, but the issue persists.

What I've been able to establish is that:

  • webapp2 cannot connect to the "prod" cluster, even when I try with the exact same connection string as webapp1 uses.
  • webapp2 can connect to the "test" cluster without a problem.

Since the Kudu Debug Console just hangs when I run ping and tcpping, I'm pretty much left without any tools to further diagnose the issue.

Does anyone have any tips on what else I might try?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,782 questions
{count} votes

1 answer

Sort by: Most helpful
  1. John K 6 Reputation points
    2020-12-09T13:19:09.293+00:00

    Not only are the IP addresses whitelisted, I've even allowed network traffic from ALL ip addresses, like I wrote.

    I might mention that everything magically started working again an hour ago. No code change, and Atlas says they didn't change anything on their end. Really scary!

    Are you aware of any intermittent network issues in the west-europe datacenter during the last two days?

    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.