Load balancing Services on a Single VM Using VMSS to Decrease Costs

Travis Haviv 20 Reputation points
2023-05-18T11:57:30.5966667+00:00

Is it possible to use VMSS to load balance services on a single VM and scale out instead of scheduling a scale up with the associated downtime and complexity that introduces? Currently, Azure Advisor suggests resizing several VMs, but I am not a fan of scheduling a PS script to run with an automation runbook. I am exploring ways to decrease costs and would like to know if this is feasible.

If you need further clarification, please let me know. I have found conversations on this topic to be sparse online. Thank you.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,185 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
351 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jackson Martins 9,646 Reputation points MVP
    2023-05-18T12:52:26.97+00:00

    Hi @Travis Haviv

    A scale set applies to a group of VMs, not a single VM. VMSS are designed to provide scale-out capabilities, which means adding more instances of the same VM to distribute load and maintain high availability. This is not the same as scaling up a single VM, which refers to increasing its resources (CPU, RAM, disk space, etc.) to handle higher loads.

    To change the size of the vm on demand, you will need to restart the vm, which in this case will have downtime.

    Get in touch if you need more help with this issue.

    --please don't forget to "[Accept the answer]" if the reply is helpful--

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful