Skip to content

Commit 5233c85

Browse files
committed
provider/azurerm: Documentation update for azurerm_network_interface
1 parent ead4bee commit 5233c85

1 file changed

Lines changed: 40 additions & 32 deletions

File tree

website/source/docs/providers/azurerm/r/network_interface.html.markdown

Lines changed: 40 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,51 @@
11
---
22
layout: "azurerm"
3-
page_title: "Azure Resource Manager: azure_virtual_network"
4-
sidebar_current: "docs-azurerm-resource-virtual-network"
3+
page_title: "Azure Resource Manager: azure_network_interface"
4+
sidebar_current: "docs-azurerm-resource-network-interface"
55
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.
6+
Manages the Network Interface cards that link the Virtual Machines and Virtual Network.
77
---
88

9-
# azurerm\_virtual\_network
9+
# azurerm\_network\_interface
1010

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.
11+
Network interface cards are virtual network cards that form the link between virtual machines and the virtual network
1312

1413
## Example Usage
1514

1615
```
16+
resource "azurerm_resource_group" "test" {
17+
name = "acceptanceTestResourceGroup1"
18+
location = "West US"
19+
}
20+
1721
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"
22+
name = "acceptanceTestVirtualNetwork1"
23+
address_space = ["10.0.0.0/16"]
24+
location = "West US"
25+
resource_group_name = "${azurerm_resource_group.test.name}"
26+
}
27+
28+
resource "azurerm_subnet" "test" {
29+
name = "testsubnet"
30+
resource_group_name = "${azurerm_resource_group.test.name}"
31+
virtual_network_name = "${azurerm_virtual_network.test.name}"
3032
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-
}
33+
}
34+
35+
resource "azurerm_network_interface" "test" {
36+
name = "acceptanceTestNetworkInterface1"
37+
location = "West US"
38+
resource_group_name = "${azurerm_resource_group.test.name}"
39+
40+
ip_configuration {
41+
name = "testconfiguration1"
42+
subnet_id = "${azurerm_subnet.test.id}"
43+
private_ip_address_allocation = "dynamic"
44+
}
45+
46+
tags {
47+
environment = "staging"
48+
}
4149
}
4250
```
4351

@@ -86,7 +94,7 @@ The `ip_configuration` block supports:
8694
The following attributes are exported:
8795

8896
* `id` - The virtual NetworkConfiguration ID.
89-
* `mac_address` -
90-
* `virtual_machine_id` -
91-
* `applied_dns_servers` -
92-
* `internal_fqdn` -
97+
* `mac_address` - The media access control (MAC) address of the network interface.
98+
* `virtual_machine_id` - Reference to a VM with which this NIC has been associated.
99+
* `applied_dns_servers` - If the VM that uses this NIC is part of an Availability Set, then this list will have the union of all DNS servers from all NICs that are part of the Availability Set
100+
* `internal_fqdn` - Fully qualified DNS name supporting internal communications between VMs in the same VNet

0 commit comments

Comments
 (0)