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