Interface VirtualMachine.DefinitionStages.WithNetwork
-
- All Superinterfaces:
VirtualMachine.DefinitionStages.WithPrimaryNetworkInterface
- All Known Subinterfaces:
VirtualMachine.DefinitionManaged,VirtualMachine.DefinitionManagedOrUnmanaged,VirtualMachine.DefinitionShared,VirtualMachine.DefinitionUnmanaged
- Enclosing interface:
- VirtualMachine.DefinitionStages
public static interface VirtualMachine.DefinitionStages.WithNetwork extends VirtualMachine.DefinitionStages.WithPrimaryNetworkInterface
The stage of a virtual machine definition allowing to specify a virtual network with the new primary network interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VirtualMachine.DefinitionStages.WithSubnetwithExistingPrimaryNetwork(Network network)Associates an existing virtual network with the virtual machine's primary network interface.VirtualMachine.DefinitionStages.WithPrivateIPwithNewPrimaryNetwork(Creatable<Network> creatable)Creates a new virtual network to associate with the virtual machine's primary network interface, based on the provided definition.VirtualMachine.DefinitionStages.WithPrivateIPwithNewPrimaryNetwork(String addressSpace)Creates a new virtual network to associate with the virtual machine's primary network interface.-
Methods inherited from interface com.azure.resourcemanager.compute.models.VirtualMachine.DefinitionStages.WithPrimaryNetworkInterface
withExistingPrimaryNetworkInterface, withNewPrimaryNetworkInterface
-
-
-
-
Method Detail
-
withNewPrimaryNetwork
VirtualMachine.DefinitionStages.WithPrivateIP withNewPrimaryNetwork(Creatable<Network> creatable)
Creates a new virtual network to associate with the virtual machine's primary network interface, based on the provided definition.- Parameters:
creatable- a creatable definition for a new virtual network- Returns:
- the next stage of the definition
-
withNewPrimaryNetwork
VirtualMachine.DefinitionStages.WithPrivateIP withNewPrimaryNetwork(String addressSpace)
Creates a new virtual network to associate with the virtual machine's primary network interface.The virtual network will be created in the same resource group and region as of virtual machine, it will be created with the specified address space and a default subnet covering the entirety of the network IP address space.
- Parameters:
addressSpace- the address space for the virtual network- Returns:
- the next stage of the definition
-
withExistingPrimaryNetwork
VirtualMachine.DefinitionStages.WithSubnet withExistingPrimaryNetwork(Network network)
Associates an existing virtual network with the virtual machine's primary network interface.- Parameters:
network- an existing virtual network- Returns:
- the next stage of the definition
-
-