VMM 2012 R2 Error 12711 (VMM cannot complete WMI operation on the server) Removing an Orphaned Clustered Resource (Failover Cluster 2012 R2)
June 26, 2014 1 Comment
Sometimes admins attempt to repair VMs, not knowing about the relationship between VMM/Failover-Clustering/Hyper-v they fix up a VM to a working state, leaving empty orphaned cluster resources behind, and also causing VMM to report error 12711.
To fix these resources we need to get into powershell and connect to the cluster.
Start with a “Get-ClusterResource” and see if you can see it, try remove it using the “Remove-ClusterResouce” command first, if this fails (as it sometimes does if its an empty VM resource) then we can try removing its group with contents
do a “Get-ClusterGroup” and identify the name, now try “Get-ClusterGroup nameofGroup | Remove-ClusterGroup”
still not working? -group is not empty error? thats fine try “Get-ClusterGroup nameofGroup | Remove-ClusterGroup -RemoveResouces”
get-clusterresource -c | where {$_.resourcetype.name -eq ‘virtual machine configuration’} | Update-ClusterVirtualMachineConfiguration