Vertical Auto scaling of Azure VM

Rakesh Kumar 456 Reputation points
2024-05-22T10:09:00.9366667+00:00

Hi All,

we have an requirement to do the auto scaling for two Azure VM( one App and another SQL). Customer wants to get the resizing done once CPU or RAM utilization of VM reaches the 70%. like if a VM size is Standard_F2s_v2 and CPU or RAM utilization is more than or equal to 70% then automatically its size gets changed to Standard_F4s/Standard_F8 etc and once utilization gets down to 40% then VM size should get reduced like Standard_F8 => Standard_F4s => Standard_F2s_v2.

Any support on this will be highly appreciated.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,370 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sreeju Nair 12,026 Reputation points
    2024-05-22T10:55:31.4066667+00:00

    Thank you for asking your question in Microsoft Q & A.

    There are many challenges in vertical auto scaling such as the larger hardware needs to be available, it might require restarting. Due to these constraints, Autoscale does not support vertical scaling.

    Refer: https://learn.microsoft.com/en-us/azure/azure-monitor/autoscale/autoscale-overview#horizontal-vs-vertical-scaling

    However, you can automate vertical scaling with the help of Azure automation, where you create runbooks that can automatically resize VMs based on specific conditions, or use Azure Logic Apps.

    Hope this helps

    0 comments No comments

  2. Marcin Policht 15,460 Reputation points MVP
    2024-05-22T10:57:40.7+00:00

    Use a combination of Azure Automation and Azure Monitor.

    Details at https://petri.com/automatically-resize-azure-vm/

    Keep in mind that vertical scaling requires a VM restart, so this operation will involve downtime


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    0 comments No comments