How can I delete a leased blob in Microsoft Azure storage

余生颓废 提交于 2019-12-17 02:37:04

问题


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?


回答1:


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.

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

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




回答2:


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




回答3:


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.



来源:https://stackoverflow.com/questions/34362904/how-can-i-delete-a-leased-blob-in-microsoft-azure-storage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!