according to documentation it should be possible by rewriting BackupObject using Set-VBRComputerBackupJob, but I thought maybe there is some more elegance way, something similar to VM removing
could you suggest me some method?
You have the correct way, use Set-VBRComputerBackupJob for this and just rebuild an array of Discovered Computers or Protection Groups and pass them to the -BackupObject parameter.
Though the idea makes sense, it would be nice way to expand on the Agent cmdlet sets, so let's consider it an enhancement request for the Agent cmdlets, and use Set-VBRComputerBackupJob for now.
David Domask | Product Management: Principal Analyst
Thanks for sharing your solution! And indeed a few of the cmdlets still interact like that and can lead to some rabbit holes like this, but you have the right way of addressing this
David Domask | Product Management: Principal Analyst