SCVMM 2012 R2 Error 23234

Symptoms:

A working VM object itself is not in a failed state, but the most recent job shows as failed, this job is generally refresh virtual machine. The VM is a cluster resource, but the host object cant have its virtual machines refreshed.

Error Message: Refresh virtual machine properties

Error (23234)
VM Refresher encountered an error while creating or updating VM with ID:
VMM cannot find VirtualHardDisk object.
Ensure the library object is valid, and then try the operation again.
Recommended Action
Validate the VM’s configuration in Hyper-V, repair the VM in VMM, and retry the operation.

Error Message: VMM Crash when VM properties opened:

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: VmmAdminUI.exe
Problem Signature 02: 3.2.7510.0
Problem Signature 03: 522d2b71
Problem Signature 04: Microsoft.VirtualManager.UI.HardwareProperties
Problem Signature 05: 3.2.7510.0
Problem Signature 06: 522d2b2e
Problem Signature 07: 77
Problem Signature 08: 1ef
Problem Signature 09: OFQXXDD1EHFM3FUXT3GSTDYY4N2U0UHN
OS Version: 6.3.9600.2.0.0.272.7
Locale ID:
Additional Information 1: 5861
Additional Information 2: 5861822e1919d7c014bbb064c64908b2
Additional Information 3: 01d7
Additional Information 4: 01d7340064827245f2249cd1f1a7c264
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=280262
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt


Solution:

Remove the virtual machine. Open powershell

get-vm -Name NameOfVM | remove-vm -Force

The VM should stay online during this process, and will automatically reappear in SCVMM after a refresh.

Should the above fail, then try running the SQL script here: http://support.microsoft.com/kb/2756886 (backup the SQL database first).