none
Cannot delete Storage Account

    Question

  • I've been playing with building some environments automagically using Powershell, and cleaning it all down nicely. But I've now bumped into an issue, I'm trying to delete a Storage Account, but it keeps complaining about still containing stuff. I've dug through and nothing in the Storage Account itself, but I do have an orphaned vhd stuck in the VM section that I cannot delete using any method (PowerShell, Web, or Azure Management Studio)

    PS C:\> Remove-AzureStorageAccount -StorageAccountName sp2013pocstorage
    VERBOSE: 21:19:21 - Begin Operation: Remove-AzureStorageAccount
    Remove-AzureStorageAccount : BadRequest: Storage account sp2013pocstorage has  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.
    At line:1 char:1
    + Remove-AzureStorageAccount -StorageAccountName sp2013pocstorage
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : CloseError: (:) [Remove-AzureStorageAccount], CloudException
        + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.StorageServices.RemoveAzureStorageAcco
       untCommand
    
    VERBOSE: 21:19:24 - Completed Operation: Remove-AzureStorageAccount
    PS C:\> Get-AzureVM
    PS C:\>

    However it's deffo listed in Virtual Machines / Disks

    I'm stuck, it's got the name of the VM it USED to be connected to, however that's gone the way of the Dodo a long time ago.

    I've even tried creating a new VM with the same name, but won't allow me to attach it, so any ideas?

    There's other people with the same issue

    http://social.msdn.microsoft.com/Forums/windowsazure/en-US/68393bd4-77d5-4b6a-9ee3-40eefc291303/cannot-delete-disk-because-attached-to-non-existing-vm-again?forum=WAVirtualMachinesforWindows


    Ashleigh

    Wednesday, February 05, 2014 9:42 PM

Answers

  • Hi Ashleigh,

    Firstly, I suggest you could Please try those step:

    The procedure to remove the disk image from the blob repository is:
    Go to the Windows Azure Management Portal->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.
    After that, the storage account can be deleted (http://stackoverflow.com/questions/10969012/how-do-i-delete-an-azure-storage-account-containing-a-leased-blob).

    And then if it doesn't work, I suggest you contact Azure support ASAP, and it's the best choice for you.

    Please contact support team by creating a support ticket at http://www.windowsazure.com/en-us/support/contact/

    Please try it.

    Regards,

    Will


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, February 06, 2014 6:53 AM
    Moderator

All replies

  • Hi Ashleigh,

    Firstly, I suggest you could Please try those step:

    The procedure to remove the disk image from the blob repository is:
    Go to the Windows Azure Management Portal->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.
    After that, the storage account can be deleted (http://stackoverflow.com/questions/10969012/how-do-i-delete-an-azure-storage-account-containing-a-leased-blob).

    And then if it doesn't work, I suggest you contact Azure support ASAP, and it's the best choice for you.

    Please contact support team by creating a support ticket at http://www.windowsazure.com/en-us/support/contact/

    Please try it.

    Regards,

    Will


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, February 06, 2014 6:53 AM
    Moderator
  • hi,

    I will mark this this thread as answer,if you find it no help,please fell free to unmark.
    Thanks!
    Will


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, February 12, 2014 9:47 AM
    Moderator