Connectivity configuration in Azure Virtual Network Manager (Preview)

In this article, you'll learn about the different types of configurations you can create and deploy using Azure Virtual Network Manager. There are two types of configurations currently available: Connectivity and Security Admins.

Important

Azure Virtual Network Manager is currently in public preview. This preview version is provided without a service level agreement, and it's not recommended for production workloads. Certain features might not be supported or might have constrained capabilities. For more information, see Supplemental Terms of Use for Microsoft Azure Previews.

Connectivity configuration

Connectivity configurations allow you to create different network topologies based on your network needs. You have two topologies to choose from, a mesh network and a hub and spoke. Connectivities between virtual networks are defined within the configuration settings.

Mesh network topology

A mesh network is a topology in which all the virtual networks in the network group are connected to each other. All virtual networks are connected and can pass traffic bi-directionally to one another. By default, the mesh is a regional mesh, therefore only virtual networks in the same region can communicate with each other. Global mesh can be enabled to establish connectivity of virtual networks across all Azure regions. A virtual network can be part of up to five connected groups. Virtual network address spaces can't overlap in a configuration or else your resources can't communicate with one another because of network conflicts.

Diagram of a mesh network topology.

Connected group

When you create a mesh topology, a new connectivity construct is created called Connected group. Virtual networks in a connected group can communicate to each other just like if you were to connect virtual networks together manually. When you look at the effective routes for a network interface, you'll see a next hop type of ConnectedGroup. Virtual network connected together in a connected group won't have a peering configuration listed under Peerings for the virtual network.

Note

  • If you have conflicting subnets in two or more virtual networks, resources in those subnets won't be able to communicate to each other even if they're part of the same mesh network.
  • A virtual network can be part of up to two mesh configurations.

Hub and spoke topology

A hub-and-spoke is a network topology in which you have a virtual network selected as the hub virtual network. This virtual network gets bi-directionally peered with every spoke virtual network in the configuration. This topology is useful for when you want to isolate a virtual network but still want it to have connectivity to common resources in the hub virtual network.

In this configuration, you have settings you can enable such as direct connectivity between spoke virtual networks. By default, this connectivity is only for virtual networks in the same region. To allow connectivity across different Azure regions, you'll need to enable Global mesh. You can also enable Gateway transit to allow spoke virtual networks to use the VPN or ExpressRoute gateway deployed in the hub.

Direct connectivity

Enabling Direct connectivity creates a connected group that contains spoke virtual networks with the same region. This connection is only established for virtual networks in the same network group.

For example, you create two network groups. You enable direct connectivity for the Production network group but not for the Test network group. This set up only allows virtual networks in the Production network group to communicate with one another but not the ones in the Test network group.

See example diagram below:

Diagram of a hub and spoke topology with two network groups.

When you look at effective routes on a VM, the route between the hub and the spoke virtual networks will have the next hop type of VNetPeering or GlobalVNetPeering. Routes between spokes virtual networks will show up with the next hop type of ConnectedGroup. Using the example above, only the Production network group would have a ConnectedGroup because it has Direct connectivity enabled.

Note

The hub network address space is added to the ConnectedGroup when Direct Connectivity is enabled. Therefore, if the virtual network peering between the hub and the spoke virtual network fail, they can still communicate by ConnectedGroup.

Use cases

Enabling direct connectivity between spokes virtual networks can be helpful when you want to have an NVA or a common service in the hub virtual network but the hub doesn't need to be always accessed. But rather you need your spoke virtual networks in the network group to communicate with each other. Compared to traditional hub and spoke networks, this topology improves performance by removing the extra hop through the hub virtual network.

Global Mesh

Global mesh is required when you want your spoke virtual networks to communicate with each other across regions. This connectivity is limited to virtual network in the same network group. To enable connectivity for virtual networks across regions, you'll need to Enable mesh connectivity across regions for the network group. Connections created between spokes virtual networks are in a Connected group.

Use hub as a gateway

Another option you can enable in a hub-and-spoke configuration is to use the hub as a gateway. This setting will allow all virtual networks in the network group to use the VPN or ExpressRoute gateway in the hub virtual network to pass traffic. See Gateways and on-premises connectivity.

When you deploy a hub and spoke topology from the Azure portal, the Use hub as a gateway is enabled by default for the spoke virtual networks in the network group. Azure Virtual Network Manager will attempt to create a virtual network peering connection between the hub and the spokes virtual network in the resource group. If the gateway doesn't exist in the hub virtual network, then the creation of the peering from the spoke virtual network to the hub will fail. The peering connection from the hub to the spoke will still be created without an established connection.

Note

If you enable Direct connectivity for the spoke network group, the hub will also be included in the connected group. Therefore, even if the peering connection from the spoke to the hub is not created, the spoke virtual networks can communicate with the hub virtual network through connected group.

Next steps