ScaleInPolicyArgs

data class ScaleInPolicyArgs(val forceDeletion: Output<Boolean>? = null, val prioritizeUnhealthyVMs: Output<Boolean>? = null, val rules: Output<List<Either<String, VirtualMachineScaleSetScaleInRules>>>? = null) : ConvertibleToJava<ScaleInPolicyArgs>

Describes a scale-in policy for a virtual machine scale set.

Constructors

Link copied to clipboard
constructor(forceDeletion: Output<Boolean>? = null, prioritizeUnhealthyVMs: Output<Boolean>? = null, rules: Output<List<Either<String, VirtualMachineScaleSetScaleInRules>>>? = null)

Properties

Link copied to clipboard
val forceDeletion: Output<Boolean>? = null

This property allows you to specify if virtual machines chosen for removal have to be force deleted when a virtual machine scale set is being scaled-in.(Feature in Preview)

Link copied to clipboard
val prioritizeUnhealthyVMs: Output<Boolean>? = null

This property allows you to prioritize the deletion of unhealthy and inactive VMs when a virtual machine scale set is being scaled-in.(Feature in Preview)

Link copied to clipboard
val rules: Output<List<Either<String, VirtualMachineScaleSetScaleInRules>>>? = null

The rules to be followed when scaling-in a virtual machine scale set.

Possible values are:

Default When a virtual machine scale set is scaled in, the scale set will first be balanced across zones if it is a zonal scale set. Then, it will be balanced across Fault Domains as far as possible. Within each Fault Domain, the virtual machines chosen for removal will be the newest ones that are not protected from scale-in.

OldestVM When a virtual machine scale set is being scaled-in, the oldest virtual machines that are not protected from scale-in will be chosen for removal. For zonal virtual machine scale sets, the scale set will first be balanced across zones. Within each zone, the oldest virtual machines that are not protected will be chosen for removal.

NewestVM When a virtual machine scale set is being scaled-in, the newest virtual machines that are not protected from scale-in will be chosen for removal. For zonal virtual machine scale sets, the scale set will first be balanced across zones. Within each zone, the newest virtual machines that are not protected will be chosen for removal.

Functions

Link copied to clipboard
open override fun toJava(): ScaleInPolicyArgs