github.com/erriapo/terraform@v0.6.12-0.20160203182612-0340ea72354f/website/source/docs/providers/azurerm/r/network_interface.html.markdown (about)

     1  ---
     2  layout: "azurerm"
     3  page_title: "Azure Resource Manager: azure_virtual_network"
     4  sidebar_current: "docs-azurerm-resource-virtual-network"
     5  description: |-
     6    Creates a new virtual network including any configured subnets. Each subnet can optionally be configured with a security group to be associated with the subnet.
     7  ---
     8  
     9  # azurerm\_virtual\_network
    10  
    11  Creates a new virtual network including any configured subnets. Each subnet can
    12  optionally be configured with a security group to be associated with the subnet.
    13  
    14  ## Example Usage
    15  
    16  ```
    17  resource "azurerm_virtual_network" "test" {
    18    name                = "virtualNetwork1"
    19    resource_group_name = "${azurerm_resource_group.test.name}"
    20    address_space       = ["10.0.0.0/16"]
    21    location            = "West US"
    22  
    23    subnet {
    24      name           = "subnet1"
    25      address_prefix = "10.0.1.0/24"
    26    }
    27  
    28    subnet {
    29      name           = "subnet2"
    30      address_prefix = "10.0.2.0/24"
    31    }
    32  
    33    subnet {
    34      name           = "subnet3"
    35      address_prefix = "10.0.3.0/24"
    36    }
    37    
    38    tags {
    39      environment = "Production"
    40    }
    41  }
    42  ```
    43  
    44  ## Argument Reference
    45  
    46  The following arguments are supported:
    47  
    48  * `name` - (Required) The name of the network interface. Changing this forces a
    49      new resource to be created.
    50  
    51  * `resource_group_name` - (Required) The name of the resource group in which to
    52      create the network interface.
    53  
    54  * `location` - (Required) The location/region where the network interface is
    55      created. Changing this forces a new resource to be created.
    56  
    57  * `network_security_group_id` - (Optional) The ID of the Network Security Group to associate with
    58                                                 the network interface. 
    59  
    60  * `internal_dns_name_label` - (Optional) Relative DNS name for this NIC used for internal communications between VMs in the same VNet
    61  
    62  * `dns_servers` - (Optional) List of DNS servers IP addresses to use for this NIC, overrides the VNet-level server list
    63  
    64  * `ip_configuration` - (Optional) Collection of ipConfigurations associated with this NIC. Each `ip_configuration` block supports fields documented below.
    65  
    66  * `tags` - (Optional) A mapping of tags to assign to the resource. 
    67  
    68  The `ip_configuration` block supports:
    69  
    70  * `name` - (Required) User-defined name of the IP.
    71  
    72  * `subnet_id` - (Required) Reference to a subnet in which this NIC has been created.
    73  
    74  * `private_ip_address` - (Optional) Static IP Address.
    75  
    76  * `private_ip_address_allocation` - (Required) Defines how a private IP address is assigned. Options are Static or Dynamic.
    77  
    78  * `public_ip_address_id` - (Optional) Reference to a Public IP Address to associate with this NIC
    79  
    80  * `load_balancer_backend_address_pools_ids` - (Optional) List of Load Balancer Backend Address Pool IDs references to which this NIC belongs
    81  
    82  * `load_balancer_inbound_nat_rules_ids` - (Optional) List of Load Balancer Inbound Nat Rules IDs involving this NIC
    83  
    84  ## Attributes Reference
    85  
    86  The following attributes are exported:
    87  
    88  * `id` - The virtual NetworkConfiguration ID.
    89  * `mac_address` - 
    90  * `virtual_machine_id` - 
    91  * `applied_dns_servers` - 
    92  * `internal_fqdn` -