# Azure Virtual Machine Scale Sets

Azure Virtual Machine Scale Sets is an Azure compute service for deploying, managing, and scaling groups of Linux or Windows virtual machines.

Cloud service · Azure. Updated 2026-11-30. Page: https://blowstack.com/tools/cloud-services-hub/azure-virtual-machine-scale-sets

> Use a scale set to add or remove VM instances as demand changes and distribute them across availability zones or fault domains. Choose Flexible orchestration for standard Azure VMs with per-instance control, or Uniform orchestration for a fleet managed primarily through a shared VM profile.

## 8 key features of Azure Virtual Machine Scale Sets

1. **Flexible and Uniform orchestration**: Flexible orchestration uses standard Azure VMs and supports individual VM management. Uniform orchestration manages scale-set-specific instances through a common profile and scale set VM APIs.
2. **Metric-based and scheduled autoscaling**: Use Azure Monitor Autoscale to adjust instance count within configured limits. Drive rules with a workload metric such as average CPU utilization, or schedule additional capacity before a known traffic peak.
3. **Availability zone and fault-domain placement**: Distribute instances across availability zones where supported, or use fault-domain placement to reduce exposure to shared infrastructure failures. Placement behavior and limits depend on the orchestration mode and configuration.
4. **Mixed VM sizes and priorities**: With eligible Flexible configurations, use Instance Mix to specify multiple VM sizes and select an allocation strategy based on price or capacity. Flexible scale sets can also combine regular-priority and Spot instances.
5. **Controlled scale-in**: Choose the default selection policy or prefer newer or older VMs for removal, subject to zone-balancing behavior. Protect specific instances from scale-in when they should not be selected for removal.
6. **Health-based automatic repairs**: Enable automatic instance repairs and configure a supported health source, such as the Application Health extension. Allow enough grace time for the application to initialize so that a slow startup does not trigger unnecessary repairs.
7. **Coordinated VM upgrades**: Use a supported upgrade policy to control how model changes reach existing instances. A rolling policy applies updates in batches, and eligible configurations can also use automatic OS image upgrades.
8. **Image-based provisioning**: Provision instances from a Marketplace image or a versioned custom image in Azure Compute Gallery. Use extensions for environment-specific setup that should not be baked into the image.

## Where Azure Virtual Machine Scale Sets is used

1. **Stateless web and API tiers**: Run application replicas across zones behind Azure Application Gateway, and add instances as traffic grows. Store session state outside the VMs so requests can reach any healthy replica.
2. **Queue-driven background processing**: Scale workers on queue backlog and make jobs safe to retry if an instance is removed before it finishes processing.
3. **Interruptible batch compute**: Use Spot instances for checkpointed rendering, simulations, or data transformations, and retain regular-priority capacity for work that must continue when Spot VMs are evicted.
4. **Quorum-based services**: Use Flexible orchestration to place database or coordination nodes across fault domains or zones while retaining per-VM control. Manage replica membership and removal through the application rather than allowing CPU-based scale-in to remove voting members.
5. **Self-hosted build and test workers**: Provision workers from a versioned image with the required SDKs and build tools. Publish artifacts to external storage so workers can be replaced without losing build outputs.

## How Azure Virtual Machine Scale Sets is priced

- **Pay-as-you-go compute**: There is no separate scale set management fee. Regular-priority VM instances are billed at applicable Azure VM rates, while disks, networking, and attached services are billed separately.
- **Azure Spot Virtual Machines**: Spot instances use discounted rates for spare Azure capacity and can be evicted when Azure needs the capacity or the configured maximum price is exceeded. Use them for workloads that can tolerate interruption.
- **Azure Reservations and savings plans**: Eligible regular-priority VM compute usage can receive discounts through Azure Reservations or an Azure savings plan for compute. Size the commitment against sustained baseline usage rather than the autoscale maximum.

## Services Azure Virtual Machine Scale Sets works with

A typical web deployment places scale set instances in a private subnet and exposes a single frontend through Azure Application Gateway or Azure Load Balancer. Use Application Gateway for HTTP routing and TLS termination, and Standard Load Balancer for Layer 4 traffic. Configure a probe that reflects whether the application can serve requests, not just whether the VM is running.

Build and version images in Azure Compute Gallery, and replicate them to each region where a scale set is deployed. Keep environment-specific secrets out of the image and retrieve them from Key Vault using a managed identity with only the required permissions. For regional recovery, deploy a separate scale set with its own network and frontend, and plan traffic failover and data recovery independently.

Use Azure Monitor Autoscale for capacity changes and monitor whether new instances actually become healthy after they are provisioned. A web tier can scale on CPU if it correlates with demand, while background workers can scale on backlog. Keep minimum capacity high enough to serve requests or process jobs while new VMs initialize or existing VMs are upgraded.

- **[Azure Load Balancer](https://blowstack.com/tools/cloud-services-hub/azure-load-balancer)**: Azure Load Balancer distributes Layer 4 traffic to scale set VMs in a backend pool and uses health probes to determine which instances receive new flows. For example, put a private TCP service behind an internal Standard Load Balancer so callers use one frontend IP while backend instances change.
- **[Azure Application Gateway](https://blowstack.com/tools/cloud-services-hub/azure-application-gateway)**: Application Gateway provides Layer 7 routing and TLS termination for HTTP and HTTPS workloads. For example, route requests to /api to a scale set backend pool and use a custom readiness probe to keep instances out of rotation until the application is ready.
- **[Azure Monitor](https://blowstack.com/tools/cloud-services-hub/azure-monitor)**: Azure Monitor Autoscale evaluates metrics and schedules and changes the scale set's target capacity. For example, add instances when average CPU stays above a threshold, then scale in at a lower threshold to avoid repeatedly adding and removing VMs.
- **[Azure Key Vault](https://blowstack.com/tools/cloud-services-hub/azure-key-vault)**: Applications on scale set VMs can use an assigned managed identity to access Key Vault without storing credentials in an image or deployment script. For example, grant the identity read access to a required secret and retrieve it at application startup.
- **[Azure Virtual Network](https://blowstack.com/tools/cloud-services-hub/azure-virtual-network)**: Place scale set instances in a virtual network subnet sized for peak capacity, and use network security groups to restrict traffic. For example, run an application fleet without per-instance public IP addresses and allow inbound application traffic only from the Application Gateway subnet.
- **[Automation](https://blowstack.com/tools/cloud-services-hub/automation)**: A scale set can use the Desired State Configuration extension to register its Windows instances with Azure Automation State Configuration. New instances can then pull a configuration that installs required software and applies the same settings as existing instances.
- **[Azure Advisor](https://blowstack.com/tools/cloud-services-hub/azure-advisor)**: Azure Advisor evaluates scale sets and recommends changes to improve reliability or reduce costs. For example, it can flag an underutilized scale set and recommend a smaller VM size.
- **[Azure Backup](https://blowstack.com/tools/cloud-services-hub/azure-backup)**: Azure Backup can protect supported VM instances in Flexible orchestration scale sets. Backup policies and restore points apply to the individual VMs, so an instance can be recovered without restoring the entire scale set.
- **[Azure Bastion](https://blowstack.com/tools/cloud-services-hub/azure-bastion)**: Scale set instances can be reached over their private IP addresses through Azure Bastion's IP-based connection feature. Administrators can use SSH or RDP without assigning a public IP address to each instance.
- **[Azure Blob Storage](https://blowstack.com/tools/cloud-services-hub/azure-blob-storage)**: Scale set boot diagnostics can store instance console logs and screenshots in Blob Storage. Those artifacts can help diagnose an instance that fails to boot before SSH or RDP becomes available.
- **[Azure Chaos Studio](https://blowstack.com/tools/cloud-services-hub/azure-chaos-studio)**: Azure Chaos Studio can target a scale set with a VM shutdown fault. An experiment can take selected instances offline to test whether the workload continues serving traffic from the remaining instances.
- **[Azure DDoS Protection](https://blowstack.com/tools/cloud-services-hub/azure-ddos-protection)**: Azure DDoS Network Protection can protect eligible public IP resources in a scale set's virtual network. For example, it can mitigate a volumetric attack against the public load balancer frontend that serves the scale set.
- **[Azure Dedicated Host](https://blowstack.com/tools/cloud-services-hub/azure-dedicated-host)**: A scale set can place its instances in an Azure Dedicated Host group. When automatic placement is configured, Azure selects eligible hosts in that group as the scale set adds instances.
- **[Azure DevOps](https://blowstack.com/tools/cloud-services-hub/azure-devops)**: A scale set can supply build and deployment agents to an Azure Pipelines scale set agent pool. Azure DevOps adjusts agent capacity in response to queued jobs and can reimage agents between jobs.
- **[Azure Disk Storage](https://blowstack.com/tools/cloud-services-hub/azure-disk-storage)**: Scale set instances can use Azure managed disks for their operating systems and data. The scale set profile specifies which disk types and sizes to provision when new instances are added.
- **[Azure Firewall](https://blowstack.com/tools/cloud-services-hub/azure-firewall)**: A scale set can route outbound traffic from its subnet through Azure Firewall. A user-defined route can make the firewall the next hop for internet traffic so that network and application rules govern what the instances can reach.
- **[Azure Kubernetes Service (AKS)](https://blowstack.com/tools/cloud-services-hub/azure-kubernetes-service-(aks))**: Scale sets provide the worker VMs for VMSS-backed AKS node pools. AKS manages the underlying scale set as it adds nodes, removes nodes, or upgrades the node image.
- **[Azure Marketplace](https://blowstack.com/tools/cloud-services-hub/azure-marketplace)**: A scale set can launch instances from supported VM images published in Azure Marketplace. Every new instance uses the configured offer and image version, with the marketplace purchase plan included when the offer requires it.
- **[Azure NAT Gateway](https://blowstack.com/tools/cloud-services-hub/azure-nat-gateway)**: A scale set can use a NAT gateway attached to its subnet for outbound internet access. New instances share the gateway's outbound public IP addresses without needing individual public IPs.
- **[Azure Network Watcher](https://blowstack.com/tools/cloud-services-hub/azure-network-watcher)**: Azure Network Watcher can record IP traffic to and from scale set instances through virtual network flow logs. The logs help operators see which traffic flows were allowed or denied.
- **[Azure Policy](https://blowstack.com/tools/cloud-services-hub/azure-policy)**: Azure Policy can audit or deny scale set configurations that don't meet organizational requirements. It can also deploy supported extensions through policy, such as the Azure Monitor Agent on eligible scale sets.
- **[Azure Private Link](https://blowstack.com/tools/cloud-services-hub/azure-private-link)**: A workload on scale set instances behind a Standard Load Balancer can be published through a Private Link service. Consumers connect to it from their virtual networks through private endpoints rather than over the public internet.
- **[Azure Resource Manager](https://blowstack.com/tools/cloud-services-hub/azure-resource-manager)**: Azure Resource Manager provisions scale sets as `Microsoft.Compute/virtualMachineScaleSets` resources. An ARM template can deploy the scale set, its extensions, and dependencies such as a subnet or load balancer in one deployment.
- **[Azure role-based access control (Azure RBAC)](https://blowstack.com/tools/cloud-services-hub/azure-role-based-access-control-(azure-rbac))**: Access to scale set management operations can be controlled with Azure RBAC. A role assignment scoped to one scale set can let an operator manage that set without granting access to other compute resources.
- **[Azure Service Fabric](https://blowstack.com/tools/cloud-services-hub/azure-service-fabric)**: Scale sets provide the VMs for Service Fabric cluster node types. The Service Fabric VM extension configures new instances to join the cluster as nodes when a node type scales out.
- **[Azure Service Health](https://blowstack.com/tools/cloud-services-hub/azure-service-health)**: The Resource Health capabilities in Azure Service Health show platform-related availability issues for supported scale set instances. Operators can use that information to distinguish an Azure infrastructure issue from a failure inside the guest.
- **[Azure Site Recovery](https://blowstack.com/tools/cloud-services-hub/azure-site-recovery)**: Azure Site Recovery can replicate supported VM instances in a Flexible orchestration scale set to another Azure region. If the primary region becomes unavailable, the protected VMs can be failed over to the recovery region.
- **[Batch](https://blowstack.com/tools/cloud-services-hub/batch)**: Scale sets provide the compute nodes for Azure Batch pools that use virtual machine configuration. Batch manages the nodes as the pool resizes and schedules tasks on the available instances.
- **[Event Grid](https://blowstack.com/tools/cloud-services-hub/event-grid)**: Scale set create, update, and delete operations can be delivered through Event Grid using Azure resource events at resource-group or subscription scope. A subscription can filter on the scale set's resource ID to react to changes to that set.
- **[Event Hubs](https://blowstack.com/tools/cloud-services-hub/event-hubs)**: Azure Monitor diagnostic settings can stream scale set platform metrics to Event Hubs. A downstream consumer can process that stream without polling each scale set for metrics.
- **[Linux Virtual Machines](https://blowstack.com/tools/cloud-services-hub/linux-virtual-machines)**: A scale set can provision Linux VM instances from a Linux image and apply settings such as SSH keys, cloud-init, and extensions as the instances are created. The same provisioning settings apply to new instances added during scale-out.
- **[Microsoft Azure Attestation](https://blowstack.com/tools/cloud-services-hub/microsoft-azure-attestation)**: Supported Trusted Launch scale set instances can use guest attestation backed by Microsoft Azure Attestation. The attestation checks measured boot evidence from the VM's virtual TPM.
- **[Microsoft Defender for Cloud](https://blowstack.com/tools/cloud-services-hub/microsoft-defender-for-cloud)**: Microsoft Defender for Cloud can assess supported scale set instances and surface security findings for them. For example, agentless scanning can identify vulnerable software on eligible instances without installing a scanner in each guest.
- **[Microsoft Entra Domain Services](https://blowstack.com/tools/cloud-services-hub/microsoft-entra-domain-services)**: A Windows scale set can use the domain-join extension to join newly provisioned instances to a Microsoft Entra Domain Services managed domain. The instances can then use domain authentication and receive Group Policy.
- **[Microsoft Entra ID (formerly Azure AD)](https://blowstack.com/tools/cloud-services-hub/microsoft-entra-id-(formerly-azure-ad))**: A scale set can use a Microsoft Entra managed identity so its instances can obtain tokens without storing credentials. Azure role assignments can grant that identity access to just the resources the workload needs.
- **[Microsoft Sentinel](https://blowstack.com/tools/cloud-services-hub/microsoft-sentinel)**: Supported scale set instances can forward guest security logs to Microsoft Sentinel through the Azure Monitor Agent and a data collection rule. For example, Linux instances can send Syslog events for use in Sentinel analytics rules.
- **[Queue Storage](https://blowstack.com/tools/cloud-services-hub/queue-storage)**: A scale set can use the length of an Azure Storage queue as an autoscale signal. Worker instances can be added when the backlog grows and removed when the queue drains.
- **[Service Bus](https://blowstack.com/tools/cloud-services-hub/service-bus)**: A scale set can use a Service Bus queue's message count in an autoscale rule. A worker tier can add instances when messages accumulate and scale back when processing catches up.
- **[Table Storage](https://blowstack.com/tools/cloud-services-hub/table-storage)**: Scale sets configured with the legacy Azure Diagnostics extension can write collected guest diagnostics, such as Windows performance counters, to Azure Table Storage.
- **[Update management center](https://blowstack.com/tools/cloud-services-hub/update-management-center)**: Azure Update Manager can assess and install guest OS patches on supported VMs in a Flexible orchestration scale set. It reports patch compliance for those individual instances.
- **[Virtual Machines](https://blowstack.com/tools/cloud-services-hub/virtual-machines)**: A Flexible orchestration scale set groups standard Azure Virtual Machines while keeping each member accessible through the individual VM management APIs. The scale set manages placement and scaling, while operators can configure or troubleshoot a particular VM on its own.

## Alternatives to Azure Virtual Machine Scale Sets in other clouds

### AWS

**[Amazon EC2 Auto Scaling](https://blowstack.com/tools/cloud-services-hub/amazon-ec2-auto-scaling)**: Amazon EC2 Auto Scaling and Azure Virtual Machine Scale Sets adjust the size of VM fleets based on metrics or schedules. Amazon EC2 Auto Scaling uses scaling policies on EC2 groups, while Azure uses Azure Monitor Autoscale and offers a choice between Flexible and Uniform orchestration.

| | Azure Virtual Machine Scale Sets | Amazon EC2 Auto Scaling |
| --- | --- | --- |
| Autoscaling configuration | Azure Monitor Autoscale rules | Auto Scaling group policies |
| Unhealthy instance recovery | Opt-in repairs with a health source | Automatic replacement via EC2 checks |

Compared Nov 2026.

## What is Azure Virtual Machine Scale Sets

Azure Virtual Machine Scale Sets (VMSS) manages capacity for applications that run on multiple Linux or Windows virtual machines. A scale set model defines the configuration used to provision new instances, including the base image, disks, network interfaces, and extensions. You can change the instance count directly or let Azure Monitor Autoscale adjust it using metrics or schedules. The scale set manages the VM fleet; you still configure application deployment, traffic routing, and data protection.

Choose the orchestration mode before deployment because it cannot be changed in place. Flexible orchestration is recommended for new deployments and provisions standard Azure VMs that you can manage individually through the regular VM APIs. It supports eligible combinations of VM sizes and a mix of Spot and regular-priority instances. Uniform orchestration creates scale-set-specific instances from a common profile and suits workloads operated as a fleet. Check feature compatibility before choosing Uniform if your tooling depends on standard VM APIs, per-VM tagging, Azure Backup, or Azure Site Recovery.

For a service that needs to withstand a zone outage, spread instances across availability zones in a supported region and send traffic through a load balancer or application gateway with health probes. Size the remaining zones to handle traffic if one zone is unavailable. Fault-domain placement reduces exposure to shared infrastructure failures but is not a substitute for zone redundancy. A scale set is regional, so recovery from a regional outage requires a separate deployment, traffic failover, and a data recovery plan.

Set minimum, maximum, and default capacity, then choose a signal that reflects demand, such as CPU utilization for a compute-bound service or queue backlog for workers. Measure how long new instances take to become ready and account for that delay in scale-out thresholds and cooldowns. Scale-in deletes instances rather than pausing them. Keep durable data outside disposable instances, and have workers checkpoint or safely retry interrupted jobs. Use scale-in protection where supported for instances that must not be selected for autoscale removal.

Changing the scale set model does not necessarily update existing instances immediately; rollout behavior depends on the upgrade policy. For production workloads, pin an image version, validate it on a test fleet, and use rolling upgrades with application health checks where supported. An eligible configuration can scale to 1,000 instances using a Marketplace or Azure Compute Gallery image with managed disks; a legacy managed image limits the set to 600. These are service limits, not guarantees of deployable capacity. Check regional and VM-family vCPU quotas, SKU availability in the selected zones, and available subnet addresses before committing to a target size.
