你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

VirtualMachineNetworkInterfaceConfiguration Class

Describes a virtual machine network interface configurations.

All required parameters must be populated in order to send to server.

Constructor

VirtualMachineNetworkInterfaceConfiguration(*, name: str, tags: dict[str, str] | None = None, primary: bool | None = None, delete_option: str | _models.DeleteOptions | None = None, enable_accelerated_networking: bool | None = None, disable_tcp_state_tracking: bool | None = None, enable_fpga: bool | None = None, enable_ip_forwarding: bool | None = None, network_security_group: _models.SubResource | None = None, dns_settings: _models.VirtualMachineNetworkInterfaceDnsSettingsConfiguration | None = None, ip_configurations: list['_models.VirtualMachineNetworkInterfaceIPConfiguration'] | None = None, dscp_configuration: _models.SubResource | None = None, auxiliary_mode: str | _models.NetworkInterfaceAuxiliaryMode | None = None, auxiliary_sku: str | _models.NetworkInterfaceAuxiliarySku | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
name
str

The network interface configuration name. Required.

tags

Resource tags applied to the networkInterface address created by this NetworkInterfaceConfiguration.

Default value: None
primary

Specifies the primary network interface in case the virtual machine has more than 1 network interface.

Default value: None
delete_option

Specify what happens to the network interface when the VM is deleted. Known values are: "Delete" and "Detach".

Default value: None
enable_accelerated_networking

Specifies whether the network interface is accelerated networking-enabled.

Default value: None
disable_tcp_state_tracking

Specifies whether the network interface is disabled for tcp state tracking.

Default value: None
enable_fpga

Specifies whether the network interface is FPGA networking-enabled.

Default value: None
enable_ip_forwarding

Whether IP forwarding enabled on this NIC.

Default value: None
network_security_group

The network security group.

Default value: None
dns_settings

The dns settings to be applied on the network interfaces.

Default value: None
ip_configurations

Specifies the IP configurations of the network interface.

Default value: None
dscp_configuration
Default value: None
auxiliary_mode

Specifies whether the Auxiliary mode is enabled for the Network Interface resource. Known values are: "None", "AcceleratedConnections", and "Floating".

Default value: None
auxiliary_sku

Specifies whether the Auxiliary sku is enabled for the Network Interface resource. Known values are: "None", "A1", "A2", "A4", and "A8".

Default value: None

Variables

Name Description
name
str

The network interface configuration name. Required.

tags

Resource tags applied to the networkInterface address created by this NetworkInterfaceConfiguration.

primary

Specifies the primary network interface in case the virtual machine has more than 1 network interface.

delete_option

Specify what happens to the network interface when the VM is deleted. Known values are: "Delete" and "Detach".

enable_accelerated_networking

Specifies whether the network interface is accelerated networking-enabled.

disable_tcp_state_tracking

Specifies whether the network interface is disabled for tcp state tracking.

enable_fpga

Specifies whether the network interface is FPGA networking-enabled.

enable_ip_forwarding

Whether IP forwarding enabled on this NIC.

network_security_group

The network security group.

dns_settings

The dns settings to be applied on the network interfaces.

ip_configurations

Specifies the IP configurations of the network interface.

dscp_configuration
auxiliary_mode

Specifies whether the Auxiliary mode is enabled for the Network Interface resource. Known values are: "None", "AcceleratedConnections", and "Floating".

auxiliary_sku

Specifies whether the Auxiliary sku is enabled for the Network Interface resource. Known values are: "None", "A1", "A2", "A4", and "A8".