尝试删除存储帐户时出错 [英] Error when trying to delete Storage Accounts

查看:50
本文介绍了尝试删除存储帐户时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I am having difficulty deleting storage accounts I don't use and being charged for.  

我已经删除了VMS并删除了vhdS,但是在删除存储帐户时我得到了:

I have deleted the VMS and removed the vhdS but when going to delete the storage account I get:

Failed to delete storage account 'XXX'. Error: The storage account cannot be deleted due to its artifacts being in use.

尝试删除资源组(这些资源包含3个资源-它们都需要删除)时,出现以下错误: 

When trying to delete the resource group (these contain 3 resources - they all need removing) I get the following error: 

Failed to delete resource group XXXXX: Deletion of resource group 'XXXXXXXX' failed as resources with identifiers 'Microsoft.Storage/storageAccounts/XXXXXX,Microsoft.Storage/storageAccounts/XXXXXXX,Microsoft.Storage/storageAccounts/XXXXX' could not be deleted. The provisioning state of the resource group will be rolled back. The tracking Id is '9b717278-6a71-40f6-bcbe-df843d58a5e2'. Please check audit logs for more details. (Code: ResourceGroupDeletionBlocked) The storage account cannot be deleted due to its artifacts being in use. . (Code: AccountIsLocked).

如果有人可以向我指出正确的解决方法,我将不胜感激.

I would be very grateful if someone can point me in the right direction on how to resolve this.

推荐答案

任何孤儿容器/斑点仍然存在在该存储帐户中?

Any orphan containers/blobs remained in that storage account?

您可以从Azure门户或使用Azure Powershell中的以下脚本再次检查它:

you may double check it from Azure portal or using following script in Azure Powershell:


上下文 - StorageAccountName - xxx
- 上下文
context = New-AzureStorageContext -StorageAccountName XXX -StorageAccountKey xxx
Get-AzureStorageContainer -Context


上下文
- 上下文
context
Get-AzureStorageBlob -Context


这篇关于尝试删除存储帐户时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆