How do I delete an Azure storage account containing a leased blob?

后端 未结 10 2099
春和景丽
春和景丽 2020-12-04 10:02

I was playing with Windows Azure durable virtual machines. In the end, I deleted the virtual machine (successfully) and tried to delete the associated storage account.

10条回答
  •  渐次进展
    2020-12-04 10:33

    In my case, storage could not be deleted because of vmimages.

    Use power shell command

    get-azurevmimage | Where-Object -Property Category -in -Value "user"

    to list all images To delete ALL YOU IMAGES use the following script:

    get-azurevmimage | Where-Object -Property Category -in -Value "user" |   
    foreach {
            echo "remove $($_.ImageName)"
            Remove-AzureVMImage –ImageName $($_.ImageName)
            }
    

提交回复
热议问题