Share via


ScaleSetEvictionPolicy Class

public final class ScaleSetEvictionPolicy
extends ExpandableStringEnum<ScaleSetEvictionPolicy>

The Virtual Machine Scale Set eviction policy. The eviction policy specifies what to do with the VM when it is evicted. The default is Delete. For more information about eviction see [spot VMs](https://docs.microsoft.com/azure/virtual-machines/spot-vms).

Field Summary

Modifier and Type Field and Description
static final ScaleSetEvictionPolicy DEALLOCATE

Nodes in the underlying Scale Set of the node pool are set to the stopped-deallocated state upon eviction.

static final ScaleSetEvictionPolicy DELETE

Nodes in the underlying Scale Set of the node pool are deleted when they're evicted.

Constructor Summary

Constructor Description
ScaleSetEvictionPolicy()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ScaleSetEvictionPolicy value.

Method Summary

Modifier and Type Method and Description
static ScaleSetEvictionPolicy fromString(String name)

Creates or finds a ScaleSetEvictionPolicy from its string representation.

static Collection<ScaleSetEvictionPolicy> values()

Gets known ScaleSetEvictionPolicy values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DEALLOCATE

public static final ScaleSetEvictionPolicy DEALLOCATE

Nodes in the underlying Scale Set of the node pool are set to the stopped-deallocated state upon eviction. Nodes in the stopped-deallocated state count against your compute quota and can cause issues with cluster scaling or upgrading.

DELETE

public static final ScaleSetEvictionPolicy DELETE

Nodes in the underlying Scale Set of the node pool are deleted when they're evicted.

Constructor Details

ScaleSetEvictionPolicy

@Deprecated
public ScaleSetEvictionPolicy()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ScaleSetEvictionPolicy value.

Method Details

fromString

public static ScaleSetEvictionPolicy fromString(String name)

Creates or finds a ScaleSetEvictionPolicy from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ScaleSetEvictionPolicy.

values

public static Collection<ScaleSetEvictionPolicy> values()

Gets known ScaleSetEvictionPolicy values.

Returns:

known ScaleSetEvictionPolicy values.

Applies to