Skip to content

Commit c9466a2

Browse files
author
Michael Bender
committed
update article w/ pivot zones
1 parent 8be137d commit c9466a2

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

articles/virtual-network-manager/create-virtual-network-manager-terraform.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ content_well_notification:
1515

1616
Get started with Azure Virtual Network Manager by using Terraform to provision connectivity for all your virtual networks.
1717

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.
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. You can choose from a deployment with a Subscription scope or a management group scope
1919

2020
[!INCLUDE [virtual-network-manager-preview](../../includes/virtual-network-manager-preview.md)]
2121

@@ -39,6 +39,38 @@ In this article, you learn how to:
3939
- [Install and configure Terraform](/azure/developer/terraform/quickstart-configure)
4040
- 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
4141

42+
:::zone pivot="subscription-scope"
43+
44+
## Implement the Terraform code
45+
46+
> [!NOTE]
47+
> 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).
48+
>
49+
> See more [articles and sample code showing how to use Terraform to manage Azure resources](/azure/terraform)
50+
51+
1. Create a directory in which to test and run the sample Terraform code and make it the current directory.
52+
53+
1. Create a file named `providers.tf` and insert the following code:
54+
55+
[!code-terraform[master](~/terraform_samples/quickstart/101-virtual-network-manager-create-mesh/providers.tf)]
56+
57+
1. Create a file named `main.tf` and insert the following code:
58+
59+
[!code-terraform[master](~/terraform_samples/quickstart/101-virtual-network-manager-create-mesh/main.tf)]
60+
61+
1. Create a file named `variables.tf` and insert the following code:
62+
63+
[!code-terraform[master](~/terraform_samples/quickstart/101-virtual-network-manager-create-mesh/variables.tf)]
64+
65+
1. Create a file named `outputs.tf` and insert the following code:
66+
67+
[!code-terraform[master](~/terraform_samples/quickstart/101-virtual-network-manager-create-mesh/outputs.tf)]
68+
69+
:::zone-end
70+
71+
:::zone pivot="management-group-scope"
72+
73+
4274
## Implement the Terraform code
4375

4476
> [!NOTE]
@@ -64,6 +96,8 @@ In this article, you learn how to:
6496

6597
[!code-terraform[master](~/terraform_samples/quickstart/101-virtual-network-manager-create-mesh/outputs.tf)]
6698

99+
:::zone-end
100+
67101
## Initialize Terraform
68102

69103
[!INCLUDE [terraform-init.md](~/azure-dev-docs-pr/articles/terraform/includes/terraform-init.md)]

0 commit comments

Comments
 (0)