Interface VirtualMachine.DefinitionStages.WithSecondaryNetworkInterface
- All Known Subinterfaces:
VirtualMachine.DefinitionManaged, VirtualMachine.DefinitionManagedOrUnmanaged, VirtualMachine.DefinitionShared, VirtualMachine.DefinitionStages.WithCreate, VirtualMachine.DefinitionStages.WithFromImageCreateOptionsManaged, VirtualMachine.DefinitionStages.WithFromImageCreateOptionsManagedOrUnmanaged, VirtualMachine.DefinitionStages.WithFromImageCreateOptionsUnmanaged, VirtualMachine.DefinitionStages.WithLinuxCreateManaged, VirtualMachine.DefinitionStages.WithLinuxCreateManagedOrUnmanaged, VirtualMachine.DefinitionStages.WithLinuxCreateUnmanaged, VirtualMachine.DefinitionStages.WithManagedCreate, VirtualMachine.DefinitionStages.WithSecurityFeatures, VirtualMachine.DefinitionStages.WithSystemAssignedIdentityBasedAccessOrCreate, VirtualMachine.DefinitionStages.WithUnmanagedCreate, VirtualMachine.DefinitionStages.WithWindowsCreateManaged, VirtualMachine.DefinitionStages.WithWindowsCreateManagedOrUnmanaged, VirtualMachine.DefinitionStages.WithWindowsCreateUnmanaged, VirtualMachine.DefinitionUnmanaged
- Enclosing interface:
VirtualMachine.DefinitionStages
public static interface VirtualMachine.DefinitionStages.WithSecondaryNetworkInterface
The stage of a virtual machine definition allowing to specify additional network interfaces.
-
Method Summary
Modifier and TypeMethodDescriptionwithExistingSecondaryNetworkInterface(com.azure.resourcemanager.network.models.NetworkInterface networkInterface) Associates an existing network interface with the virtual machine.withNewSecondaryNetworkInterface(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, based on the provided definition.withNewSecondaryNetworkInterface(com.azure.resourcemanager.resources.fluentcore.model.Creatable<com.azure.resourcemanager.network.models.NetworkInterface> creatable, DeleteOptions deleteOptions) Creates a new network interface to associate with the virtual machine, based on the provided definition.
-
Method Details
-
withNewSecondaryNetworkInterface
VirtualMachine.DefinitionStages.WithCreate withNewSecondaryNetworkInterface(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, 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 interface- Returns:
- the next stage of the definition
-
withNewSecondaryNetworkInterface
VirtualMachine.DefinitionStages.WithCreate withNewSecondaryNetworkInterface(com.azure.resourcemanager.resources.fluentcore.model.Creatable<com.azure.resourcemanager.network.models.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
VirtualMachine.DefinitionStages.WithCreate withExistingSecondaryNetworkInterface(com.azure.resourcemanager.network.models.NetworkInterface networkInterface) 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 definition
-