Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I had an Virtual Machine running in Azure for a couple of weeks and suddenly it stopped responding. I shut it down and tried to restart it but that failed saying the VM faulted. I then deleted the VM which leaves the VHD file intact on my storage account.

I was intending to try recreating a new VM using thie VHD from the first VM however, the OS disk and Data disk are both still marked as being attached to the original VM which no longer exists.

Is there any way to detach these disks so I can use them to create a new VM?

share|improve this question
add comment

migrated from stackoverflow.com Aug 27 '12 at 20:58

This question came from our site for professional and enthusiast programmers.

1 Answer

When you delete a Virtual Machine the VHD is still in lease so you would need to break the lease first so you can reuse the VHD.

Please follow the article below to release the lease first and the reuse the VHD:

Error deleting VHD: There is currently a lease on the blob and no lease ID was specified in the request

IF you still have problem write back and I will help.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.