azurerm_vpn_site

Manages a VPN Site.

Example Usage

provider "azurerm" {
  features {}
}

resource "azurerm_resource_group" "example" {
  name     = "example-rg"
  location = "West Europe"
}

resource "azurerm_virtual_wan" "example" {
  name                = "example-vwan"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
}

resource "azurerm_vpn_site" "example" {
  name                = "site1"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
  virtual_wan_id      = azurerm_virtual_wan.example.id
  address_cidrs       = ["10.0.0.0/24"]

  link {
    name       = "link1"
    ip_address = "10.0.0.1"
  }
}

Arguments Reference

The following arguments are supported:



A bgp block supports the following:


A link block supports the following:


A o365_policy block supports the following:


A traffic_category block supports the following:

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:


A link block supports the following:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

VPN Sites can be imported using the resource id, e.g.

terraform import azurerm_vpn_site.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/vpnSites/site1