# Connect to MongoDB® using Azure Private Link

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](https://docs.singlestore.com/cloud/reference/singlestore-kai/getting-started-with-singlestore-kai.md) 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:

1. Copy the **VPC Endpoint Service Name** from the SingleStore Helios Cloud Portal.

   1. On the [Cloud Portal](https://portal.singlestore.com/), select **Workspaces** in the left navigation pane.

   2. Select the three dots under the **Actions** column for your workspace, and select **Access & Security** from the list.

   3. On the **Access** tab, under **Private Links**, select **Create Connection**.

   4. 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.

   5. (Optional) Keep the Create Connection dialog open to enter the resource ID of your Azure private endpoint created in the next step.

2. Create a private endpoint on the Azure portal. While configuring the connection, perform the following tasks:

   1. 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.

   2. Allow incoming connections to `TCP` port `27017` of your private endpoint.

   3. Approve the private endpoint connection request.

   4. 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>`

3. 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.

4. Select **Create Connection**.

The connection is ready to use once it is in `ACTIVE` state. Connect to the MongoDB® endpoint using the following connection string (update the credentials and private endpoint address):

```
mongodb://<username>:<password>@<private-endpoint-address>:27017/?authMechanism=PLAIN&tls=true&loadBalanced=true&tlsAllowInvalidHostnames=true&tlsAllowInvalidCertificates=true
```

Refer to [Connect to SingleStore Helios Workspaces from Private Networks/Services via Azure Private Link](https://docs.singlestore.com/cloud/connect-to-singlestore/private-connections/connect-to-singlestore-helios-workspaces-from-private-networks-services-via-azure-private-link.md) for related information.

***

Modified at: June 23, 2026

Source: [/cloud/connect-to-singlestore/private-connections/connect-to-mongodb-using-azure-private-link/](https://docs.singlestore.com/cloud/connect-to-singlestore/private-connections/connect-to-mongodb-using-azure-private-link/)

(An index of the documentation is available at /llms.txt)
