Azure Virtual Network Manager. A hands-on look at connecting virtual networks without managing peerings one by one.

Introduction

As an Azure environment grows, so does the number of virtual networks (VNets). Connecting two VNets with peering is simple. Connecting ten, or fifty, and keeping them consistent is not. Every new VNet means more peerings to create, more rules to align, and more chances for configuration drift.

Azure Virtual Network Manager (AVNM) is built to solve this. It is a management service that lets you group VNets, apply connectivity and security configurations to those groups at scale, and deploy them across subscriptions and regions from a single place.

In this article I walk through a small test I ran: three VNets (VNet1, VNet2 and VNet3) placed in a network group and connected with a mesh topology. Along the way I explain the key concepts and what I learned.

The Test Setup

My lab consisted of:

ComponentDetails
Network ManagerOne instance with the Connectivity feature enabled
Virtual networksVNet1, VNet2, VNet3
Network group One static group (“netgroup1“) containing all three VNets
ConfigurationMesh connectivity configuration targeting the group

Task 1: Create a Resource-Group (optional)

Login to Azure subscription from powershell

Connect-AzAccount

This command opens a browser window for authentication. Sign in with your Azure credentials. After successful authentication, you’ll see your subscription details in Power Shell

Once logged into your Azure subscription, you can create a dedicated resource group that will contain all resources required for this lab.

New-AzResourceGroup -Name avnm -Location "germanywestcentral"

Task 2: Create the Vnets

You can download the json files (template and parameters) that you need for the Vnets.

https://github.com/az104tor/AZ700-Labs.git

Place the files in a directory on your local system. Move to the local directory who you placed the templates.

New-AzResourceGroupDeployment -name deplVnets -ResourceGroupName avnm -TemplateFile .\template.json -TemplateParameterFile .\parameters.json

Task 3: Create the Network Manager

AVNM is a central management layer for your virtual networks. Instead of configuring each VNet individually, you define intent once and let the service apply it. Its main capabilities include:

  • Connectivity configurations: create mesh or hub-and-spoke topologies across many VNets.
  • Security admin rules: define organization-wide security rules that are evaluated before network security group (NSG) rules and can take precedence over them.
  • Routing configurations: manage user-defined routes centrally for a group of VNets.
  • Verifier and monitoring features: help check that the intended connectivity actually works.

In the Azure portal, search for Network Managers and create a new instance. Choose your subscription, resource group and region, then select the scope and the features you want. For this test, Connectivity is all that is needed.

Everything starts with a Network Manager instance, which has a scope. The scope defines which management groups or subscriptions the manager is allowed to manage, and which features (connectivity, security admin, routing) are enabled.

Once the Avnm instance is deployed we can start to configure it.

3.1 Create a Network group

A network group is a collection of VNets (or subnets) that you want to treat as one unit. Membership can be:

  • Static: you add specific VNets manually.
  • Dynamic: membership is defined by an Azure Policy condition, for example all VNets with a certain tag or name pattern. New VNets that match are added automatically.

Inside the Network Manager, open Network groups and create a new group. I named mine to reflect its purpose and added VNet1, VNet2 and VNet3 as static members:

3.2 Connectivity configuration

A connectivity configuration describes how the VNets in a group talk to each other. There are two topologies:

  • Hub-and-spoke: spokes connect to a central hub VNet, typically hosting shared services or a firewall.
  • Mesh: every VNet in the group can communicate directly with every other VNet in the group.

Under Configurations, create a new connectivity configuration and select the Mesh topology. Then choose the network group created in the previous step.

Two options are worth understanding:

  • Global mesh: by default, a mesh connects VNets within the same region. Enabling global mesh allows VNets in different regions to join the same mesh.
  • Direct connectivity within the group: this is what gives the mesh its behavior, allowing traffic to flow between all members of the group.

3.3 Deployment

Creating a configuration does nothing by itself. A configuration must be deployed to one or more regions before it takes effect. This is a deliberate step that lets you review changes before they touch live networks.

A few prerequisites are worth noting before you start:

  • The VNets must have non-overlapping address spaces.
  • The VNets must be within the scope of the Network Manager (same subscription or management group scope).
  • You need appropriate permissions to create the Network Manager and deploy configurations.

Open Deployments, select Deploy configuration, choose the connectivity configuration and the target region, and start the deployment. Once the deployment succeeds, the mesh is live.

Task 4: Verifying the Result

After deployment, I verified the connectivity from Azure Portal : the VNets show that they are part of a connected group managed by the Network Manager.

Alternatively, if there are VMs inside the Vnets you can check:

  • Effective routes on a VM network interface show routes to the address spaces of the other VNets.
  • Connectivity tests: pinging or connecting between test VMs in VNet1, VNet2 and VNet3 confirms that traffic flows in every direction.

Conclusion

A mesh created by AVNM is a connected group, which is different from classic VNet peering. Traditional peerings are individual resources you can see and edit on each VNet, while the connected group is managed centrally by AVNM. It fit when all VNets are peers and need to reach each other freely, for example environments that share data services. But if you need centralized traffic inspection or shared VPN or ExpressRoute gateways, hub-and-spoke is usually the better choice.

Mesh vs. Hub-and-Spoke

MeshHub-and-spoke
Traffic between VNetsDirect, any to anyVia the hub (or direct if configured)
Central inspectionNot built inNatural place for a firewall or gateway
Gateway sharingNot supportedSpokes can use the hub’s gateway
Best forSmall to medium groups that need low-latency, full connectivityShared services, centralized security, on-premises connectivity

Azure Virtual Network Manager turns network connectivity from a manual, per-VNet task into a declarative, group-based one. My test with VNet1, VNet2 and VNet3 was small, but it showed the workflow clearly: create a Network Manager, group your VNets, define a mesh configuration and deploy it. The same approach scales to dozens of VNets across subscriptions, especially when combined with dynamic membership and security admin rules.