Skip to main content
Version: v2.x

Azure VNet Peering

Available on: Cloud Enterprise

Your Dedicated VPC can be peered with other networks that you own on Azure. It will enable private connectivity to your databases and other APIs from Hasura Cloud and you will not have to expose them publicly.

You can view all the requests and active peerings in the Peering tab.

Create a peering request

Step 1: Create a new peering request

To create a new peering request, click on the Initiate Peering Request button.

Create Peering Request
Peering Request

Fill in the form with the following details:

FieldDescriptionLink
Display NameThe name you'll see in the Hasura Cloud dashboard.
Azure Tenant IDRepresents an organization in Azure Active Directory. You can find this value in the Azure Portal under Azure Active DirectoryAzure Active Directory
Azure Subscription IDThe unique identifier for your Azure subscription. You can find this in the Azure Portal on the Overview section of your Azure Virtual Networkyour Azure Virtual Network
Azure VNet resource group nameThe identifier for the Azure resource group that the virtual network belongs to. You can find this in the Azure Portal on the Overview section of your Azure Virtual NetworkOverview section of your Azure Virtual Network
Azure VNet NameThe name of your Azure virtual network. You can find this in the Azure Portal on the Overview section of your Azure Virtual NetworkOverview section of your Azure Virtual Network

Once you fill in these details and submit your request, you'll be taken to the next screen where you will have to grant access to Hasura Cloud to initiate the peering.

Step 2: Grant access to Hasura Cloud

Grant Access
  1. Go to the linked URL and approve. This creates a service principal on your Azure AD Tenant against our application. This step does not grant us any access on your Azure Account yet.

  2. Run the command shown with your subscription ID to create a new role with only the required permissions. Alternatively, you may skip this step and grant the default Network Contributor role in the next step.

  3. Verify your subscription ID, VNet resource group name and VNet Name in the command and run it to assign the role to the service principal to grant Hasura access to initiate a VNet peering to the virtual network that was specified

Once this is done, we will initiate the VNet peering to the virtual network specified by you. The status of the peering request will turn to Active when this is completed. You should be able to use private IP addresses as database URLs or webhook URLs after this.

Reach out to support if you face any issues.

If the status is shown as Failed, or if the status is stuck as Request Pending, reach out to support.