15

I created a virtual machine in Azure and then deleted it. However, the associated storage account still exists. I can't delete the storage account because it contains a container with a blob in it that has an indefinite lease.
Nothing else is using this storage account.
How can I delete this blob?

bahrep
  • 29,961
  • 12
  • 103
  • 150
duggulous
  • 2,427
  • 3
  • 23
  • 40

3 Answers3

14

You need to delete the disk objects that are associated with the abandoned vhd's. You can do this easily in either the classic or new portal. Once you dispose of these (along with associated leases), you should be able to get rid of your storage account

In the Classic portal (manage.windowsazure.com), you just visit Virtual Machines, then Disks. Select a disk to delete, and click the trash can at the bottom of the screen.

classic portal - disks

In the new portal (portal.azure.com) you'll find the disks under OS Disks (classic) :

OS disks in new portal

From there, you can select and delete the disks from the VM's you deleted.

David Makogon
  • 69,407
  • 21
  • 141
  • 189
1

You can Use Azure Cloud Explorer tool on Codeplex Open the Storage Account Delete all files inside that container,

Then you Can Delete the Container and the Storage Account Easily

ZeeMoussa
  • 173
  • 10
  • 1
    The Azure Cloud Explorer is no longer maintained. Alternatives: Cloud Explorer in Visual Studio or Storage Explorer stand alone tool http://storageexplorer.com/ – Bernard Vander Beken Dec 28 '16 at 13:22
0

One solution is to delete the container, whether through a GUI like a cloud explorer, tooling like Azure Storage Powershell, or using the rest API with an Azure Storage Client Library.

You don't need the blob lease to delete the container, which would also delete any blobs present in the container.

jehine-MSFT
  • 240
  • 1
  • 8
  • 1
    as long as the lease exists, the container can't be deleted. Unless these GUIs have some special powers that the Azure Management Portal does not? – duggulous Dec 18 '15 at 21:32