无法删除 Azure 存储帐户
Unable to remove Azure storage accounts
我将首先参考另外两个对这个问题有部分答案的问题。
使用 Azure 资源管理器我能够删除 blob 和容器,但是当我尝试删除存储帐户时出现此错误:
Failed to delete storage account 'bitnamiwestusflwdmy'. Unable to
delete storage account 'bitnamiwestusflwdmy': 'Storage account
bitnamiwestusflwdmy has some active image(s) and/or disk(s), e.g.
bitnami-bitnami-gitlab-8.2.3-3-westus-FLwDm_Y. Ensure these image(s)
and/or disk(s) are removed before deleting this storage account.'.
这很奇怪,因为 Azure 门户显示帐户的容器、队列和表为零; Azure 资源管理器显示 "this folder is empty" 存储帐户的内容。
似乎无法删除我的 Azure 帐户中的两个空存储帐户。两者都不包含任何图像或磁盘,但错误消息表明它们包含。如果它们存在,则通过 Azure 可用的任何管理工具都看不到它们。 没有人能够对从 Azure 中删除存储帐户的问题给出完整的答案。
在这里我想评论一下这两个参考问题中失败的建议。
In the new portal (portal.azure.com) you'll find the disks under OS
Disks (classic) :
事实上,OS 个磁盘显示 "Nothing to Display",尽管我有两个存储帐户由于活动磁盘而无法删除。
http://portal.azure.com 存储帐户(经典)不允许删除这些帐户。
Azure 存储资源管理器允许我删除 blob,但不允许我删除容器、磁盘或帐户。
虽然 Azure Explorer 致力于删除我的存储帐户的内容,但我无法执行此操作,直到租约被终止。为了通过 Azure Explorer 删除存储帐户中的图像,我必须首先右键单击它们,然后从上下文菜单中单击 select "break lease"。我必须对图像的内容和图像本身执行此操作。这就是我清空账户的方式。不过,无法删除存储帐户本身。
你能确认你没有在下面的部分注册任何东西吗?
尝试删除存储帐户时出现以下错误 - 在删除所有其他内容之后:
Failed to delete storage account 'portalvhds5nqky61nhdlrg'. Error: Unable to delete storage account 'portalvhds5nqky61nhdlrg': 'Storage account portalvhds5nqky61nhdlrg contains VM Images. Ensure these VM Images are removed before deleting this storage account.'.
But I couldn't see any VM Images in the Storage Account (in either portal) or using Storage Explorer.
但是 Emmanuel 上面的回答给了我一个线索——使用经典门户,点击 'Virtual Machines'(即使它显示 0),然后点击 select 'Images'——这让我与上面的 Emmanuel 相同的屏幕。
然后我切换到使用 Azure CLI,将其设置为正确的帐户后,我尝试了以下命令:
azure vm image show <the VM Image name from the Classic Portal>
由此我可以确认细节,然后:
azure vm image delete <the VM Image name from the Classic Portal>
最终删除了 VM 映像。
最后,我可以返回任一门户并删除存储帐户。
我将首先参考另外两个对这个问题有部分答案的问题。
使用 Azure 资源管理器我能够删除 blob 和容器,但是当我尝试删除存储帐户时出现此错误:
Failed to delete storage account 'bitnamiwestusflwdmy'. Unable to delete storage account 'bitnamiwestusflwdmy': 'Storage account bitnamiwestusflwdmy has some active image(s) and/or disk(s), e.g. bitnami-bitnami-gitlab-8.2.3-3-westus-FLwDm_Y. Ensure these image(s) and/or disk(s) are removed before deleting this storage account.'.
这很奇怪,因为 Azure 门户显示帐户的容器、队列和表为零; Azure 资源管理器显示 "this folder is empty" 存储帐户的内容。
似乎无法删除我的 Azure 帐户中的两个空存储帐户。两者都不包含任何图像或磁盘,但错误消息表明它们包含。如果它们存在,则通过 Azure 可用的任何管理工具都看不到它们。 没有人能够对从 Azure 中删除存储帐户的问题给出完整的答案。
在这里我想评论一下这两个参考问题中失败的建议。
In the new portal (portal.azure.com) you'll find the disks under OS Disks (classic) :
事实上,OS 个磁盘显示 "Nothing to Display",尽管我有两个存储帐户由于活动磁盘而无法删除。
http://portal.azure.com 存储帐户(经典)不允许删除这些帐户。
Azure 存储资源管理器允许我删除 blob,但不允许我删除容器、磁盘或帐户。
虽然 Azure Explorer 致力于删除我的存储帐户的内容,但我无法执行此操作,直到租约被终止。为了通过 Azure Explorer 删除存储帐户中的图像,我必须首先右键单击它们,然后从上下文菜单中单击 select "break lease"。我必须对图像的内容和图像本身执行此操作。这就是我清空账户的方式。不过,无法删除存储帐户本身。
你能确认你没有在下面的部分注册任何东西吗?
尝试删除存储帐户时出现以下错误 - 在删除所有其他内容之后:
Failed to delete storage account 'portalvhds5nqky61nhdlrg'. Error: Unable to delete storage account 'portalvhds5nqky61nhdlrg': 'Storage account portalvhds5nqky61nhdlrg contains VM Images. Ensure these VM Images are removed before deleting this storage account.'. But I couldn't see any VM Images in the Storage Account (in either portal) or using Storage Explorer.
但是 Emmanuel 上面的回答给了我一个线索——使用经典门户,点击 'Virtual Machines'(即使它显示 0),然后点击 select 'Images'——这让我与上面的 Emmanuel 相同的屏幕。
然后我切换到使用 Azure CLI,将其设置为正确的帐户后,我尝试了以下命令:
azure vm image show <the VM Image name from the Classic Portal>
由此我可以确认细节,然后:
azure vm image delete <the VM Image name from the Classic Portal>
最终删除了 VM 映像。
最后,我可以返回任一门户并删除存储帐户。