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