Answered by:
Cannot delete storage account

Question
-
I create a new VM in the Preview, which presumably created a Storage account.
I then closed and deleted the VM, but the storage account remained.
When I try and delete it I get:
"Storage account *********** has 1 container(s) which have an active image and/or disk artifacts. Ensure those artifacts are removed from the image repository before deleting this storage account."
There is nothing else showing in the account. Everything is zero.
Is there something else that has to be cleared to remove this?
-c.
Friday, June 8, 2012 6:33 PM
Answers
-
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.
- Edited by Vignan Pattamatta Friday, June 8, 2012 8:16 PM
- Marked as answer by CharlieMaggot Friday, June 8, 2012 9:32 PM
Friday, June 8, 2012 8:14 PM
All replies
-
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.
- Edited by Vignan Pattamatta Friday, June 8, 2012 8:16 PM
- Marked as answer by CharlieMaggot Friday, June 8, 2012 9:32 PM
Friday, June 8, 2012 8:14 PM -
Thanks, Vignan, that was it.
I didn't know there were extra tabs when selecting Virtual Machines. I saw the zero count next to it and just assumed it was empty. Apparently not.Friday, June 8, 2012 9:34 PM -
Hi,
Same issue. The VM are deleted but impossible to delete the storage acconut.
When I use azure explorer to delete the vhd file, It indicate : Thre is currently a lease on the blob and no lease ID was specified in the request.
Francois Michael Dain
Tuesday, June 12, 2012 9:30 AM -
I never saw the tabs until I searched for the same problem. I hope they make it more visible. Thank for your help.Wednesday, July 25, 2012 7:45 PM
-
I have the same problem, thanks for point out the solution
Monday, July 30, 2012 4:09 PM -
i have the same issue please give me fix for that.
the deleted button is disabled and i have tried this in all the browsers.
it might be some different issue microsoft should look into this.
Friday, March 22, 2013 5:15 AM -
Thanks, Vignan, that was it.
I didn't know there were extra tabs when selecting Virtual Machines. I saw the zero count next to it and just assumed it was empty. Apparently not.
Planet Earth, Europe, Denmark, Sealand, Copenhagen, Morten
Thursday, October 3, 2013 1:36 PM -
Step1:
==========
Set-AzureSubscription -SubscriptionName (Get-AzureSubscription).SubscriptionName -CurrentStorageAccountName (Get-AzureStorageAccount).LabelStep2:
==========
Run Get-AzureDisk and get the disknameStep4:
==========
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.
Later, you can delete the Storage account either via the portal or via Powershell remove-azurestorageaccount
Sushant Rao http://blogs.technet.com/sushrao
- Edited by Sushant RaoMicrosoft employee Tuesday, February 3, 2015 11:31 AM
Tuesday, February 3, 2015 11:25 AM -
You can see the storage by storage explorer from codeplex which is free or cerebrata has also good azure storage explorer. I that you can see virtual machine VHD files also under container vhd and you can delete one by one. If the VHD is corresponding to active VM then you need to delete the VM first.
- Proposed as answer by Mahesh Malpani Thursday, February 5, 2015 7:36 AM
Thursday, February 5, 2015 7:36 AM -
Thanks - this worked a treat for me!Monday, September 12, 2016 11:04 AM