Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Azure VM snapshots be deleted safely?

I used CloudXplorer to create a snapshot on the VHD of a VM I was doing some installs on. The installs went okay, so is it okay to delete the snapshots or do I need to somehow merge them in to ensure I can backup my current VM state?

like image 894
BurntOC Avatar asked Sep 13 '25 20:09

BurntOC


1 Answers

Snapshots are just a point-in-time representation of a blob (in your case, a page blob storing your vhd). It's read-only, and it's disposable. If a page in the vhd's page blob is changed, then a new page is created for the snapshot, to represent the original state of the blob. Once you delete the snapshot, the list of pages, along with any created pages to preserve the snapshot's state, are deleted (and with no impact on the original blob).

Note that you won't be able to delete the original blob until you first delete all of its snapshots (and you can also delete blob+snapshots at once).

like image 99
David Makogon Avatar answered Sep 15 '25 17:09

David Makogon