Add-VMGroupMember does not work
Add-VMGroupMember does not seem to work as described in https://technet.microsoft.com/en-us/itpro/powershell/windows/hyper-v/add-vmgroupmember
$vm = Get-VM -Name "ABC"
Add-VMGroupMember -Name "XYZ" -VM $vm
Add-VMGroupMember : The operation failed.
At line:1 char:1
+ Add-VMGroupMember -Name "CrmDBClu" -VM $vm -Verbose
+ CategoryInfo : InvalidArgument: (:) [Add-VMGroupMember], Virtualizatio
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.A
PowerShell version: 5.1.14393.1480
Windows Server 2016
I know this is late, but I found out that the VM's configuration version has to be on version 8.0 or higher for that to work.