Skip to content

Commit

Permalink
Add VMScaleSet ScaleIn Policy (#7034)
Browse files Browse the repository at this point in the history
* Add VMScaleSet ScaleIn Policy

Adds VMScaleSet ScaleIn policy that is supported with the 2019-03-01 header but not included in Swagger

* Update compute.json

Fix whitespacing

* Update compute.json

Fix whitespace

* Update compute.json

Fix indentation

* Fix indentation

Fix indentation
  • Loading branch information
ashintre authored and michaeljqzq committed Sep 9, 2019
1 parent 8b8549f commit 7297c60
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7531,6 +7531,27 @@
},
"description": "The configuration parameters used while performing a rolling upgrade."
},
"ScaleInPolicy": {
"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 @@ -8664,6 +8685,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 @@ -8689,6 +8714,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

0 comments on commit 7297c60

Please sign in to comment.