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.

name
Name of the IP Configuration. (Required)
public-ip-address
The Public IP Address to be associated with the IP Configuration.
private-ip-address
The Private IP Address to be associated with the IP Configuration.
nic-backend set subresource

The Load Balancer Backends associated with the IP Configuration.

backend-name
The name of the backend pool present on the Load Balancer to associate with the IP configuration. (Required)
load-balancer
The Load Balancer to associate the IP Configuration to. (Required)
nic-nat-rule set subresource

The Load Balancer Nat Rules associated with the IP Configuration.

load-balancer
The Load Balancer to associate the IP Configuration to. (Required)
inbound-nat-rule-name
The name of the Inbound Nat Rule present on the Load Balancer to associate with the IP configuration. (Required)
application-security-groups set
The set of application security groups to attach to the IP configuration

Outputs

Attribute Description
id The ID of the Network Interface.