How can I tell which Disk is associated with my VM Image

Sophie Warner 0 Reputation points
2025-08-29T02:09:09.7533333+00:00

I want to clean up a bunch of old disks that we have left over.

However, I don't want to delete the ones that are required for the VM image we have to be used. There aren't any disks listed in the console for the VM images or VM image versions. Do all VM images require an existing disk to be used to create a new VM? How can I tell which ones they are?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
{count} votes

2 answers

Sort by: Most helpful
  1. TP 134.2K Reputation points Volunteer Moderator
    2025-08-29T04:02:48.1833333+00:00

    Hi Sophie,

    A VM image is separate from the managed disk that was used to originally create it. For example, if you create a VM image version and definition based on a managed OS disk it lives in your Azure Compute Gallery and isn't linked to original disk.

    You can still create new VMs from this VM image version even if the original disk is deleted. So if you don't need these old disks for some other purpose you can delete them.

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP

    0 comments No comments

  2. Rashmika Inagadapa 230 Reputation points Microsoft External Staff Moderator
    2025-08-29T08:06:00.2066667+00:00

    Hi Sophie Warner,

    Adding few more details to the answer provided by the TP,

    A VM image in Azure (whether from the Marketplace, a Shared Image Gallery (SIG), or a Community Gallery) is not backed by a managed disk. Images are stored in Azure’s internal image store, not in your resource group as a disk. This means if you see an image in your gallery, you can continue creating new VMs from it even if you delete every managed disk in your resource group.

    For more information, refer here: Capture an image of a VM using the portal - Azure Virtual Machines | Microsoft Learn

    Disks are only tied to an image at the time of creation. If you captured a VM, Azure copies the OS disk (and any data disks) into image storage and the original VM and disks are no longer needed. But if you created an image from a managed disk, Azure copies the contents of that disk into the image and after creation, the disk is not required to use the image.

    For more information, refer here: Capture an image of a VM using the portal - Azure Virtual Machines | Microsoft Learn

    A SIG image version is backed by a managed blob in Azure’s image store, not the source disk. Once the image version exists and its state is Succeeded, you can safely delete the original source disk or VM. Deleting the disks does not impact the ability to deploy new VMs from that image version.

    For more information, refer here: Share VM images in a compute gallery - Azure Virtual Machines | Microsoft Learn

    Can You Still Create VMs After Deleting Old Disks?

    Yes. As long as the VM image or image version in your gallery is intact and healthy you can still create new VMs from it even if you delete the original managed disks.

    To safely identify and remove unused disks, follow the steps below:

    1. Go to Azure Portal → Disks.
    2. Use the State filter and select Unattached.
    3. Review the list, confirm they’re not needed, and delete them. imageFor more information, refer here: Identify unattached Azure disks - Azure portal - Azure Virtual Machines | Microsoft Learn

    Kindly check the information provided and let me know if you require any additional assistance from my end. I am happy to help you with the queries. If the information is helpful, please click on Upvote and Accept Answer on it so that it can help other community members.

    Thanks,

    Rashmika

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.