azurerm_local_network_gateway

Manages a local network gateway connection over which specific connections can be configured.

Example Usage

resource "azurerm_resource_group" "example" {
  name     = "localNetworkGWTest"
  location = "West Europe"
}

resource "azurerm_local_network_gateway" "home" {
  name                = "backHome"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
  gateway_address     = "12.13.14.15"
  address_space       = ["10.0.0.0/16"]
}

Argument Reference

The following arguments are supported:


The bgp_settings block supports the following:

Attributes Reference

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

Timeouts

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

Import

Local Network Gateways can be imported using the resource id, e.g.

terraform import azurerm_local_network_gateway.lng1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/localNetworkGateways/lng1