I am trying to do a script to seed mapping VMs from Replicas job: (followed this documentation exaple3 https://helpcenter.veeam.com/docs/backu ... tml?ver=95)
Code: Select all
$job = Get-VBRJob -Name "replica-test"
$originalvm = Find-VBRViEntity -Server "orghost" -Name "testVM1"
$replicavm = Find-VBRViEntity -Server "dsthost" -Name "testVM1_replica"
Set-VBRViReplicaJob -Job $job -EnableVMMapping -OriginalVM $originalvm -ReplicaVM $replicavm
Code: Select all
$job = Get-VBRJob -Name "replica-test"
$originalvm = Find-VBRViEntity -Server "orghost" -Name "testVM1"
$replicavm = Find-VBRViEntity -Server "dsthost" -Name "testVM1_replica"
Set-VBRViReplicaJob -Job $job -EnableVMMapping -OriginalVM $originalvm -ReplicaVM $replicavm
$originalvm = Find-VBRViEntity -Server "orghost" -Name "testVM2"
$replicavm = Find-VBRViEntity -Server "dsthost" -Name "testVM2_replica"
Set-VBRViReplicaJob -Job $job -EnableVMMapping -OriginalVM $originalvm -ReplicaVM $replicavm
$originalvm = Find-VBRViEntity -Server "orghost" -Name "testVM3"
$replicavm = Find-VBRViEntity -Server "dsthost" -Name "testVM3_replica"
Set-VBRViReplicaJob -Job $job -EnableVMMapping -OriginalVM $originalvm -ReplicaVM $replicavm
If I try it again and stop the scrip when it is working on the second VM, powershell shows me the testVM1 and testVM3 without mapping and testVM2 mapped.
Is it possible configure the mapping for all these vm at same time? If we do it via Veeam Replication & Backup with the GUI we can do it, but with command line... it does not work...
Someone had the same problem?
Best regards,
Simpelacc