Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you would like to peer an Azure VNET to a MongoDB Atlas VPC. Let me know if this is incorrect.
I believe you are following this docs : https://www.mongodb.com/docs/atlas/security-vpc-peering/?msockid=2b90294442396fbb0ce73c5143ce6e35
- However, I could not find any Azure docs explaining this
- Is there any Azure document you followed to achieve this?
Are you sure this is a network issue and not a configuration issue (wrt Atlas or connection string)?
- Can you tell me how exactly are you validating the connection is not working?
- Did you try to do a Telnet or TCPPing to the MongoDB Ports?
- Instead of trying to make the application work,
- Please deploy a dummy VM in the VNET
- And try to access the MongoDb (port)
- You can also use the Kudu console from the VNET Integrated Webapp
Cheers,
Kapil