NetworkInterfaceReference Class

Describes a network interface reference.

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

Constructor

NetworkInterfaceReference(*, id: Optional[str] = None, primary: Optional[bool] = None, delete_option: Optional[Union[str, azure.mgmt.compute.v2021_07_01.models._compute_management_client_enums.DeleteOptions]] = None, **kwargs)

Parameters

id
str
Required

Resource Id.

primary
bool
Required

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

delete_option
str or DeleteOptions
Required

Specify what happens to the network interface when the VM is deleted. Possible values include: "Delete", "Detach".