简体   繁体   English

Azure孤立存储帐户

[英]Azure Orphan Storage Account

I mistakenly created a VM without linking it to an extant storage account. 我错误地创建了VM,但未将其链接到现有的存储帐户。 When I realized my mistake I deleted the VM and then sought to delete the storage account. 当我意识到自己的错误时,我删除了VM,然后尝试删除存储帐户。 I found the auto created storage account and attempted to remove the container. 我找到了自动创建的存储帐户,并试图删除该容器。 However even 24 hours later I get told that the container contains resources in use by the (now deleted) VM and so cannot be deleted. 但是,即使24小时后,我仍然被告知容器包含(已删除的)VM正在使用的资源,因此无法删除。

Clearly there is some kind of dependency which is not apparent from the management portal which needs to be removed. 显然,存在某种依赖关系,这种依赖关系在管理门户网站中并不明显,需要删除。 I am looking for some advice on a powershell approach to investigating and resolving this issue. 我正在寻求有关Powershell方法的一些建议,以调查和解决此问题。

You have to disassociate the disk with the VM image (VHD) before you can delete the blob or container. 必须先将磁盘与VM映像(VHD)关联,然后才能删除Blob或容器。

You can do so from the Windows Azure management portal. 您可以从Windows Azure管理门户进行操作。 Go to the VMs tab. 进入“虚拟机”页签。 Choose 'DISKS' from the top menu and remove it. 从顶部菜单中选择“磁盘”并将其删除。 If I remember well, it will also ask you whether you'd also like to delete the blob (VHD) from the storage account. 如果我还记得的话,它还会询问您是否还要从存储帐户中删除Blob(VHD)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM