Hi all,
Am trying a script that compares vm in vcenter and replication object in veeam .
Vcenter - Get-vm | where{$_.name -notlike "*replica*"} | select Name,VMHost
Veeam - Get-VBRJob | ?{$_.JobType -eq "Replica"} | %{ $JobName = $_.Name;$_ | Get-VBRJobObject | ?{$_.Object.Type -eq "VM"} | Select @{ N="Job"; E={$JobName}}, Name }
I wish to compare vm's in vcenter with vm's in veeam and get it as a report like below format
Name | VMHost | Job | Replication Status |
vm1 | Host1 | Host1_Replication | Available |
vm2 | Host1 | Host1_Replication | Available |
vm3 | Host1 | Host1_Replication | Not Available |
I can make the first three columns, but don't know how to make the last column... Any help?