Share via


ScaleInPolicy Constructors

Definition

Overloads

ScaleInPolicy()

Initializes a new instance of the ScaleInPolicy class.

ScaleInPolicy(IList<String>, Nullable<Boolean>)

Initializes a new instance of the ScaleInPolicy class.

ScaleInPolicy()

Initializes a new instance of the ScaleInPolicy class.

public ScaleInPolicy ();
Public Sub New ()

Applies to

ScaleInPolicy(IList<String>, Nullable<Boolean>)

Initializes a new instance of the ScaleInPolicy class.

public ScaleInPolicy (System.Collections.Generic.IList<string> rules = default, bool? forceDeletion = default);
new Microsoft.Azure.Management.Compute.Models.ScaleInPolicy : System.Collections.Generic.IList<string> * Nullable<bool> -> Microsoft.Azure.Management.Compute.Models.ScaleInPolicy
Public Sub New (Optional rules As IList(Of String) = Nothing, Optional forceDeletion As Nullable(Of Boolean) = Nothing)

Parameters

rules
IList<String>

The rules to be followed when scaling-in a virtual machine scale set. <br><br> Possible values are: <br><br> 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. <br><br> 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. <br><br> 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. <br><br>

forceDeletion
Nullable<Boolean>

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)

Applies to