Connect to MongoDB® using Azure Private Link
On this page
SingleStore supports connecting to a MongoDB® instance via Azure Private Link.
Prerequisites
-
Create a SingleStore Kai-enabled workspace.
Refer to Getting Started with SingleStore Kai for related information. -
The workspace must be deployed in an Azure region.
Configure the Connection
To connect to the MongoDB® instance using Azure Private Link:
-
Copy the VPC Endpoint Service Name from the SingleStore Helios Cloud Portal.
-
On the Cloud Portal, select Workspaces in the left navigation pane.
-
Select the three dots under the Actions column for your workspace, and select Access & Security from the list.
-
On the Access tab, under Private Links, select Create Connection.
-
On the Create Connection dialog, copy and store the Private Link Service Alias.
The Endpoint and Connection Type fields are automatically set to MongoDB® and Inbound, respectively. -
(Optional) Keep the Create Connection dialog open to enter the resource ID of your Azure private endpoint created in the next step.
-
-
Create a private endpoint on the Azure portal.
While configuring the connection, perform the following tasks: -
Under Resource, select Connect to an Azure resource by resource ID or alias.
Enter the Private Link Service alias copied in the previous step in the Resource ID or alias field. -
Allow incoming connections to
TCPport27017of your private endpoint. -
Approve the private endpoint connection request.
-
Copy the Private Endpoint Resource ID of your Azure private endpoint.
The resource ID has the following format: /subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.Network/privateEndpoints/<endpoint-name>
-
-
Create an inbound private connection on the Cloud Portal.
On the Create Connection dialog from the first step, enter the Private Endpoint Resource ID. The Endpoint and Connection Type fields are automatically set to MongoDB® and Inbound, respectively. -
Select Create Connection.
The connection is ready to use once it is in ACTIVE state.
mongodb://<username>:<password>@<private-endpoint-address>:27017/?authMechanism=PLAIN&tls=true&loadBalanced=true&tlsAllowInvalidHostnames=true&tlsAllowInvalidCertificates=trueRefer to Connect to SingleStore Helios Workspaces from Private Networks/Services via Azure Private Link for related information.
Last modified: