github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/azurerm/r/local_network_gateway.html.markdown (about)

     1  ---
     2  layout: "azurerm"
     3  page_title: "Azure Resource Manager: azurerm_local_network_gateway"
     4  sidebar_current: "docs-azurerm-resource-local-network-gateway"
     5  description: |-
     6    Creates a new local network gateway connection over which specific connections can be configured.
     7  ---
     8  
     9  # azurerm\_local\_network\_gateway
    10  
    11  Creates a new local network gateway connection over which specific connections can be configured.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  resource "azurerm_local_network_gateway" "home" {
    17    name                = "backHome"
    18    resource_group_name = "${azurerm_resource_group.test.name}"
    19    location            = "${azurerm_resource_group.test.location}"
    20    gateway_address     = "12.13.14.15"
    21    address_space       = ["10.0.0.0/16"]
    22  }
    23  ```
    24  
    25  ## Argument Reference
    26  
    27  The following arguments are supported:
    28  
    29  * `name` - (Required) The name of the local network gateway. Changing this
    30      forces a new resource to be created.
    31  
    32  * `resource_group_name` - (Required) The name of the resource group in which to
    33      create the local network gateway.
    34  
    35  * `location` - (Required) The location/region where the local network gatway is
    36      created. Changing this forces a new resource to be created.
    37  
    38  * `gateway_address` - (Required) The IP address of the gateway to which to
    39      connect.
    40  
    41  * `address_space` - (Required) The list of string CIDRs representing the
    42      address spaces the gateway exposes.
    43  
    44  ## Attributes Reference
    45  
    46  The following attributes are exported:
    47  
    48  * `id` - The local network gateway unique ID within Azure.
    49  
    50  ## Import
    51  
    52  Local Network Gateways can be imported using the `resource id`, e.g.
    53  
    54  ```
    55  terraform import azurerm_local_network_gateway.lng1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/localNetworkGateways/lng1
    56  ```