Skip to contentManaged Kafka is live: Apache Kafka on AWS for half the cost of MSK

Connection options

Connect over Azure Private Link

Create a PrivateLink connection from Artie's Azure data plane to your Private Link Service. Approve it in Azure, then use its private IP as a connector's host.

Artie creates a private endpoint in its data plane and sends a connection request to your Private Link Service. After you approve the request, traffic flows through your internal load balancer to your database.

Customer virtual networkArtie data planePrivate LinkPrivate endpointPrivate Link ServiceInternal load balancerDatabase

Prerequisites

Set these up before you create the connection:

  • An Artie workspace with PrivateLink enabled. On the Free plan, the PrivateLink tab is locked.
  • An Artie data plane in Azure that supports PrivateLink.
  • An internal Standard Load Balancer in your database’s virtual network, with a load balancing rule and a TCP health probe on the database port.
  • A Private Link Service on that load balancer’s frontend IP, with auto-approval off. Its subnet has private link service network policies disabled.
  • A network security group that allows the database port from the Private Link Service’s subnet, and allows the AzureLoadBalancer service tag.
  • The Private Link Service’s Visibility set to Anyone with your alias, or to Restricted by subscription with Artie’s subscription ID (42421fa2-f3e4-4eee-a55d-ae543e47d794) added.

On bring your own cloud (BYOC), Artie’s subscription ID can differ. Contact us for yours.

These steps cover a database that runs on a virtual machine. Azure SQL Database and Azure Database for PostgreSQL or MySQL servers need a different setup.

The form’s notice says whether a new connection adds to your invoice. When it does, each additional connection costs $500 per month, prorated. On a self-serve free trial, connections are free until you convert to a paid plan.

  1. Open PrivateLink settings

    In the Artie dashboard, open Settings, then select PrivateLink.

  2. Start a new connection

    Select New connection.

    The notice at the top of the form says whether Artie reviews the connection, a workspace admin approves it, or setup starts right away.

  3. Fill in the form

    Enter a Name and choose an Environment. If Data plane appears, choose your Azure data plane before you go on.

    The form shows Private Link service alias once an Azure data plane is selected. Paste your alias there.

    The alias is on your Private Link Service’s overview page in the Azure portal. It has this format:

    Text
    SERVICE_NAME.GUID.REGION.azure.privatelinkservice

    SERVICE_NAME, GUID, and REGION are set by Azure. The environment can’t change after you create the connection.

  4. Create the connection

    Select Create.

    If the connection needs approval, it shows Awaiting approval until Artie or a workspace admin approves it. It then shows Provisioning while Artie creates its private endpoint. To change the alias, edit the connection before Artie provisions it.

  5. Find Artie's request in Azure

    When the status is Pending acceptance, search the Azure portal for Private link services and open your service.

    Artie emails your workspace when the request is ready. On Artie’s PrivateLink tab, the connection’s Address column shows the private IP of Artie’s endpoint. The request message reads Artie PrivateLink for COMPANY_NAME (CONNECTION_NAME), with your Artie workspace name and the connection’s name.

  6. Approve the request

    Under Private endpoint connections, select Artie’s pending request, then select Approve.

  7. Confirm the status in Artie

    On the PrivateLink tab, select the refresh icon (Check acceptance status) next to the connection’s status. View-only users don’t see this icon or the connection’s other actions: Retry provisioning, Debug connectivity, and Edit connection.

    The status changes to Available. Without a manual check, Artie rechecks every 15 minutes.

Verify the connection

Run a TCP check from Artie’s data plane to your database port:

  1. On the PrivateLink tab, select Debug connectivity on the connection’s row.
  2. Enter your database Port, such as 5432.
  3. Select Test TCP.

The row for the connection’s private IP shows Success. Debug connectivity appears once the connection has a private IP.

Use the connection in a pipeline

When you create a pipeline, the setup flow asks How would you like to connect your source? and the same for your destination.

  1. Select PrivateLink, then select Continue.
  2. Under Existing link, choose the connection in PrivateLink connection.
  3. Select Continue.

Artie fills the connector’s host with the connection’s private IP. The list holds connections in the pipeline’s environment that are Available, or Pending acceptance with a private IP. Replication starts after you approve the request in Azure.

New link opens the same form inside the setup flow, with Create PrivateLink as its button. The PrivateLink option is unavailable for some connectors, including MongoDB and Redis.

On an existing pipeline, edit the source or destination connector, select PrivateLink, then choose the connection in PrivateLink connection.

Troubleshooting

If a connection times out, run the TCP check in Verify the connection from the PrivateLink tab. For Azure connections, the debugging tool runs a TCP check only. If the check fails, work through these sections in order.

Verify the load balancer rule and health probe

  1. In the Azure portal, open Load balancers and select the load balancer behind your Private Link Service.
  2. Confirm that a load balancing rule exists for your database port, such as 5432.
  3. Confirm that the rule’s health probe is healthy. When the probe fails, the load balancer stops sending new connections to your database.

Verify network security group rules

Find the network security group on your database, or on the VM that forwards traffic to it. Confirm that it allows inbound traffic on the database port from your Private Link Service’s subnet. That subnet’s NAT IPs are the source of Artie’s traffic. Also allow the AzureLoadBalancer service tag, which the health probe uses.

Status changes to Errored

Cause: Artie checks every Available connection daily. When two checks at least 12 hours apart find the request rejected, disconnected, or removed, the status changes to Errored and Artie emails you. After a 7-day grace period, Artie can remove its private endpoint. If two checks find that Artie’s private endpoint no longer exists, the status also changes to Errored, with no grace period.

Fix: If you rejected the request by mistake, approve it again in the Azure portal before Artie removes its endpoint. Then select Retry provisioning next to the status. Artie keeps the endpoint you approved and its private IP, and the status returns to Available within minutes. Without a retry, the daily check usually restores it within a day. If it doesn’t, select Retry provisioning.

Otherwise, select Retry provisioning, then approve the new request in Azure. Artie builds a new private endpoint, which can get a new private IP. Selecting Retry provisioning before you approve the old request again does the same.

Verify: The status returns to Available. If Artie built a new private endpoint, edit and save each source, destination and replica connector that uses the connection. Each connector keeps the old private IP until you save it.

A connection that fails while Artie provisions it also shows Errored. Hover over the error icon next to the status for the reason. While the connection has no private IP, Edit connection lets you correct the Private Link service alias before you retry.

Frequently asked questions

Private Link is available in the region of your data plane, Azure South Central US. Contact us if you need Private Link in a different region.

What if I have multiple databases?

Choose one of two setups:

  1. (Recommended) Create one PrivateLink connection and add a load balancing rule for each database to your load balancer.
  2. Create a separate PrivateLink connection for each database. Do this only if you expect extremely high throughput Typically > 500 MB/s sustained data transfer or > 100k concurrent connections. and want dedicated resources and isolated traffic.

How do I connect to my read-only database for backfills?

Artie backfills from a read replica when you turn on Use a read replica for backfill? on the source connector. With PrivateLink, add a load balancing rule for the read-only database to your load balancer. Then choose the connection in Replica PrivateLink connection (optional). Rules on one frontend IP each need their own frontend port, so enter the replica rule’s frontend port as the Replica port.

See What if I have multiple databases?.

Was this page helpful?