Cleaning Up Azure Compute Galleries and Snapshots to Reduce Costs

razec18 65 Reputation points
2024-09-05T13:43:47.0266667+00:00

I’m trying to reduce costs by cleaning up some of the Azure Compute Galleries and snapshots that have accumulated over time in my environment, but I have a couple of questions:

If I delete a snapshot, is there any chance it could impact my currently running VMs, or am I safe to delete them without worrying?

Same for Azure Compute Galleries—if I delete one, could that impact any existing VMs or services that are running in my environment?

I’ve noticed that these galleries and snapshots have piled up over time, and I want to do some cleanup to help cut down costs. Just want to make sure I’m not going to break anything in the process.

Thanks in advance!

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,930 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
636 questions
0 comments No comments
{count} votes

Accepted answer
  1. Prrudram-MSFT 24,661 Reputation points
    2024-09-05T16:10:38.81+00:00

    Hello @João Vitor do Prado Maia

    It's good that you're looking to optimize your costs by cleaning up your Azure Compute Galleries and snapshots. When you delete a snapshot, it won't impact any currently running VMs. However, it's important to note that the snapshot deletion operation cannot be undone.

    Impact of Deleting Azure Compute Galleries on Running VMs: Deleting an Azure Compute Gallery (formerly known as Shared Image Gallery) can have an impact if there are VMs or services that rely on the images stored in that gallery. If you delete a gallery, any VM or service that was created using an image from that gallery will not be able to scale out or create new instances using that image. However, the existing VMs and services that are already running will continue to operate without interruption

    It's a good practice to ensure that no active deployments are dependent on the images in the gallery before deleting it. You can also consider archiving or exporting the images if you might need them in the future.

    If you have any more questions or need further assistance, feel free to ask!

    If I have answered your query, please click "Accept as answer" as a token of appreciation

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.