Migrate Managed image to Azure compute gallery image version

Applies to: ✔️ Linux Virtual Machine ✔️ Windows Virtual Machine ✔️ Virtual Machine Flex Scale Sets

Managed images is legacy method to generalize and capture Virtual Machine image. For the most current technology, customers are encouraged to use Azure compute gallery. All new features, like ARM64, Trusted launch, and Confidential Virtual Machine are only supported through Azure compute gallery. If you have an existing managed image, you can use it as a source and create an Azure compute gallery image.

Before you begin

  • Create an Azure Compute Gallery.
  • Assign Reader permission on source managed image.
  • Assign Contributor permission on target Azure compute gallery image definition.

This section steps through using the Azure portal to migrate Managed image to existing Azure Compute Gallery.

  1. Sign-in to Azure portal.
  2. Navigate to Managed image to be migrated and select Clone to a VM image.

Screenshot of the Managed image to be migrated

  1. Provide following details on the Create VM image version page and select Next : Replication >:

    • Version number
    • Target Azure compute gallery
    • Target Virtual Machine image definition
  2. Select following Replication configuration or select default values and select Next : Encryption >:

    • Default storage sku
    • Default replication count
    • Target replication regions
  3. Select SSE encryption type or select default Encryption at-rest with a platform managed key and select Next : Tags >.

  4. Optional Assign resource tags.

  5. Validate the configuration on Review + Create page and select Create to complete the migration.

Next steps

Replace managed image reference with Azure compute gallery image version in the Virtual machine and flex scale sets deployment templates.