2016-09-08 71 views
-1

我有一些Azure资源(经典),我删除了。出于某种原因,由于锁定问题,某些Blob未在该存储帐户上被删除,所以我使用cli解锁了剩余的blob并删除了它们的容器。我现在有空的存储帐户。然而,当我试图删除我的存储账户通过门户网站,我收到以下错误:强制删除蔚蓝存储帐户(经典)

Failed to delete storage account 'portalvhdsn4k00gzzhv88l'. Unable to delete storage account 'portalvhdsn4k00gzzhv88l': 'Storage account portalvhdsn4k00gzzhv88l has some active image(s) and/or disk(s), e.g. traffic-traffic-0-201509110310570061. Ensure these image(s) and/or disk(s) are removed before deleting this storage account.'.

当我运行azure storage account delete portalvhdsn4k00gzzhv88l,它的错误与:

error: Resource group 'portalvhdsn4k00gzzhv88l' could not be found.

如何强制删除帐户?

+1

不知道它*完全相同的原因,但看看[这个答案](http://stackoverflow.com/a/34364494/272109)我发布了关于删除关联的磁盘对象,必须完成在删除存储帐户之前。 –

+0

这是问题所在。我不确定为什么这些没有通过UI的其他部分显示出来。 – twinlakes

回答

0

做到这一点的唯一方法是对经典的门户

  1. 转到manage.windowsazure.com
  2. 点击虚拟机
  3. 点击磁盘
  4. 删除

你不能在ARM门户上执行此操作。

0

error: Resource group 'portalvhdsn4k00gzzhv88l' could not be found.

如果你想通过Azure的CLI管理经典资源,请通过此代码azure config mode asm设置你的蔚蓝的CLI模式为ASM。完成此操作后,我们不需要提供资源组名称。

enter image description here

正如大卫说,我们需要删除相关的磁盘对象删除存储帐户,因此请通过azure vm disk list列出VM磁盘。然后使用azure vm disk delete <disk name existed in your storage account>。之后,我们将能够通过azure storage account delete <storage account>成功删除该帐户。