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

NetworkInterfaceReference Class

Describes a network interface reference.

Inheritance
azure.mgmt.compute.v2024_03_01.models._models_py3.SubResource
NetworkInterfaceReference

Constructor

NetworkInterfaceReference(*, id: str | None = None, primary: bool | None = None, delete_option: str | _models.DeleteOptions | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
id
str

Resource Id.

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".

Variables

Name Description
id
str

Resource Id.

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".