title | description | ms.topic | service | ms.service | ms.date | ms.custom |
---|---|---|---|---|---|---|
Create a hub virtual network appliance in Azure using Terraform |
Learn how to create a Hub virtual network (VNet) that acts as a common connection point between other networks. |
how-to |
virtual-network |
azure-virtual-network |
10/26/2023 |
devx-track-terraform |
[!INCLUDE Terraform abstract]
A VPN device is a device that provides external connectivity to an on-premises network. The VPN device may be a hardware device or a software solution. One example of a software solution is Routing and Remote Access Service (RRAS) in Windows Server 2012. For more information about VPN appliances, see About VPN devices for Site-to-Site VPN Gateway connections.
Azure supports a broad variety of network virtual appliances from which to select. For this article, an Ubuntu image is used. To learn more about the broad variety of device solutions supported in Azure, see the Network Appliances home page.
In this article, you learn how to:
[!div class="checklist"]
- Implement the Hub VNet in hub-spoke topology
- Create Hub Network Virtual Machine which acts as appliance
- Enable routes using CustomScript extensions
- Create Hub and Spoke gateway route tables
[!INCLUDE open-source-devops-prereqs-azure-subscription.md]
[!INCLUDE configure-terraform.md]
-
Make the example directory created in the first article of this series the current directory.
-
Create a file named
hub-nva.tf
and insert the following code:[!code-terraformmaster]
Troubleshoot common problems when using Terraform on Azure
[!div class="nextstepaction"] Create a spoke virtual networks with Terraform in Azure