Cannot remove storage account because of lease, but I already deleted the server [closed]
- by djechelon
I recently created a temporary virtual server on Azure. Then I deleted it. I wanted to delete the storage account associated with it because I didn't need it any more. The problem is that the VHD file is still associated to a non-existing virtual machine!!
If I try to delete the VHD from Virtual Machines\Disks I get the Delete button greyed and the table tells me it's still associated with the old VM. If I go to storage administration and try to delete the blob from vhds/ directory I get there is an active lease.
I've read on Azure forums that, in these case, one should try to force releasing the lease from the blob. I followed their instructions and downloaded their script, but running it failed. The script detected that the disk is associated to a Virtual Machine and can't be deleted.
The problem is that I'm 1000000% sure that I already deleted the VM.
In fact, I currently only have a single VM that has its own HD and is up and running fine!
What can I do to delete that storage account that is probably sucking money from my pocket?