Dark Mode

This information applies to only classic databases.

By creating a virtual private cloud (VPC), you can connect your Azure resources and DataStax Astra DB databases. VPC peering allows you to communicate across the VPCs.

For more about VPC peering on Astra DB databases hosted on Azure, see Virtual network peering.

VPC peering is available on only Classic C- and D-tier Astra DB databases.

Prerequisites

Azure command line interface

To establish a peering connection for Azure and grant an Enterprise Application managed by Astra DB access to a peering connection, run these commands using the Azure command line interface.

  • Create a Service Principal in your Azure subscription for an existing Astra DB-managed Enterprise Application:
  • Create a role.json file that defines the necessary permissions that Service Principal will need to:
  • Using the definitions defined in the role.json file create a new role in your subscription:
  • Assign the role you created to the service principal created to your virtual network's scope:
  • 1

Astra DB Console

  • From your database Overview, select Add Peering Connection.
  • In Add Peering Connection, enter the tenant your subscription belongs to for the Azure Tenant ID.
  • For the Azure Subscription ID, enter <YOUR_SUBSCRIPTION> that matches the variable in the role.json file.
  • For the Azure Resource Group Name, enter <YOURRESOURCEGROUP> that matches the variable in the role.json file.
  • For the Azure Virtual Network Name, enter <YOURVIRTUALNETWORK> that matches the variable in the role.json file.
  • Select Initiate.After you initiate peering, you will see a link to Download secure connect bundle for internal VPC network.
  • Download this internal secure connect bundle to connect to the Astra DB database to ensure the connection gets routed through private IP addresses and not the open internet.

The internal secure connect bundle ensures the connection to the Astra DB database is routed through private IP addresses and not the open internet.Using the internal secure connect bundle is the same as using the external secure connect bundle when trying to connect to the database.

If you see Conflict Error: RemotePeeringIsDisconnected as the status for your peering connection, there is a previous Astra DB peering connection in your Azurevirtual network that is in a Disconnected state. Remove this peering connection so Astra DB can initiate a successful peering request. To resolve the issue, followthese steps:

  • Delete the disconnected peering from your Azure virtual network
  • Delete the peering from your Astra DB database
  • Create a new peering as described in this document