peering between Azure VNet and mongoDB

Kay Park 0 Reputation points
2024-11-18T03:00:38.66+00:00

I am trying to establish peering between my cluster and Azure web app. Hence, I created a peering connection between Azure Vnet and mongodb network access, and added Azure Vnet's CIDR to IP Access List of Network Access, but my web app still cannot connect to my cluster with the private connection string that mongodb cluster provides. How can I resolve this issue?

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
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. KapilAnanth-MSFT 49,536 Reputation points Microsoft Employee Moderator
    2024-11-18T04:09:46.4233333+00:00

    @Kay Park ,

    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

    1 person found this answer helpful.

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.