Unable to connect to my cosmos mongo db from Azure web app after enabling pvt endpoints and vnet integration
DangShubhamADVDAADASSPLTTE1DT7-7504
0
Reputation points
I have a web app (linux) where i push my docker image via container registry which connects to the cosmos mongo database.
It works fine when eveyrthing is via public network.
When i enable private endpoints and vnet integration , my app works fine but it fails to communicate to the database.
From the same vnet, if i do nslookup from a VM to db it works indicating no issues with private endpoints
My error is:-
pymongo.errors.ServerSelectionTimeoutError:xxx.mongocluster.cosmos.azure.com:27017: [Errno -3] Temporary failure in name resolution (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms), Timeout: 30s, Topology Description: