» Create and Manage an HVN
You can create and manage a HashiCorp Virtual Network (HVN) for Microsoft Azure. Use an HVN to delegate an IPv4 CIDR range to HCP. The platform uses this CIDR range to automatically create a virtual network (VNet).
» Specification
- You can create one HVN for each available cloud region.
- Resources added to an HVN appear in the HVN's cloud region. Deploying a cluster into an HVN created in the westus2 region, for example, adds the cluster to the westus2 region.
- All HCP resources must be located in one HVN. A single product deployment cannot span two different HVNs.
- You cannot move product deployments from one HVN to another.
- You cannot change HVNs after you deploy them.
» Create an HVN
- Sign in to the HCP Portal and select your organization.
- From the sidebar, click HashiCorp Virtual Network.
- Click Create network.
- Name your virtual network.
- Select Microsoft Azure as your provider.
- Select a region from the dropdown menu.
- One HVN can be created in each available cloud region.
- Resources added to the HVN later are added in the same region.
- Optionally, specify a CIDR block. To learn more, click Show recommendations.
- Click Create network.
Tutorial: For additional guidance on how to create an HVN, complete the HashiCorp Virtual Network tutorials.
» Connect an HVN to Microsoft Azure
To connect your Hashicorp Virtual Network to your Azure infrastructure, you must first create a peering connection. Then, specify traffic routes so that clusters can communicate with client resources. Individual configuration instructions are available:
» Manage an HVN
You cannot modify HVNs after you deploy them, but some management features are available.
» Import to Terraform
To import and manage your HVN in Terraform, complete the following steps:
- Sign in to the HCP Portal and select your organization.
- From the sidebar, click HashiCorp Virtual Network.
- Click on an HVN in the ID column.
- From the Manage menu, copy the provided
terraform import
command. - Open your terminal and run the command.
» Delete an HVN
- Sign in to the HCP Portal and select your organization.
- From the sidebar, click HashiCorp Virtual Network.
- Click on an HVN in the ID column.
- From the Manage menu, click Delete.
- When prompted, select Confirm.