Windows Azure-孤立磁盘。VHD和VM已被删除
在Azure管理控制台的虚拟机>磁盘下,我看到两个磁盘都表示它们已连接到虚拟机。但是,这些虚拟机已被删除。此外,磁盘blob VHD已被删除。现在我只剩下两个无法移除的重影磁盘。我不确定留下这些会有什么影响,我想把它们去掉。当我试图用remove azuredisk删除它们时,我得到一个错误。我知道有人引用BreakLease.ps1脚本来中断VHD上的租约,以便删除VHD,但在我的例子中没有VHD。BreakLease.ps1脚本似乎只接受URI作为参数,但我没有URI,因为这不是VHD/blob 有人知道如何摆脱这些孤立的磁盘对象吗 谢谢Windows Azure-孤立磁盘。VHD和VM已被删除,azure,disk,orphan,Azure,Disk,Orphan,在Azure管理控制台的虚拟机>磁盘下,我看到两个磁盘都表示它们已连接到虚拟机。但是,这些虚拟机已被删除。此外,磁盘blob VHD已被删除。现在我只剩下两个无法移除的重影磁盘。我不确定留下这些会有什么影响,我想把它们去掉。当我试图用remove azuredisk删除它们时,我得到一个错误。我知道有人引用BreakLease.ps1脚本来中断VHD上的租约,以便删除VHD,但在我的例子中没有VHD。BreakLease.ps1脚本似乎只接受URI作为参数,但我没有URI,因为这不是VHD/bl
PS C:\> get-azuredisk | where-object {$_.diskname -like "*memb*"} | select diskname
VERBOSE: 2:35:33 PM - Begin Operation: Get-AzureDisk
VERBOSE: 2:35:34 PM - Completed Operation: Get-AzureDisk
DiskName
--------
coco2008memb3-coco2008memb3-0-201307022204430928
coco2008memb5-coco2008memb5-0-201307022204540471
PS C:\> get-azuredisk | where-object {$_.diskname -like "*memb*"} | remove-azuredisk
VERBOSE: 2:35:56 PM - Begin Operation: Get-AzureDisk
VERBOSE: 2:35:57 PM - Completed Operation: Get-AzureDisk
VERBOSE: 2:35:57 PM - Begin Operation: Remove-AzureDisk
remove-azuredisk : "An exception occurred when calling the ServiceManagement API. HTTP Status Code: 400. Service
Management Error Code: BadRequest. Message: A disk with name coco2008memb3-coco2008memb3-0-201307022204430928 is
currently in use by virtual machine coco2008memb3 running within hosted service coco2008memb3, deployment
coco2008memb3.. Operation Tracking ID: 8a8ab4956d5948ec9c23ec047259d086."
At line:1 char:61
+ get-azuredisk | where-object {$_.diskname -like "*memb*"} | remove-azuredisk
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Remove-AzureDisk], ServiceManagementClientException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Management.ServiceManagement.IaaS.RemoveAzureDiskCommand
VERBOSE: 2:35:58 PM - Begin Operation: Remove-AzureDisk
remove-azuredisk : "An exception occurred when calling the ServiceManagement API. HTTP Status Code: 400. Service
Management Error Code: BadRequest. Message: A disk with name coco2008memb5-coco2008memb5-0-201307022204540471 is
currently in use by virtual machine coco2008memb5 running within hosted service coco2008memb5, deployment
coco2008memb5.. Operation Tracking ID: 69471c6e365e4dbca7ab714dfaddbe98."
At line:1 char:61
+ get-azuredisk | where-object {$_.diskname -like "*memb*"} | remove-azuredisk
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Remove-AzureDisk], ServiceManagementClientException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Management.ServiceManagement.IaaS.RemoveAzureDiskCommand
几个小时后,问题自行消失,我没有任何额外的互动。我只是在当天晚些时候重新登录,两个孤立的磁盘就不见了 您可以使用,您有一个窗口来查看孤立磁盘,以便快速删除它们。但是,在某些情况下,我有好几天无法删除孤立磁盘。(使用powershell命令时出现同样的问题。几个小时后,问题自行消失,我没有进行任何额外的交互。我只是在当天晚些时候重新登录,两个孤立磁盘消失了!