Interface VirtualMachine.DefinitionStages.WithPrimaryNetworkInterface
-
- All Known Subinterfaces:
VirtualMachine.DefinitionManaged,VirtualMachine.DefinitionManagedOrUnmanaged,VirtualMachine.DefinitionShared,VirtualMachine.DefinitionStages.WithNetwork,VirtualMachine.DefinitionUnmanaged
- Enclosing interface:
- VirtualMachine.DefinitionStages
public static interface VirtualMachine.DefinitionStages.WithPrimaryNetworkInterfaceThe stage of a virtual machine definition allowing to specify the primary network interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VirtualMachine.DefinitionStages.WithProximityPlacementGroupwithExistingPrimaryNetworkInterface(NetworkInterface networkInterface)Associates an existing network interface with the virtual machine as its primary network interface.VirtualMachine.DefinitionStages.WithProximityPlacementGroupwithNewPrimaryNetworkInterface(Creatable<NetworkInterface> creatable)Creates a new network interface to associate with the virtual machine as its primary network interface, based on the provided definition.
-
-
-
Method Detail
-
withNewPrimaryNetworkInterface
VirtualMachine.DefinitionStages.WithProximityPlacementGroup withNewPrimaryNetworkInterface(Creatable<NetworkInterface> creatable)
Creates a new network interface to associate with the virtual machine as its primary network interface, based on the provided definition.- Parameters:
creatable- a creatable definition for a new network interface- Returns:
- the next stage of the definition
-
withExistingPrimaryNetworkInterface
VirtualMachine.DefinitionStages.WithProximityPlacementGroup withExistingPrimaryNetworkInterface(NetworkInterface networkInterface)
Associates an existing network interface with the virtual machine as its primary network interface.- Parameters:
networkInterface- an existing network interface- Returns:
- the next stage of the definition
-
-