Search code examples
azurescalingautoscaling

Azure autoscale - anticipate autoscale manually


We have an autoscale based on CPU percentage average.

Sometimes I know when the CPU will increase and I'd like to anticipate the VM deploy.

Is there a way to start the autoscale manually (but NOT disabling autoscale) using, for example, an API call?

Thank you,


Solution

  • I found a simple soluzione using Azure CLI:

    This is the command:

    az login
    . . .
    . . .
    az vmss scale --resource-group myResourceGroup --name myScaleSet --new-capacity 4
    

    very easy ;-)