• Terraform Cloud
    • HCP Vault
    • HCP Consul
    • HCP Packer
    • HCP Boundary
  • Pricing
  • Documentation
  • Tutorials
  • Community
Sign InTry cloud for free
    • What is HCP?
    • HCP Account
      • AWS
      • Azure
      • Overview
        • Create and Manage HVN
        • Peering Connections
        • Transit Gateway Attachments
        • Routes
        • Security Groups
        • Create and Manage HVN
        • Peering Connections
        • Routes
        • Security Groups
      • Organizations
      • Users
      • Service Principals
        • Overview
        • Okta
        • Azure Active Directory
      • Multi-Factor Authentication
        • Overview
        • Payment
        • Flex Billing
      • Support
    • Overview
    • How HCP Boundary Works
    • Public Beta Limitations
    • Get Started
    • Boundary Documentation
    • What is HCP Consul?
    • Specifications
    • Constraints and Known Issues
      • Overview
      • Clusters
      • Clients
      • Federation
      • Upgrades
      • Audit Logs
      • Snapshots
      • Tutorials
      • Consul Documentation
      • Forums
    • Overview
    • Security Overview
    • Get Started
    • Login MFA
    • High Availability and Disaster Recovery
    • Performance Replication
    • Version Management
    • RBAC Permissions
    • Administrative Capabilities
    • Audit Log Management
      • Overview
      • FAQ
    • Metrics
    • Constraints and Known Issues
    • Migrate to HCP Vault
    • What is HCP Packer?
    • Get Started
      • Template Configuration
      • Image Metadata
      • Image Buckets
      • Image Channels and Revocation
      • Terraform Cloud Run Tasks
    • Reference Image Metadata
    • Manage Registry
    • API Reference
    • Packer Documentation
  • Glossary
  • Changelog
Type '/' to Search

»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

  1. Sign in to the HCP Portal and select your organization.
  2. From the sidebar, click HashiCorp Virtual Network.
  3. Click Create network.
  4. Name your virtual network.
  5. Select Microsoft Azure as your provider.
  6. 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.
  7. Optionally, specify a CIDR block. To learn more, click Show recommendations.
  8. 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:

  • Peering Connections
  • Routes
  • Network Security Groups

»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:

  1. Sign in to the HCP Portal and select your organization.
  2. From the sidebar, click HashiCorp Virtual Network.
  3. Click on an HVN in the ID column.
  4. From the Manage menu, copy the provided terraform import command.
  5. Open your terminal and run the command.

»Delete an HVN

  1. Sign in to the HCP Portal and select your organization.
  2. From the sidebar, click HashiCorp Virtual Network.
  3. Click on an HVN in the ID column.
  4. From the Manage menu, click Delete.
  5. When prompted, select Confirm.
  • Learn about HCP

    • Blog
    • Press Release
  • Resources

    • Tutorials
    • Documentation
  • Help

    • Community
    • Support
    • Contact Us
  • Terms of Service
  • SLA
  • Shared Responsibility Model
  • Privacy
  • Security
  • Press Kit
©2022 HashiCorp, Inc. All rights reserved