There is currently a lease on the blob and no lease ID ........ RRS feed

  • Question

  • Hi, we've backed up some data (it's marked as 1tb but should only be about 50mb) as a blob onto our one of our containers and now we'd like to delete it but we cannot. the full error is "There is currently a lease on the blob and no lease ID was specified in the request.". What is the most straight forward way to delete this. I've found other answers but they refer to vm#s and this is a .bak file.



    Thursday, April 21, 2016 1:13 PM

All replies

  • Hi,

    Thanks for posting here.

    Is it the VHD in the storage account you are trying to delete. I suggest you to refer to the below link for more details.

    If you want to delete the storage account, you need to delete any images/disks you have remaining in that storage account.

    Go to Virtual Machines -> "Disks" or "Images" tab -> select the images/disks that you have located in the Storage Account you want to delete -> then hit the "Delete disk" or "delete image" command. Back these up if you need before hitting the delete.

    Once the images/disks in the storage account have been deleted, you should be able to delete the storage account. Hope this helps.

    Set-AzureSubscription -SubscriptionName (Get-AzureSubscription).SubscriptionName -CurrentStorageAccountName (Get-AzureStorageAccount).Label

    Run Get-AzureDisk and get the diskname

    Now, try removing the Disk using below command
    Remove-AzureDisk DISKNAME
    for e.g., Remove-AzureDisk 'DISK-201501291246370620'

    Now, try removing the VHD via the portal and it should succeed.

    Ref: https://social.msdn.microsoft.com/Forums/azure/en-US/7381ea0e-0443-4b33-aa12-ba39df003409/error-deleting-vhd-there-is-currently-a-lease-on-the-blob-and-no-lease-id-was-specified-in-the?forum=WAVirtualMachinesforWindows

    Hope this helps.

    Girish Prajwal

    Thursday, April 21, 2016 7:49 PM
  • Hi, it's not a VHD, it's a SQL backup. Something is amiss though because the backup should only be 50-60 mb and it's marked as 1tb. There's no way it is that size.


    Friday, April 22, 2016 9:14 AM