An Azure NoSQL database service for app development.
Mongodb connection timeout issues
Hi,
I am experiencing connectivity issues between an Azure App Service and Azure Cosmos DB for MongoDB after making infrastructure and application updates.
Environment:
- Azure App Service (Linux container)
Azure Cosmos DB for MongoDB vCore
Private Endpoint enabled
App Service integrated with VNet
Private DNS zones configured
Issue: The application previously worked correctly. After recent updates and networking changes, the application can no longer connect to Cosmos DB over the private endpoint.
Current behavior:
DNS resolution works correctly from the App Service Kudu console.
The MongoDB hostname resolves to the private IP successfully.
However, TCP connectivity to port 10260 times out.
Kudu test results:
nslookup fc-ce88da977caf-000.global.mongocluster.cosmos.azure.com
Result: fc-ce88da977caf-000.global.mongocluster.cosmos.azure.com -> fc-ce88da977caf-000.global.privatelink.mongocluster.cosmos.azure.com -> 10.0.4.4
However:
tcpping fc-ce88da977caf-000.global.mongocluster.cosmos.azure.com 10260
Results in: seq 0: no response (timeout)
What has already been verified:
Private Endpoint status = Approved
Private DNS zones linked to VNet
DNS records exist and resolve correctly
App Service VNet integration configured
Dedicated subnet created for private endpoints
Firewall rules and App Service outbound IPs added
Public access temporarily enabled for testing
App Service restarted multiple times
New private endpoint created and attached to a dedicated subnet
Additional observations:
One older private endpoint DNS configuration previously showed “Connection disconnected”.
New private endpoint now resolves correctly to 10.0.4.4.
DNS appears healthy, but network connectivity to port 10260 still fails.
Question: Could this indicate a backend issue with the private endpoint, routing propagation, or Cosmos DB networking? Are there additional diagnostics recommended for validating private endpoint connectivity specifically for Cosmos DB MongoDB vCore?
Any help would be appreciated.