VirtualMachineScaleSet.DefinitionStages.WithVMPriority Interface

public static interface VirtualMachineScaleSet.DefinitionStages.WithVMPriority

The stage of the virtual machine scale set definition allowing to specify priority for vms in the scale-set.

Method Summary

Modifier and Type Method and Description
abstract WithCreate withLowPriorityVirtualMachine()

Specify that virtual machines in the scale set should be low priority VMs.

abstract WithCreate withLowPriorityVirtualMachine(VirtualMachineEvictionPolicyTypes policy)

Specify that virtual machines in the scale set should be low priority VMs with provided eviction policy.

abstract WithCreate withSpotPriorityVirtualMachine()

Specify that virtual machines in the scale set should be spot priority VMs.

abstract WithCreate withSpotPriorityVirtualMachine(VirtualMachineEvictionPolicyTypes policy)

Specify that virtual machines in the scale set should be spot priority VMs with provided eviction policy.

abstract WithCreate withVirtualMachinePriority(VirtualMachinePriorityTypes priority)

Specifies the priority of the virtual machines in the scale set.

Method Details

withLowPriorityVirtualMachine

public abstract VirtualMachineScaleSet.DefinitionStages.WithCreate withLowPriorityVirtualMachine()

Specify that virtual machines in the scale set should be low priority VMs.

Returns:

the next stage of the definition

withLowPriorityVirtualMachine

public abstract VirtualMachineScaleSet.DefinitionStages.WithCreate withLowPriorityVirtualMachine(VirtualMachineEvictionPolicyTypes policy)

Specify that virtual machines in the scale set should be low priority VMs with provided eviction policy.

Parameters:

policy - eviction policy for the virtual machines in the scale set.

Returns:

the next stage of the definition

withSpotPriorityVirtualMachine

public abstract VirtualMachineScaleSet.DefinitionStages.WithCreate withSpotPriorityVirtualMachine()

Specify that virtual machines in the scale set should be spot priority VMs.

Returns:

the next stage of the definition

withSpotPriorityVirtualMachine

public abstract VirtualMachineScaleSet.DefinitionStages.WithCreate withSpotPriorityVirtualMachine(VirtualMachineEvictionPolicyTypes policy)

Specify that virtual machines in the scale set should be spot priority VMs with provided eviction policy.

Parameters:

policy - eviction policy for the virtual machines in the scale set.

Returns:

the next stage of the definition

withVirtualMachinePriority

public abstract VirtualMachineScaleSet.DefinitionStages.WithCreate withVirtualMachinePriority(VirtualMachinePriorityTypes priority)

Specifies the priority of the virtual machines in the scale set.

Parameters:

priority - the priority

Returns:

the next stage of the definition

Applies to