I can get the MountHostId with "(Get-VBRBackupRepository -ScaleOut -Name $repo | Get-VBRRepositoryExtent).Repository.MountHostId". But how can I translate the MountHostId to the server name?
MountHostId corresponds to a managed server id. Since backup proxies are built on top of managed servers and are new entities, they have separate ids. If you want to find server name by MountHostId, use Get-VBRServer:
I've a follow up. I now want to change the mount servers on a number of SOBR extents. Set-VBRBackupRepository -MountServer xxxx seems not to work as the extents are part of a SOBR and a Set-VBRServer command does not exist.
Since SOBR is a virtual container, extents continue to be repositories. They just hold the corresponding type nested on the backend,
so you can access it one layer down. The script below should do:
Thanks, that was basically my fist attempt, but I was just using "Set-VBRBackupRepository -Repository $extent -MountServer $server" and not $extent.Repository.