Set up the Azure-Google Cloud VPN network attachment
This document provides high-level guidance on how to establish a VPN connection between Google Cloud and Microsoft Azure. The document also includes instructions for creating a network attachment in Google Cloud.
Before you begin
Ensure you have the following:
- Access to Azure and Google Cloud accounts with appropriate permissions.
- Existing VPCs in both Azure and Google Cloud.
Set up networking on Google Cloud
The setup on Google Cloud requires creating the VPC network, the customer gateway, and the VPN connection.
Create the VPC network
In the Google Cloud console, go to the VPC networks page.
Click
Create VPC network.Provide a name for the network.
Configure subnets as necessary.
Click Create.
For more information, see Create and manage VPC networks.
Create the VPN gateway
In the Google Cloud console, go to the Cloud VPN gateways page.
Click Create VPN gateway.
Select the Classic VPN option button.
Provide a VPN gateway name.
Select an existing VPC network in which to create the VPN gateway and tunnel.
Select the region.
For IP address, create or choose an existing regional external IP address.
Provide a tunnel name.
For Remote peer IP address, enter the Azure VPN gateway public IP address.
Specify options for IKE version and IKE pre-shared key.
Specify the routing options as required to direct traffic to the Azure IP ranges.
Click Create.
For more information, see Create a gateway and tunnel.
Set up networking on Azure
- Create the virtual network. For detailed instructions, see Quickstart: Use the Azure portal to create a virtual network and Create a virtual network in the Azure documentation.
- Create a VPN routed to the virtual network that you created in the Create the VPC network section of this document. For detailed instructions, see Tutorial: Create and manage a VPN gateway using the Azure portal and Create a VPN gateway in the Azure documentation.
- Create a local network gateway with the public IP address of the Google Cloud VPN gateway and the address space of the Google Cloud network. For detailed instructions, see Create a local network gateway in the Azure documentation.
- Create a site-to-site VPN connection using the local network gateway that you created. For detailed instructions, see Create VPN connections in the Azure documentation.
Create the Google Cloud network attachment
To attach the network to the Private Service Connect, do the following:
In the Google Cloud console, go to the Private Service Connect page.
Select the resource that you want to attach to the network.
Click Edit.
In the Network attachments tab, select the network that you created in the Create the VPC network section of this document.
Click Save.
For more information, see Create network attachments.
Verify the network connectivity
Ensure that the VMs in Google Cloud can reach the VMs in Azure, and ensure that the VMs in Azure can reach the VMs in Google Cloud.