Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 2.45 KB

hub-spoke-hub-nva.md

File metadata and controls

54 lines (34 loc) · 2.45 KB
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

Create a hub virtual network appliance in Azure using 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

1. Configure your environment

[!INCLUDE open-source-devops-prereqs-azure-subscription.md]

[!INCLUDE configure-terraform.md]

2. Implement the Terraform code

  1. Make the example directory created in the first article of this series the current directory.

  2. Create a file named hub-nva.tf and insert the following code:

    [!code-terraformmaster]

Troubleshoot Terraform on Azure

Troubleshoot common problems when using Terraform on Azure

Next steps

[!div class="nextstepaction"] Create a spoke virtual networks with Terraform in Azure