CmdID / az / az batchai / az batchai cluster
az batchai cluster auto-scale
Set auto-scale parameters for a cluster. Azure CLI reference
1 example 2 options Its page in the Azure CLI reference
Examples
Make a cluster to auto scale between 0 and 10 nodes depending on number of queued and running jobs.
az batchai cluster auto-scale -g MyResourceGroup -w MyWorkspace -n MyCluster --min 0 --max 10Identify-gName of resource group.-wName of workspace.-nName of cluster.--minMinimum number of nodes.--maxMaximum number of nodes.Options
--maxMaximum number of nodes.--minMinimum number of nodes.