VHD, Virtual Disk Service Error, not in a state that permits it.

When working with a large number of VHD files you may encounter the following:

Virtual Disk Service Error: the requested operation cannot be performed on the virtual disk object because it is not in a state that permits it.

Resolution: Restart the Virtual Disk service.