A quick tip for anyone who gets stuck when trying to delete an Azure Blob Storage Container that appears to be empty but upon deletion generates the following helpful error message
There is currently a lease on the container and no lease ID was specified in the request…
You’ve looked and there are no VHD or other objects appearing in this Container and you have found that you are unable to change the lease settings on the Container (yes, you can read them but you can’t update or remove them).
This is a little gotcha and is all down to Virtual Machine Images.
If you have created any Machine Images their VHDs will be held in a Blob Container but will not show up as other blobs – you will need to switch to the Virtual Machines > Images tab (shown below as I delete my old Images) in order to delete or otherwise update the Image so you can remove the Container.
Hope this helps you save a few minutes in your day!