Establishing a private and secure connection between Azure Synapse and MongoDB Atlas is feasible using Azure Private Link and MongoDB Atlas Private Endpoints. Below is the recommended approach:> Yes, it is possible to establish a private and secure connection between Azure Synapse and MongoDB Atlas using Azure Private Link and MongoDB Atlas Private Endpoints. This ensures that data remains within a secure network without exposure to the public internet.
Step-by-Step Process to Set Up the Private Connection
Step 1: Enable Private Endpoint in MongoDB Atlas
- Log in to MongoDB Atlas.
- Go to Network Access → Private Endpoint → Click Add Private Endpoint.
- Select Azure as the cloud provider and specify the Azure region where your Synapse workspace is deployed.
- Note the Private Endpoint Connection details, as you will use them in Azure.
Step 2: Set Up Azure Private Link
- In the Azure Portal, go to Private Link Center → Private Endpoints.
- Click Create Private Endpoint and enter the following details:
- Resource Type: Select MongoDB Atlas Private Endpoint.
- Target Subnet: Choose a subnet within your Azure Virtual Network (VNet).
- DNS Integration: Ensure that private DNS resolution is enabled for proper name resolution.
- Once created, approve the private endpoint in MongoDB Atlas.
Step 3: Configure Azure Synapse to Use the Private Endpoint
- In Azure Synapse, ensure the workspace has a Managed VNet (if applicable).
- In Synapse Firewall Rules, allow connections from the private endpoint’s VNet/Subnet.
- In Synapse Data Flow or Spark Pool, configure the MongoDB Connector URI using the private endpoint hostname.
- Test the connection using MongoDB Compass or Azure Synapse Notebooks.
Network Topology & Best Practices
- Use Private DNS Zones to ensure proper name resolution for the private connection.
- Restrict Public Access to MongoDB Atlas once private connectivity is established.
- Enable Network Security Groups (NSGs) to allow only required traffic between Azure Synapse and MongoDB Atlas.
- Use Role-Based Access Control (RBAC) in Synapse and MongoDB Atlas to limit access.
Further guidance please refer the below articles:
- Configure Azure Private Link for MongoDB Atlas
- Azure Private Link Overview
- Azure Synapse Analytics managed private endpoints
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.