Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VMScaleSet ScaleIn Policy #7034

Merged
merged 5 commits into from
Sep 9, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7482,6 +7482,27 @@
},
"description": "The configuration parameters used while performing a rolling upgrade."
},
"ScaleInPolicy": {
ashintre marked this conversation as resolved.
Show resolved Hide resolved
ashintre marked this conversation as resolved.
Show resolved Hide resolved
"properties": {
"rules": {
"type": "array",
"items": {
"type": "string",
"enum": [
"Default",
"OldestVM",
"NewestVM"
],
"x-ms-enum": {
"name": "VirtualMachineScaleSetScaleInRules",
"modelAsString": true
}
},
"description": "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>"
}
},
"description": "Describes a scale-in policy for a virtual machine scale set."
},
"ImageOSDisk": {
"properties": {
"osType": {
Expand Down Expand Up @@ -8607,6 +8628,10 @@
"additionalCapabilities": {
"$ref": "#/definitions/AdditionalCapabilities",
"description": "Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type."
},
"scaleInPolicy": {
"$ref": "#/definitions/ScaleInPolicy",
"description": "Specifies the scale-in policy that decides which virtual machines are chosen for removal when a Virtual Machine Scale Set is scaled-in."
}
},
"description": "Describes the properties of a Virtual Machine Scale Set."
Expand All @@ -8632,6 +8657,10 @@
"additionalCapabilities": {
"$ref": "#/definitions/AdditionalCapabilities",
"description": "Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type."
},
"scaleInPolicy": {
"$ref": "#/definitions/ScaleInPolicy",
"description": "Specifies the scale-in policy that decides which virtual machines are chosen for removal when a Virtual Machine Scale Set is scaled-in."
}
},
"description": "Describes the properties of a Virtual Machine Scale Set."
Expand Down