Skip to content

Commit

Permalink
Add scaleDownMode to agent pool properties (#15124)
Browse files Browse the repository at this point in the history
* add scale down mode

* address comments

* fix markdown link

* update proper api version
  • Loading branch information
marwanad authored Jul 14, 2021
1 parent dddf56e commit 2ae26ef
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"vmSize": "Standard_DS1_v2",
"osType": "Linux",
"type": "VirtualMachineScaleSets",
"scaleDownMode": "Deallocate",
"availabilityZones": [
"1",
"2",
Expand Down Expand Up @@ -108,6 +109,7 @@
"provisioningState": "Succeeded",
"orchestratorVersion": "1.9.6",
"type": "VirtualMachineScaleSets",
"scaleDownMode": "Deallocate",
"availabilityZones": [
"1",
"2",
Expand Down Expand Up @@ -209,6 +211,7 @@
"provisioningState": "Creating",
"orchestratorVersion": "1.9.6",
"type": "VirtualMachineScaleSets",
"scaleDownMode": "Deallocate",
"availabilityZones": [
"1",
"2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2377,6 +2377,11 @@
"type": "boolean",
"description": "Whether to enable auto-scaler"
},
"scaleDownMode": {
"$ref": "#/definitions/ScaleDownMode",
"title": "The scale down mode to use when scaling the Agent Pool.",
"description": "This also effects the cluster autoscaler behavior. If not specified, it defaults to Delete."
},
"type": {
"$ref": "#/definitions/AgentPoolType"
},
Expand Down Expand Up @@ -4242,6 +4247,28 @@
"title": "The max price (in US Dollars) you are willing to pay for spot instances. Possible values are any decimal value greater than zero or -1 which indicates default price to be up-to on-demand.",
"description": "Possible values are any decimal value greater than zero or -1 which indicates the willingness to pay any on-demand price. For more details on spot pricing, see [spot VMs pricing](https://docs.microsoft.com/azure/virtual-machines/spot-vms#pricing)"
},
"ScaleDownMode": {
"type": "string",
"enum": [
"Delete",
"Deallocate"
],
"x-ms-enum": {
"name": "ScaleDownMode",
"modelAsString": true,
"values": [
{
"value": "Delete",
"description": "Create new instances during scale up and remove instances during scale down."
},
{
"value": "Deallocate",
"description": "Attempt to start deallocated instances (if they exist) during scale up and deallocate instances during scale down."
}
]
},
"description": "Describes how VMs are added to or removed from Agent Pools. See [billing states](https://docs.microsoft.com/azure/virtual-machines/states-billing)."
},
"ProximityPlacementGroupID": {
"type": "string",
"description": "The ID for Proximity Placement Group."
Expand Down

0 comments on commit 2ae26ef

Please sign in to comment.