azure use vnet from another subscription

Azure: Using VNET from Another Subscription

By Jessica Jones
AD

Connecting resources securely across Azure subscriptions is a common requirement in multi-tier or multi-account scenarios. Using virtual networks (VNETs) from another subscription can be achieved using peering or transit routing. Let's explore how to do this, leveraging Azure's powerful networking capabilities.

This guide will walk you through the process of connecting VNETs from different Azure subscriptions to allow communication as if they were in the same network.

Setting up Azure Virtual Network Peering

Virtual Network Peering enables direct communication between two VNETs as if they were a single network. This Gilbert and Sullivan-Sullivan-George scenario allows you to connect VNETs without using network gateways or virtual appliances.

AD
a family tree is shown with several different types of items in the same area, including two
a family tree is shown with several different types of items in the same area, including two
Azure App Service - Regional VNet Integration
Azure App Service - Regional VNet Integration
the azure virtual network vnet architecture
the azure virtual network vnet architecture

Before starting, ensure both VNETs are in the same region and have no overlapping address spaces.

Creating a Peering Link from VNET A to VNET B

In the Azure portal, navigate to your first VNET and click 'Peerings' under the 'Settings' section. Click 'Add', select the other VNET, and create the peering. Confirm and create the peering on the other VNET as well.

Azure Virtual Network Overview | Create VNet and Subnet
Azure Virtual Network Overview | Create VNet and Subnet
Azure Government compliance - Azure Government
Azure Government compliance - Azure Government
Enable your Azure subscription for Data Lake Store - Part One
Enable your Azure subscription for Data Lake Store - Part One

Note: After creating the peering, allow 30 minutes for the connection to establish.

Verifying Peering Status and Connectivity

After creating the peering, ensure the status is 'Connected'. If not, wait and check again. To verify connectivity from VNET A to B, try pinging or tracerouting an IP in VNET B from VNET A, and vice versa.

AD

Using Azure ExpressRoute and Network Virtual Appliances for Transit Routing

For more complex scenarios involving multiple VNETs or on-premises connectivity, using ExpressRoute and network virtual appliances (NVAs) for transit routing can be more efficient. NVAs like Cisco CSR1000V, Fortinet, or Nginx can provide transit routing, or even advanced services like firewalls or load balancing.

the azure logo on a blue background with white letters and an arrow in the middle
the azure logo on a blue background with white letters and an arrow in the middle
How To Move Azure Resources Between Existing Subscription To New Subscription
How To Move Azure Resources Between Existing Subscription To New Subscription
an image of the internet network
an image of the internet network
What you need to know about the changes to network card support in Windows Server
What you need to know about the changes to network card support in Windows Server
Understanding Media Services In Azure
Understanding Media Services In Azure
Azure Integration Services for Business Modernization
Azure Integration Services for Business Modernization

To implement this, you'll need an ExpressRoute circuit (private or public), a third VNET for the transit VNET, and an NVA. Configure BGP between the NVAs and ExpressRoute gateways or on-premises devices.

Deploying and Configuring the Network Virtual Appliance

In the Azure portal, deploy the NVA in the transit VNET. Configure the NVA with twovpns, one each for the VNETs you want to connect. Configure VRRP (Virtual Router Redundancy Protocol) or CARP (Common Address Redundancy Protocol) for high availability.

AD

Note: For detailed configurations, refer to your NVA vendor's documentation.

the azure logo on top of a blue cloud
the azure logo on top of a blue cloud
the block diagram shows how to use an azure appliance for accessing data
the block diagram shows how to use an azure appliance for accessing data
Azure Event Hub Messaging Using REST
Azure Event Hub Messaging Using REST
Microsoft's Azure is the best managed AI cloud service on the market
Microsoft's Azure is the best managed AI cloud service on the market
How to secure Azure Functions with Azure AD, Key Vault and VNETs | Towards Data Science
How to secure Azure Functions with Azure AD, Key Vault and VNETs | Towards Data Science
Just-in-time Access on Azure VMs
Just-in-time Access on Azure VMs
The Lure of Microsoft Windows Azure, Cloud for the People... - Byte Chronicles
The Lure of Microsoft Windows Azure, Cloud for the People... - Byte Chronicles
a blue cloud with the word azure on it
a blue cloud with the word azure on it
Docker in Azure VM | Microsoft Community Hub
Docker in Azure VM | Microsoft Community Hub
Tutorial to set up Azure VM disaster recovery with Azure Site Recovery - Azure Site Recovery
Tutorial to set up Azure VM disaster recovery with Azure Site Recovery - Azure Site Recovery
Usa escritorios en la nube de Windows 365 para trabajar desde cualquier lugar
Usa escritorios en la nube de Windows 365 para trabajar desde cualquier lugar
How to Invite External Users via Azure AD
How to Invite External Users via Azure AD

Connecting VNETs to the Transit VNET

Create peering between each VNET and the transit VNET. Connect to the NVA using the configured VPNs, and use static routes or dynamic routing (e.g., BGP) to route traffic between VNETs.

Monitor your network connections regularly to ensure they remain healthy. Azure provides advanced monitoring and logging capabilities, such as Azure Monitor and Azure Network Watcher, to help you keep your network running smoothly.

AD

By following these steps, you've successfully connected VNETs from different Azure subscriptions. This opens up a world of possibilities for building and managing robust, secure, and scalable Azure networks. Happy networking!

AD