You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Quickstart: Create a mesh network topology with Azure Virtual Network Manager using Terraform
15
17
16
18
Get started with Azure Virtual Network Manager by using Terraform to provision connectivity for all your virtual networks.
17
19
18
-
In this quickstart, you deploy three virtual networks and use Azure Virtual Network Manager to create a mesh network topology. Then, you verify that the connectivity configuration was applied.
20
+
In this quickstart, you deploy three virtual networks and use Azure Virtual Network Manager to create a mesh network topology. Then, you verify that the connectivity configuration was applied. You can choose from a deployment with a Subscription scope or a management group scope. Learn more about [network manager scopes](concept-network-manager-scope.md).
@@ -39,31 +41,69 @@ In this article, you learn how to:
39
41
-[Install and configure Terraform](/azure/developer/terraform/quickstart-configure)
40
42
- To modify dynamic network groups, you must be [granted access via Azure RBAC role](concept-network-groups.md#network-groups-and-azure-policy) assignment only. Classic Admin/legacy authorization is not supported
41
43
44
+
:::zone pivot="sub"
45
+
42
46
## Implement the Terraform code
43
47
48
+
This code sample will implement Azure Virtual Network Manager at the subscription scope.
49
+
44
50
> [!NOTE]
45
51
> The sample code for this article is located in the [Azure Terraform GitHub repo](https://github.com/Azure/terraform/tree/master/quickstart/101-virtual-network-manager-create-mesh). You can view the log file containing the [test results from current and previous versions of Terraform](https://github.com/Azure/terraform/tree/master/quickstart/101-virtual-network-manager-create-mesh/TestRecord.md).
46
52
>
47
53
> See more [articles and sample code showing how to use Terraform to manage Azure resources](/azure/terraform)
48
54
49
55
1. Create a directory in which to test and run the sample Terraform code and make it the current directory.
50
56
51
-
1. Create a file named `providers.tf` and insert the following code:
57
+
2. Create a file named `providers.tf` and insert the following code:
This code sample will implement Azure Virtual Network Manager at the management group scope.
81
+
82
+
> [!NOTE]
83
+
> The sample code for this article is located in the [Azure Terraform GitHub repo](https://github.com/Azure/terraform/tree/master/quickstart/101-virtual-network-manager-create-management-group-scope). You can view the log file containing the [test results from current and previous versions of Terraform](https://github.com/Azure/terraform/blob/master/quickstart/101-virtual-network-manager-create-management-group-scope/TestRecord.md).
84
+
>
85
+
> See more [articles and sample code showing how to use Terraform to manage Azure resources](/azure/terraform)
86
+
87
+
1. Create a directory in which to test and run the sample Terraform code and make it the current directory.
88
+
89
+
1. Create a file named `providers.tf` and insert the following code:
1. Run [Get-AzResourceGroup](/powershell/module/az.resources/Get-AzResourceGroup) to display the resource group.
152
+
153
+
```azurepowershell
154
+
Get-AzResourceGroup -Name $resource_group_name
155
+
```
156
+
157
+
1. For each virtual network name printed in the previous step, run [Get-AzNetworkManagerEffectiveConnectivityConfiguration](/powershell/module/az.network/get-aznetworkmanagereffectiveconnectivityconfiguration) to print the effective (applied) configurations. Replace the `<virtual_network_name>` placeholder with the vnet name.
0 commit comments