Edit

Share via


Create a scale set using instance mix

This article shows how to create a Virtual Machine Scale Set (VMSS) with instance mix. Instance mix lets you specify multiple virtual machine (VM) sizes for a single scale set and control how Azure chooses sizes at provisioning time using an allocation strategy.

Before you begin

Confirm these prerequisites before you create an instance mix enabled scale set:

  • You intend to deploy a scale set that uses Flexible orchestration mode.
  • Consistent VM characteristics across selected sizes: same CPU architecture (x64 or Arm64), compatible disk interface (SCSI or NVMe), and compatible security profile.
  • Sufficient quota for each VM size in the target subscription and region.
  • Choose a region that supports the VM sizes you want to include.
  • (CLI users) Azure CLI 2.66.0 or later is recommended. For PowerShell, use the latest Az.Compute module.

Create a scale set using instance mix

  1. Go to Virtual machine scale sets.
  2. Select the Create button to go to the Create a virtual machine scale set view.
  3. In the Basics tab, fill out the required fields. If the field isn't called out in the next sections, you can set the fields to what works best for your scale set.
  4. Ensure that you select a region that instance mix is supported in.
  5. Be sure Orchestration mode is set to Flexible.
  6. In the Size section, click Select up to 5 sizes and the Select a VM size page appears.
  7. Use the size picker to select up to five VM sizes. Once you select your VM sizes, click the Select button at the bottom of the page to return to the scale set Basics tab.
  8. In the Allocation strategy field, select your allocation strategy.
  9. If you use the Prioritized (preview) allocation strategy, the Rank size section appears below the Allocation strategy section. Select Rank priority to open the prioritization blade, where you can adjust the priority of your VM sizes.
  10. You can specify other properties in subsequent tabs, or you can go to Review + create and select the Create button at the bottom of the page to start your instance mix scale set deployment.

Next steps

Learn how to view your scale set's instance mix configurations.