We are using powershell to get a list of VMs that we want to add to a backup job. Once we have the list in an array, we pass that to Find-VBRViEntity, but the resulting dataset results in each VM being added to the job twice:
It really looks like your Veeam server has the same vCenter added twice (perhaps once by name and another by IP or something?). I've trimmed the objects you've posted:
Reference : vm-100524
Id : be4990ef-0716-463e-896b-92ade225a97c_vm-100524
Name : vm1
Path : vcenter.domain.com\Datacenter\vm1
VmHostName : esx006.domain.com
ConnHostId : be4990ef-0716-463e-896b-92ade225a97c
Reference : vm-100524
Id : 375bfcdb-55bb-406a-adf3-c89816f59a6a_vm-100524
Name : vm1
Path : vcenter.domain.com\Datacenter\vm1
VmHostName : esx006.domain.com
ConnHostId : 375bfcdb-55bb-406a-adf3-c89816f59a6a
Notice that the ConnHostId is different between the two although everything else appears to be identical. You can use the following two commands to find the servers from a Veeam perspective:
My suggestion would be to get the correct name of the server that you want to be using, grab the server object, and pass that to the -Server parameter for Find-VBRViEntity so that you only return the specific object for the specific vCenter entry you want.