Interface VirtualMachine.UpdateStages.WithSecondaryNetworkInterface
- All Known Subinterfaces:
VirtualMachine.Update,VirtualMachine.UpdateStages.WithSystemAssignedIdentityBasedAccessOrUpdate
- Enclosing interface:
- VirtualMachine.UpdateStages
public static interface VirtualMachine.UpdateStages.WithSecondaryNetworkInterface
The stage of a virtual machine update allowing to specify additional network interfaces.
-
Method Summary
Modifier and TypeMethodDescriptionwithExistingSecondaryNetworkInterface(NetworkInterface networkInterface) Associates an existing network interface with the virtual machine.Creates a new network interface to associate with the virtual machine.withNewSecondaryNetworkInterface(Creatable<NetworkInterface> creatable, DeleteOptions deleteOptions) Creates a new network interface to associate with the virtual machine, based on the provided definition.Removes a secondary network interface from the virtual machine.
-
Method Details
-
withNewSecondaryNetworkInterface
Creates a new network interface to associate with the virtual machine.Note this method's effect is additive, i.e. each time it is used, the new secondary network interface added to the virtual machine.
- Parameters:
creatable- a creatable definition for a new network interface- Returns:
- the next stage of the update
-
withNewSecondaryNetworkInterface
VirtualMachine.Update withNewSecondaryNetworkInterface(Creatable<NetworkInterface> creatable, DeleteOptions deleteOptions) Creates a new network interface to associate with the virtual machine, based on the provided definition.Note this method's effect is additive, i.e. each time it is used, a new secondary network interface added to the virtual machine.
- Parameters:
creatable- a creatable definition for a new network interfacedeleteOptions- the delete options for the secondary network interface- Returns:
- the next stage of the definition
-
withExistingSecondaryNetworkInterface
Associates an existing network interface with the virtual machine.Note this method's effect is additive, i.e. each time it is used, the new secondary network interface added to the virtual machine.
- Parameters:
networkInterface- an existing network interface- Returns:
- the next stage of the update
-
withoutSecondaryNetworkInterface
Removes a secondary network interface from the virtual machine.- Parameters:
name- the name of a secondary network interface to remove- Returns:
- the next stage of the update
-