Deploy VMSS with Flex orchestration mode instead of Uniform
Impact:MediumCategory:Scalability
APRL GUID:e7495e1c-0c75-0946-b266-b429b5c7f3bf
Description:
Deploying even single instance VMs into a scale set with Flexible orchestration mode future-proofs applications for scaling and availability. This mode guarantees high availability (up to 1000 VMs) by distributing VMs across fault domains in a region or within an Availability Zone.
Enable Azure Virtual Machine Scale Set Application Health Monitoring
Impact:MediumCategory:Monitoring and Alerting
APRL GUID:94794d2a-eff0-2345-9b67-6f9349d0a627
Description:
Monitoring application health in Azure Virtual Machine Scale Sets is crucial for deployment management. It supports rolling upgrades such as automatic OS-image upgrades and VM guest patching, leveraging health monitoring for upgrading.
Enable Automatic Repair Policy on Azure Virtual Machine Scale Sets
Impact:HighCategory:High Availability
APRL GUID:820f4743-1f94-e946-ae0b-45efafd87962
Description:
Enabling automatic instance repairs in Azure Virtual Machine Scale Sets enhances application availability through a continuous health check and maintenance process.
Enable Predictive autoscale and configure at least for Forecast Only
Impact:LowCategory:Scalability
APRL GUID:3f85a51c-e286-9f44-b4dc-51d00768696c
Description:
Predictive autoscale utilizes machine learning to efficiently manage and scale Azure Virtual Machine Scale Sets by forecasting CPU load through historical usage analysis, ensuring timely scale-out to meet demand.
Disable Force strictly even balance across zones to avoid scale in and out fail attempts
Impact:HighCategory:High Availability
APRL GUID:b5a63aa0-c58e-244f-b8a6-cbba0560a6db
Description:
Microsoft advises disabling strictly even VM instance distribution across Availability Zones in VMSS to improve scalability and flexibility, noting that uneven distribution may better serve application load demands despite the potential trade-off in resilience.
Click the Azure Resource Graph tab to view the query
//AzureResourceGraphQuery//FindVMSSinstanceswithoneornoZonesselectedresources|wheretype=="microsoft.compute/virtualmachinescalesets"|whereisempty(tostring(tags['aks-managed-poolName']))|wherelocationin~("australiaeast","brazilsouth","canadacentral","centralindia","centralus","eastasia","eastus","eastus2","francecentral","germanywestcentral","israelcentral","italynorth","japaneast","japanwest","koreacentral","mexicocentral","newzealandnorth","northeurope","norwayeast","polandcentral","qatarcentral","southafricanorth","southcentralus","southeastasia","spaincentral","swedencentral","switzerlandnorth","uaenorth","uksouth","westeurope","westus2","westus3","usgovvirginia","chinanorth3")|wherearray_length(zones)<=1orisnull(zones)|projectrecommendationId="1422c567-782c-7148-ac7c-5fc14cf45adc",name,id,tags,param1="AvailabilityZones: Single Zone"|orderbyidasc
Upgrade VMSS Image versions scheduled to be deprecated or already retired
Impact:HighCategory:Governance
APRL GUID:83d61669-7bd6-9642-a305-175db8adcdf4
Description:
Ensure current versions of images are in use to avoid disruption after image deprecation. Please review the publisher, offer, sku information of the VM to ensure you are running on a supported image. Enable Auto Guest Patching or Image Upgrades, to get notifications about image deprecation.