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.WithPrimaryNetworkInterface
The stage of a virtual machine definition allowing to specify the primary network interface.
-
Method Summary
Modifier and TypeMethodDescriptionwithExistingPrimaryNetworkInterface(com.azure.resourcemanager.network.models.NetworkInterface networkInterface) Associates an existing network interface with the virtual machine as its primary network interface.withNewPrimaryNetworkInterface(com.azure.resourcemanager.resources.fluentcore.model.Creatable<com.azure.resourcemanager.network.models.NetworkInterface> creatable) Creates a new network interface to associate with the virtual machine as its primary network interface, based on the provided definition.
-
Method Details
-
withNewPrimaryNetworkInterface
VirtualMachine.DefinitionStages.WithProximityPlacementGroup withNewPrimaryNetworkInterface(com.azure.resourcemanager.resources.fluentcore.model.Creatable<com.azure.resourcemanager.network.models.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(com.azure.resourcemanager.network.models.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
-