azure::network-interface¶
Creates a network interface.
Example¶
azure::network-interface network-interface-example
network-interface-name: "network-interface-example"
resource-group: $(azure::resource-group resource-group-network-interface-example)
network: $(azure::network network-example-interface)
subnet: "subnet2"
security-group: $(azure::network-security-group network-security-group-example-interface)
nic-ip-configuration
name: 'primary'
primary: true
end
nic-ip-configuration
name: "nic-ip-configuration-1"
end
tags: {
Name: "network-interface-example"
}
end
Attributes¶
Attribute | Description |
---|---|
name | Name of the Network Interface. (Required) |
resource-group | The Resource Group under which the Network Interface would reside. (Required) |
network | The Virtual Network the Network Interface is going be assigned with. (Required) |
subnet | One of the subnet name from the assigned Virtual Network. (Required) |
security-group | The Network Security Group to be assigned with the Network Interface. |
ip-forwarding | Enables IP forwarded. Used for NAT functionality. Defaults to false |
tags map | The Tags for the Network Interface. |
nic-ip-configuration set subresource | A list of IP Configurations for the Network Interface.
|
Outputs¶
Attribute | Description |
---|---|
id | The ID of the Network Interface. |