This article details how to view your instance mix configuration on a virtual machine scale set, including the virtual machine (VM) sizes and the allocation strategy.
Prerequisites
- Reader, or higher, role on the scale set resource, or the
Microsoft.Compute/virtualMachineScaleSets/virtualMachines/read permission.
- A scale set using Flexible Orchestration Mode and instance mix.
- For REST deployments, use API Version
2024-11-01 or later.
View the instance mix configurations
- Go to the virtual machine scale set you want to view.
- In the Overview blade, locate the Properties section.
- Under Size, view the VM sizes available in the scale set.
- Under Management, view the Allocation strategy.
Replace placeholders, such as <scaleSetName>, with your actual values.
View all instance mix properties
To display all properties in the skuProfile, run:
az vmss show --resource-group <resourceGroupName> --name <scaleSetName> --query "skuProfile"
Example output:
{
"allocationStrategy": "CapacityOptimized",
"vmSizes": [
{
"name": "Standard_D4s_v5"
},
{
"name": "Standard_D4as_v5"
}
]
}
View VM sizes
To display only the VM sizes, run:
az vmss show --resource-group <resourceGroupName> --name <scaleSetName> --query "skuProfile.vmSizes"
View allocation strategy
To display only the allocation strategy, run:
az vmss show --resource-group <resourceGroupName> --name <scaleSetName> --query "skuProfile.allocationStrategy"
View all instance mix properties
Get-AzVmss -ResourceGroupName "<resourceGroupName>" -VMScaleSetName "<scaleSetName>" | Select-Object -ExpandProperty skuProfile
View VM sizes
Get-AzVmss -ResourceGroupName "<resourceGroupName>" -VMScaleSetName "<scaleSetName>" | Select-Object -ExpandProperty skuProfile | Select-Object -ExpandProperty vmSizes
View allocation strategy
Get-AzVmss -ResourceGroupName "<resourceGroupName>" -VMScaleSetName "<scaleSetName>" | Select-Object -ExpandProperty skuProfile | Select-Object -ExpandProperty AllocationStrategy
Next steps
Learn how to update your instance mix enabled scale set.