Azure – You can now recover deleted virtual machine image using soft-delete in Compute Gallery

As you know, Microsoft Azure provides compute capabilities (virtual machines).

Unfortunately, until now accidental deletion of custom images from the Gallery (create your own Compute Gallery images Create a Gallery for Sharing Resources – Azure Virtual Machines | Microsoft Learn) was not available; meaning if somebody accidentally delete an image version, it was not possible to recover it.

To enable soft-delete virtual machine recovery, connect to your Azure portal to access the Azure Compute Gallery to enable soft-delete protection

image

Access the compute gallery you want to enable for soft-delete protection and access the Settings\Soft delete blade

When enabling the soft-delete protection you can define for how long the deleted image is retained (from 7 to 365 days) – during the period the image can be recovered and consumed – and the grace period (from 7 to 90 days) – during this period the image can be recovered but not consumed

image

After activating the soft-delete protection, a banner will be displayed to notify about this protection and an option to see the soft-deleted image is being available when accessing the image

image

After an image has been deleted and has been protected by soft-delete, turn on the option “Show soft deleted version” to view the image and recover it or hard delete it; you can view the hard deletion time when the image will no longer be recoverable

image

While soft-delete is a free capability, there is still a cost associated with retained replicas during the retention and grace period until the image is permanently deleted.

NOTE if enable soft-delete and then later on disable it, any definition protected for soft deletion are still available until the grace period is reached

Limitations

  • Soft delete protection is currently only available in the below regions
    • Australia Central 2
    • Australia East
    • Brazil South
    • Canada Central
    • Central US EUAP
    • East Asia
    • East US 2 EUAP
    • France South
    • Germany West Central
    • Japan East
    • Jio India West
    • Korea South
    • North Central US
    • North Europe
    • Norway East
    • Qatar Central
    • South Africa West
    • South Central US
    • Sweden Central
    • Taiwan North
    • UK South
    • UK West
    • West India
    • West US 3
  • Virtual Machine Apps recovery is not supported
  • Enabling soft-delete requires either Owner subscription or Compute Gallery Sharing Admin roles
  • Soft delete can not be enabled if the gallery and the image (definition or version ) are hosted in a different region

Leave a Comment

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.