NetworkInterfaceArgs

data class NetworkInterfaceArgs(val auxiliaryMode: Output<String>? = null, val auxiliarySku: Output<String>? = null, val dnsServers: Output<List<String>>? = null, val edgeZone: Output<String>? = null, val enableAcceleratedNetworking: Output<Boolean>? = null, val enableIpForwarding: Output<Boolean>? = null, val internalDnsNameLabel: Output<String>? = null, val ipConfigurations: Output<List<NetworkInterfaceIpConfigurationArgs>>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<NetworkInterfaceArgs>

Manages a Network Interface.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.network.Subnet;
import com.pulumi.azure.network.SubnetArgs;
import com.pulumi.azure.network.NetworkInterface;
import com.pulumi.azure.network.NetworkInterfaceArgs;
import com.pulumi.azure.network.inputs.NetworkInterfaceIpConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
.addressSpaces("10.0.0.0/16")
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.build());
var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.virtualNetworkName(exampleVirtualNetwork.name())
.addressPrefixes("10.0.2.0/24")
.build());
var exampleNetworkInterface = new NetworkInterface("exampleNetworkInterface", NetworkInterfaceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.ipConfigurations(NetworkInterfaceIpConfigurationArgs.builder()
.name("internal")
.subnetId(exampleSubnet.id())
.privateIpAddressAllocation("Dynamic")
.build())
.build());
}
}

Import

Network Interfaces can be imported using the resource id, e.g.

$ pulumi import azure:network/networkInterface:NetworkInterface example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/networkInterfaces/nic1

Constructors

Link copied to clipboard
fun NetworkInterfaceArgs(auxiliaryMode: Output<String>? = null, auxiliarySku: Output<String>? = null, dnsServers: Output<List<String>>? = null, edgeZone: Output<String>? = null, enableAcceleratedNetworking: Output<Boolean>? = null, enableIpForwarding: Output<Boolean>? = null, internalDnsNameLabel: Output<String>? = null, ipConfigurations: Output<List<NetworkInterfaceIpConfigurationArgs>>? = null, location: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): NetworkInterfaceArgs

Properties

Link copied to clipboard
val auxiliaryMode: Output<String>? = null

Specifies the auxiliary mode used to enable network high-performance feature on Network Virtual Appliances (NVAs). This feature offers competitive performance in Connections Per Second (CPS) optimization, along with improvements to handling large amounts of simultaneous connections. Possible values are AcceleratedConnections and Floating.

Link copied to clipboard
val auxiliarySku: Output<String>? = null

Specifies the SKU used for the network high-performance feature on Network Virtual Appliances (NVAs). Possible values are A1, A2, A4 and A8.

Link copied to clipboard
val dnsServers: Output<List<String>>? = null

A list of IP Addresses defining the DNS Servers which should be used for this Network Interface.

Link copied to clipboard
val edgeZone: Output<String>? = null

Specifies the Edge Zone within the Azure Region where this Network Interface should exist. Changing this forces a new Network Interface to be created.

Link copied to clipboard

Should Accelerated Networking be enabled? Defaults to false.

Link copied to clipboard
val enableIpForwarding: Output<Boolean>? = null

Should IP Forwarding be enabled? Defaults to false.

Link copied to clipboard
val internalDnsNameLabel: Output<String>? = null

The (relative) DNS Name used for internal communications between Virtual Machines in the same Virtual Network.

Link copied to clipboard

One or more ip_configuration blocks as defined below.

Link copied to clipboard
val location: Output<String>? = null

The location where the Network Interface should exist. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>? = null

The name of the Network Interface. Changing this forces a new resource to be created.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the Resource Group in which to create the Network Interface. Changing this forces a new resource to be created.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags to assign to the resource.