vRanger PowerShell cmdlet insufficient to mark VMs in backup groups as deleted in vRanger SQL DB.
Use command below, which has a 3 line SQL command which when is run from PowerShell after the cmdlet 'Remove-BackupGroupMember' command. This should take care of the orphaned VMs and update the database. There should then be no more duplicate VMs backed up when part of a backup group.
$mycommand='use vRangerPro;update BackupGroupMembers set IsDeleted=1 where NodeName="'+$vm.Name+'" and InventoryNodeVirtualizationObjectId="'+$vm.VirtualizationObjectRefID+'" and IsDeleted=0'
echo $mycommand >temp.txt
sqlcmd -S <192.168.0.1>\vRangerPro -U <user> -P <pass> -i temp.txt
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center