Recently I was removing some old Azure Storage accounts and came accross an instance in which i could not delete one. These are the messages/errors I recieved.
Failed to delete storage account. Error: Unable to delete storage account. Storage account contains VM Images. Ensure these VM Images are removed.
Failed to delete storage container. Error: There is currently a lease on the container and no lease ID was specified in the request.
Failed to delete blob. Error: There is currently a lease on the blob and no lease ID was specified in the request.
Step1: You need to use the classic portal to do the image deletion as the storage account is in classic.
Step2: Delete the image that was previously attached to the VM.
Step3: After the successful deletion of the required image, go ahead and delete the storage account.