Cloud Computing

Azure Autoscaling with VMSS and Managed Disks, Part 1: Concepts

In today’s Ask the Admin, I’ll introduce you to Azure Autoscale, and how Virtual Machines Scale Sets (VMSS) and Managed Disks, two Azure features that reached general availability in February, make using and managing Autoscale easier.



Sponsored Content

What is “Inside Microsoft Teams”?

“Inside Microsoft Teams” is a webcast series, now in Season 4 for IT pros hosted by Microsoft Product Manager, Stephen Rose. Stephen & his guests comprised of customers, partners, and real-world experts share best practices of planning, deploying, adopting, managing, and securing Teams. You can watch any episode at your convenience, find resources, blogs, reviews of accessories certified for Teams, bonus clips, and information regarding upcoming live broadcasts. Our next episode, “Polaris Inc., and Microsoft Teams- Reinventing how we work and play” will be airing on Oct. 28th from 10-11am PST.

Azure Autoscale is a great solution for automatically scaling out cloud-based compute resources, such as virtual machines (VMs) and websites, when demand increases. It works by utilizing a set of identically configured VMs placed behind a load balancer so that they appear as one entity. A diagnostic agent on each VM collects utilization data, which Microsoft Insights uses to build a picture of the load across the VMs. If utilization goes above a predefined threshold, additional VMs are started to help manage the increased demand. And when demand falls, VMs are stopped.

But Autoscale requires organizations to pre-provision enough identical VMs to meet demand at peak level, add them to an availability set, and to think about how VMs are removed and added while retaining high availability using update and fault domains.

Virtual Machines Scale Sets

Virtual Machines Scale Sets (VMSS) aim to make using Autoscale easier, by allowing you to focus on how many VMs you want in a scale set, and quickly deploy identically configured VMs, while providing full integration with Azure Autoscale and Load Balancer, resulting in a dynamically scalable compute layer.

Virtual Machine Scale Sets in Azure Resource Manager (Image Credit: Microsoft)
Virtual Machine Scale Sets in Azure Resource Manager (Image Credit: Microsoft)

It is possible to automate the deployment of identical VMs in Azure without VMSS, but requires some in-depth knowledge of JSON templates or PowerShell scripting, and more administrative effort. Multiple resources can be deployed using Azure Resource Loops in JSON templates. For instance, 10 VMs, 10 network interfaces, 2 storage accounts, but then the resources must be correlated with each other to make a working system. But VM Scale Sets are resources that can be managed as a single entity using Azure Resource Manager (ARM).

Scale Sets can contain up to 1,000 VMs, and a minimum, maximum, and default number of VMs can be defined for each set when Autoscaling is enabled. Instead of overprovisioning, as is required by Azure Autoscale when used without VMSS, just the VMs – or instances as Azure refers to them – that are required for an average load can be initially provisioned. And unlike creating VMs using Azure Resource Loops, VMSS sends a single call to the Azure Compute Resource Provider to optimize the VM provisioning process.

Horizontal Versus Vertical Scaling

When creating a VMSS with Autoscale, horizontal scaling is used by default, which involves increasing or decreasing the number of available VMs for a workload. Sometimes this is referred to as scale in and scale out. VMSS can also be configured to use vertical scaling, where adding or removing memory, storage, and CPU cores are used to cope with changes in demand. This is also known as scale up and scale down.

Managed Disks

I mentioned storage accounts in the list of resources above, and if you’ve already worked with Azure, you’ll know that until recently, this infrastructure piece was a requirement before virtual hard disks could be created. Managed Disks hand over the provisioning of storage accounts to Azure, leaving you to specify a few parameters, such as disk name, size, and storage account type. For more information on Managed Disks, see What Are Azure Managed Disks? on Petri.

In part 2 of this series, I’ll show you how to use VMSS and Managed Disks to quickly deploy a set of VMs with autoscaling in Azure.

Related Topics:


Don't have a login but want to join the conversation? Sign up for a Petri Account

Comments (0)

Leave a Reply

IT consultant, Contributing Editor @PetriFeed, and trainer @Pluralsight. All about Microsoft, Office 365, Azure, and Windows Server.
External Sharing and Guest User Access in Microsoft 365 and Teams

This eBook will dive into policy considerations you need to make when creating and managing guest user access to your Teams network, as well as the different layers of guest access and the common challenges that accompany a more complicated Microsoft 365 infrastructure.

You will learn:

  • Who should be allowed to be invited as a guest?
  • What type of guests should be able to access files in SharePoint and OneDrive?
  • How should guests be offboarded?
  • How should you determine who has access to sensitive information in your environment?

Sponsored by: