Create a scale set using a specialized image version with the Azure CLI

Important

You can't currently create a Virtual Machine Scale Set using Flexible orchestration mode from an image shared by another tenant.

Create a scale set from a specialized image version stored in an Azure Compute Gallery. If you want to create a scale set using a generalized image version, see Create a scale set from a generalized image.

Important

When you create a new scale set from a specialized image, the VMs retain the computer name of the original VM. Other computer-specific information, like the CMID, is also kept. This duplicate information can cause issues. When using a specialized image, be aware of what types of computer-specific information your applications rely on.

Replace resource names as needed in these examples.

Creating a scale set using an image stored in an Azure Compute Gallery is the same as creating a scale set using a Marketplace image, except when you select an image, select See all images.

Screenshot showing how to select other image to use when creating a scale set.

The Select an image page will open. Select My images if the image you want is in your own gallery, or select Shared images if the image has been shared to you from someone else's gallery.

Screenshot showing where to select the type of image to use to create a scale set.

Next steps

You can create Azure Compute Gallery resource using templates. There are several Azure Quickstart Templates available: