Check ID: vm_scaleset_associated_with_load_balancer
Provider: Azure
Service: vm
Severity: MEDIUM
Categories: resilience
Resource type: microsoft.compute/virtualmachinescalesets

What this check verifies

Azure VM scale sets are associated with at least one load balancer backend pool. The evaluation looks for a backend pool link on each scale set’s network configuration.

Risk

Without a load balancer, traffic targets instances directly, bypassing health-based distribution. This degrades availability (overloads, no failover) and reliability (dropped sessions, uneven scaling) and can amplify DoS impact by concentrating flows on fewer nodes, increasing outage risk.

Recommendation

Associate VM scale sets with a Standard Load Balancer backend pool to enforce health-probed, even distribution and seamless failover. Design for high availability: run multiple instances across zones, enable autoscale, and apply defense in depth with limited exposure and NSG controls. Prefer SKU Standard over legacy Basic.

Remediation

az vmss update --resource-group <RESOURCE_GROUP> --name <VMSS_NAME> --add virtualMachineProfile.networkProfile.networkInterfaceConfigurations[0].ipConfigurations[0].loadBalancerBackendAddressPools '{"id":"/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/providers/Microsoft.Network/loadBalancers/<LB_NAME>/backendAddressPools/<BACKEND_POOL_NAME>"}'

References

Where this check fires

This check runs on every scheduled scan against your Azure account. Findings appear at Cloud Security → Findings filterable by Check ID = vm_scaleset_associated_with_load_balancer. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to Azure checks