user863562
user863562

Reputation:

Azure Storage & Snapshots

I have a VHD in a container which was mounted by an instance (a DotNetNuke accelerator). But now the instance is stopped so the VHD is not mounted anymore.

The problem is I can't rename this VHD with any UI client. "CloudBerry Explorer for Azure Blob Storage" shows an error when I try to rename it of

This operation is not permitted because the blob has snapshots.

I tried to list snapshots in VisualStudio but it only returns the blob's name...

I tried to mount the VHD in an instance and create a file and it works!?

I'm going crazy. :)

Upvotes: 4

Views: 12278

Answers (2)

Dejan S.
Dejan S.

Reputation: 171

I've managed to remove blob which has snapshots by using Microsoft Azure Storage Explorer. Steps are:

  1. You navigate to the blob in question
  2. Right click -> Manage Snapshots
  3. Delete all the snapshots and the blob will disappear also

Upvotes: 17

dunnry
dunnry

Reputation: 6876

The error is accurate. If you get that, it means the blob actually has snapshots. When you mount a blob you are most likely mounting the current version and not a past snapshot. You can enumerate the snapshots using the REST API (use the 'include=snapshots option) to prove this to yourself.

If you really want to delete the blob with minimal hassle, I would suggest using https://www.myazurestorage.com (safe site from Microsoft DPE). It will enumerate your snapshots automatically and allow you to delete them. Once they are all deleted, you can also delete the blob.

Upvotes: 1

Related Questions