Edit

Create network topologies with Azure Virtual Network Manager

In this article, you learn how to create a network topology with Azure Virtual Network Manager. You can choose between two connectivity topologies and complete the steps by using either the Azure portal or Azure PowerShell:

  • Mesh: All the virtual networks of the same region in the network groups included in the configuration can communicate with one another. You can enable cross-region connectivity by enabling the global mesh setting.
  • Hub and spoke: You select a virtual network to act as a hub, and all spoke virtual networks have bi-directional peering with only the hub by default. You can also enable direct connectivity between spoke virtual networks in the same spoke network group and enable the spoke virtual networks to use the gateway in the hub virtual network.

Use the tabs throughout this article to select your topology, and then select whether you want to use the Azure portal or Azure PowerShell.

Prerequisites

Choose a topology

Select the network topology you want to create. Then select the Azure portal or PowerShell tab to complete the steps.

With a mesh topology, all the virtual networks of the same region in the network groups included in the configuration can communicate with one another. You can enable cross-region connectivity by enabling the global mesh setting in the connectivity configuration.

Create the topology

Create a network group

This section helps you create a network group containing the virtual networks you're using for the mesh topology.

Note

This how-to guide assumes you created an Azure Virtual Network Manager instance using the quickstart guide.

  1. Browse to your resource group, and select your Virtual Network Manager resource.

  2. Under Settings, select Network groups. Then select + Create.

  3. On the Create a network group pane, enter or select the following information, and then select Create:

    Setting Value
    Name Enter a name for your network group.
    Description (Optional) Provide a description of this network group.
    Member type Select Virtual network from the dropdown menu.
  4. Confirm that the new network group is now listed on the Network groups pane.

Define network group members

Azure Virtual Network Manager provides two methods for adding membership to a network group. You can manually add virtual networks or use Azure Policy to conditionally add virtual networks to the network group. This how-to manually adds membership. For information on defining group membership with Azure Policy, see Define network group membership with Azure Policy.

To manually add the desired virtual networks to your network group for use in your connectivity configuration, follow these steps:

  1. From the list of network groups, select your network group. Under Manually add members, select Add virtual networks.

  2. On Manually add members, select all desired virtual networks and select Add.

  3. To review the network group membership that you manually added, select Group Members on the Network Group page under Settings.

Create a mesh connectivity configuration

This section guides you through creating a mesh configuration with the network group you created in the previous section.

  1. Select Configurations under Settings, and then select + Create.

  2. Select Connectivity configuration from the drop-down menu to begin creating a connectivity configuration.

  3. On Basics, enter the following information, and select Next: Topology >.

    Setting Value
    Name Enter a name for this configuration.
    Description Optional Enter a description about what this configuration does.
  4. On the Topology tab, select the Mesh topology if not already selected, and leave the Enable mesh connectivity across regions unchecked. Cross-region connectivity isn't required for this setup since all the virtual networks in the network group are in the same region.

  5. On Add network groups, select the network group you want to add to this configuration. Then select Select to save.

    Important

    Add multiple network groups to a mesh connectivity configuration to establish connectivity between all the member virtual networks of all the selected network groups in the same regions by default. Enable mesh connectivity across regions connects all virtual networks of all selected network groups across all regions.

  6. Select Review + create and then Create to create the mesh connectivity configuration.

Deploy the mesh configuration

To apply this configuration in your environment, deploy the configuration to the regions where your selected virtual networks reside.

  1. Select Deployments under Settings, and then select Deploy configuration.

  2. On Deploy a configuration, select the following settings:

    Setting Value
    Configurations Select Include connectivity configurations in your goal state.
    Connectivity Configurations Select the name of the configuration you created in the previous section.
    Target regions Select all the regions that apply to virtual networks you select for the configuration. To gradually roll out this configuration, select a subset of regions.
  3. Select Next and then select Deploy to complete the deployment.

  4. The deployment displays in the list for the selected region. The deployment of the configuration can take a few minutes to complete. Select the Refresh button to check on the status of the deployment.

Confirm deployment

  1. See view applied configurations.

  2. To test connectivity between virtual networks, deploy a test virtual machine into each virtual network and start an ICMP request between them.

Next steps