Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

Removing a VHD with a ghost VM

$
0
0

Hi,

I deleted a VM and the tried to delete the disk, yet the VHD is still attached to the VM. I've tried to remove the VHD with power shell and got:

Remove-AzureDisk : "An exception occurred when calling the ServiceManagement API. HTTP Status Code: 400. Servi
Management Error Code: BadRequest. Message: A disk with name XXXXXXXXXXXXXXX is currently in use
virtual machine XXXXXX running within hosted service XXXXXXX, deployment XXXXXXX.. Operation Tracking ID:
XXXXXXXXXXXXXXXXX."
At line:1 char:1
+ Remove-AzureDisk -DiskName XXXXXXXXXXXXXXXXXX
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Remove-AzureDisk], ServiceManagementClientException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Management.ServiceManagement.IaaS.RemoveAzureDiskCommand

When I list the VM's with PS the VM that is blocking isn't listed. I tried to remove it even though it wasn't listed, nothing happened. 

Any help in this matter is greatly welcomed. 



Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>