0

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,

vlauciani
  • 1,010
  • 2
  • 13
  • 27
  • Possible duplicate of [Is it possible to scale Azure app services programmatically](https://stackoverflow.com/questions/42747886/is-it-possible-to-scale-azure-app-services-programmatically) – Vova Bilyachat Jul 29 '19 at 05:03

2 Answers2

0

If you know when the CPU will increase, have you considered setting up autoscale based on a schedule?

https://learn.microsoft.com/en-us/azure/azure-monitor/learn/tutorial-autoscale-performance-schedule

Andy Shen
  • 962
  • 6
  • 7
0

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 ;-)

vlauciani
  • 1,010
  • 2
  • 13
  • 27