Delen via


NetworkInterface Constructors

Definition

Overloads

NetworkInterface()

Initializes a new instance of the NetworkInterface class.

NetworkInterface(String, String, String, String, IDictionary<String, String>, ExtendedLocation, SubResource, NetworkSecurityGroup, PrivateEndpoint, IList<NetworkInterfaceIPConfiguration>, IList<NetworkInterfaceTapConfiguration>, NetworkInterfaceDnsSettings, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, IList<String>, SubResource, String, String, String, String, PrivateLinkService, String, String, String)

Initializes a new instance of the NetworkInterface class.

NetworkInterface()

Initializes a new instance of the NetworkInterface class.

public NetworkInterface ();
Public Sub New ()

Applies to

NetworkInterface(String, String, String, String, IDictionary<String, String>, ExtendedLocation, SubResource, NetworkSecurityGroup, PrivateEndpoint, IList<NetworkInterfaceIPConfiguration>, IList<NetworkInterfaceTapConfiguration>, NetworkInterfaceDnsSettings, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, IList<String>, SubResource, String, String, String, String, PrivateLinkService, String, String, String)

Initializes a new instance of the NetworkInterface class.

public NetworkInterface (string id = default, string name = default, string type = default, string location = default, System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.Network.Models.ExtendedLocation extendedLocation = default, Microsoft.Azure.Management.Network.Models.SubResource virtualMachine = default, Microsoft.Azure.Management.Network.Models.NetworkSecurityGroup networkSecurityGroup = default, Microsoft.Azure.Management.Network.Models.PrivateEndpoint privateEndpoint = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.NetworkInterfaceIPConfiguration> ipConfigurations = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.NetworkInterfaceTapConfiguration> tapConfigurations = default, Microsoft.Azure.Management.Network.Models.NetworkInterfaceDnsSettings dnsSettings = default, string macAddress = default, bool? primary = default, bool? vnetEncryptionSupported = default, bool? enableAcceleratedNetworking = default, bool? disableTcpStateTracking = default, bool? enableIPForwarding = default, System.Collections.Generic.IList<string> hostedWorkloads = default, Microsoft.Azure.Management.Network.Models.SubResource dscpConfiguration = default, string resourceGuid = default, string provisioningState = default, string workloadType = default, string nicType = default, Microsoft.Azure.Management.Network.Models.PrivateLinkService privateLinkService = default, string migrationPhase = default, string auxiliaryMode = default, string etag = default);
new Microsoft.Azure.Management.Network.Models.NetworkInterface : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Network.Models.ExtendedLocation * Microsoft.Azure.Management.Network.Models.SubResource * Microsoft.Azure.Management.Network.Models.NetworkSecurityGroup * Microsoft.Azure.Management.Network.Models.PrivateEndpoint * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.NetworkInterfaceIPConfiguration> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.NetworkInterfaceTapConfiguration> * Microsoft.Azure.Management.Network.Models.NetworkInterfaceDnsSettings * string * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * System.Collections.Generic.IList<string> * Microsoft.Azure.Management.Network.Models.SubResource * string * string * string * string * Microsoft.Azure.Management.Network.Models.PrivateLinkService * string * string * string -> Microsoft.Azure.Management.Network.Models.NetworkInterface
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional location As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional virtualMachine As SubResource = Nothing, Optional networkSecurityGroup As NetworkSecurityGroup = Nothing, Optional privateEndpoint As PrivateEndpoint = Nothing, Optional ipConfigurations As IList(Of NetworkInterfaceIPConfiguration) = Nothing, Optional tapConfigurations As IList(Of NetworkInterfaceTapConfiguration) = Nothing, Optional dnsSettings As NetworkInterfaceDnsSettings = Nothing, Optional macAddress As String = Nothing, Optional primary As Nullable(Of Boolean) = Nothing, Optional vnetEncryptionSupported As Nullable(Of Boolean) = Nothing, Optional enableAcceleratedNetworking As Nullable(Of Boolean) = Nothing, Optional disableTcpStateTracking As Nullable(Of Boolean) = Nothing, Optional enableIPForwarding As Nullable(Of Boolean) = Nothing, Optional hostedWorkloads As IList(Of String) = Nothing, Optional dscpConfiguration As SubResource = Nothing, Optional resourceGuid As String = Nothing, Optional provisioningState As String = Nothing, Optional workloadType As String = Nothing, Optional nicType As String = Nothing, Optional privateLinkService As PrivateLinkService = Nothing, Optional migrationPhase As String = Nothing, Optional auxiliaryMode As String = Nothing, Optional etag As String = Nothing)

Parameters

id
String

Resource ID.

name
String

Resource name.

type
String

Resource type.

location
String

Resource location.

tags
IDictionary<String,String>

Resource tags.

extendedLocation
ExtendedLocation

The extended location of the network interface.

virtualMachine
SubResource

The reference to a virtual machine.

networkSecurityGroup
NetworkSecurityGroup

The reference to the NetworkSecurityGroup resource.

privateEndpoint
PrivateEndpoint

A reference to the private endpoint to which the network interface is linked.

ipConfigurations
IList<NetworkInterfaceIPConfiguration>

A list of IPConfigurations of the network interface.

tapConfigurations
IList<NetworkInterfaceTapConfiguration>

A list of TapConfigurations of the network interface.

dnsSettings
NetworkInterfaceDnsSettings

The DNS settings in network interface.

macAddress
String

The MAC address of the network interface.

primary
Nullable<Boolean>

Whether this is a primary network interface on a virtual machine.

vnetEncryptionSupported
Nullable<Boolean>

Whether the virtual machine this nic is attached to supports encryption.

enableAcceleratedNetworking
Nullable<Boolean>

If the network interface is configured for accelerated networking. Not applicable to VM sizes which require accelerated networking.

disableTcpStateTracking
Nullable<Boolean>

Indicates whether to disable tcp state tracking.

enableIPForwarding
Nullable<Boolean>

Indicates whether IP forwarding is enabled on this network interface.

hostedWorkloads
IList<String>

A list of references to linked BareMetal resources.

dscpConfiguration
SubResource

A reference to the dscp configuration to which the network interface is linked.

resourceGuid
String

The resource GUID property of the network interface resource.

provisioningState
String

The provisioning state of the network interface resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'

workloadType
String

WorkloadType of the NetworkInterface for BareMetal resources

nicType
String

Type of Network Interface resource. Possible values include: 'Standard', 'Elastic'

privateLinkService
PrivateLinkService

Privatelinkservice of the network interface resource.

migrationPhase
String

Migration phase of Network Interface resource. Possible values include: 'None', 'Prepare', 'Commit', 'Abort', 'Committed'

auxiliaryMode
String

Auxiliary mode of Network Interface resource. Possible values include: 'None', 'MaxConnections', 'Floating'

etag
String

A unique read-only string that changes whenever the resource is updated.

Applies to