az aks nodepool auto-scale
Note
This reference is part of the aks-preview extension for the Azure CLI (version 2.76.0 or higher). The extension will automatically install the first time you run an az aks nodepool auto-scale command. Learn more about extensions.
Commands to manage nodepool virtualMachineProfile.scale.autoscale.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az aks nodepool auto-scale add |
Add a new autoscale profile to a VirtualMachines agentpool in the managed Kubernetes cluster. |
Extension | GA |
| az aks nodepool auto-scale delete |
Delete an existing autoscale profile from a VirtualMachines agentpool in the managed Kubernetes cluster. |
Extension | GA |
| az aks nodepool auto-scale update |
Update an existing autoscale profile of a VirtualMachines agentpool in the managed Kubernetes cluster. |
Extension | GA |
az aks nodepool auto-scale add
Add a new autoscale profile to a VirtualMachines agentpool in the managed Kubernetes cluster.
az aks nodepool auto-scale add --cluster-name
--max-count
--min-count
--name --nodepool-name
--node-vm-size
--resource-group
[--acquire-policy-token]
[--change-reference]
[--no-wait]
Examples
Add an autoscale profile to a VirtualMachines agentpool
az aks nodepool auto-scale add -g MyResourceGroup --cluster-name MyMC --name MyNodePool --node-vm-size Standard_D2s_v3 --min-count 3 --max-count 5
Required Parameters
The cluster name.
Maximum number of nodes for autoscaling.
Minimum number of nodes for autoscaling.
The node pool name.
VM size for the autoscale profile.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az aks nodepool auto-scale delete
Delete an existing autoscale profile from a VirtualMachines agentpool in the managed Kubernetes cluster.
az aks nodepool auto-scale delete --cluster-name
--current-node-vm-size
--name --nodepool-name
--resource-group
[--acquire-policy-token]
[--change-reference]
[--no-wait]
Examples
Delete an autoscale profile from a VirtualMachines agentpool
az aks nodepool auto-scale delete -g MyResourceGroup --cluster-name MyMC --name MyNodePool --current-node-vm-size Standard_D2s_v3
Required Parameters
The cluster name.
The VM size of the autoscale profile to be deleted.
The node pool name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az aks nodepool auto-scale update
Update an existing autoscale profile of a VirtualMachines agentpool in the managed Kubernetes cluster.
az aks nodepool auto-scale update --cluster-name
--current-node-vm-size
--name --nodepool-name
--resource-group
[--acquire-policy-token]
[--change-reference]
[--max-count]
[--min-count]
[--no-wait]
[--node-vm-size]
Examples
Update an existing autoscale profile in a VirtualMachines agentpool
az aks nodepool auto-scale update -g MyResourceGroup --cluster-name MyMC --name MyNodePool --current-node-vm-size Standard_D2s_v3 --node-vm-size Standard_D8s_v3 --min-count 2 --max-count 4
Required Parameters
The cluster name.
The current VM size of the autoscale profile to be updated.
The node pool name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Maximum number of nodes for autoscaling.
Minimum number of nodes for autoscaling.
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Default value: | False |
The new VM size for the autoscale profile.
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |