Have not found the code to add or change a VMs Path in an already existing backup job to a VMs and Templates folder.
Using the Add-VBRviBackupJob I am able to add a VM using the VMs and Templates folder using the -Entity option.
Code: Select all
$allvms = Find-VBRViEntity -VMsAndTemplates
$CreateJobVM = $allvms | ? { $_.name -in $VM }
Add-VBRViBackupJob -Name $CreateJobName -BackupRepository $CreateJobRep -Entity $CreateJobVM
the only cmdlet I have found to add another VM to this already created Backup Job is "Add-VBRJobObject".
I have not figured out how to add a VM using the "Add-VBRJobObject" cmdlet that uses the VMs and Templates view.
Is it possible?
Thanks