Unable to delete VHD from VMM library

I had VM template associated with VHD from VMM library, and I wanted to delete both of them, since they were used for testing purposes. I deleted the VM template successfully, and after that I wanted to delete the VHD, but VMM was not allowing to delete the VHD because temporary VM template was dependent of it. Here is the error message when I tried to delete the VHD:

And the dependencies from the properties of the VHD file:

Easiest way to delete this temporary VM template is using powershell:
Remove-SCVMTemplate -VMTemplate "Temporary TemplateName"
After deleting the temporary VM template, there were no dependencies of the VHD, and I deleted the file from library successfully. 


Popular posts from this blog

How to convert string to Base64 and vice versa using Powershell

Machine domain group policy failed to apply

Failover Clustering Event 1196 and 1228