PowerShell script exchange
Post Reply
manuel.aigner
Enthusiast
Posts: 31
Liked: 5 times
Joined: Sep 25, 2017 8:25 am
Full Name: Manuel Aigner
Contact:

add additional proxy to Scale-Out Repo

Post by manuel.aigner »

Hi There,

I'm working on a script which will fully automated add a blank windows machine as a new veeam backup proxy.
The tasks "add to managed machines" and "add proxy role" has been finished.
Now I have to assign this Proxies to our Scale-Out Repos. We can't use auto assignement because of mandatory site awareness (each Scale-Out Repo has it's own set of proxies which is located on same site).

Due to our datacenter size of far over hundred esxi hosts and using hot-add feature we have a lot of proxies and the number is rapidly increasing.

I'm not sure how to add new proxies to a Repo without removing (overwriting) their old proxy set configuration.

I only found this way in helpcenter:

$repository = Get-VBRBackupRepository -Name "Backup Volume 01"
$proxy01 = Get-VBRViProxy -Name 172.17.53.5
$proxy02 = Get-VBRViProxy -Name 172.17.53.33
Set-VBRBackupRepository -Repository $repository -AffinityMode manual -AffinityProxy $proxy01, $proxy02

But if I do so I think my repo becomes assigned proxy01 and proxy02 and looses the association to all formally configured proxies, right?

How can I add new Proxies without loosing the formally configured ones??

Many thanks in advance
veremin
Product Manager
Posts: 20282
Liked: 2257 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: add additional proxy to Scale-Out Repo

Post by veremin » 1 person likes this post

You can:

- Get required extent

Code: Select all

asnp VeeamPSSnapin
$SOBR = Get-VBRBackupRepository -ScaleOut -Name "Name of your SOBR"
$Extent = Get-VBRRepositoryExtent -Repository $SOBR | where {$_.name -eq "Name of your extent"}
$Repository = $Extent.Repository
-Get proxy servers that are assigned to it

Code: Select all

Get-VBRViProxy | where {($_.GetProxyAffinityInfo().repositoryaffinityInfos.id -eq $Repository.id) -and ($_.GetProxyAffinityInfo().repositoryaffinityInfos.AutoDetectAffinityProxies -ne $False)}
- Get newly added proxy servers
- Create an array of proxy servers (already assigned proxy servers + newly added proxy servers)
- Assign the array of proxy servers to the SOBR extent

Thanks!
manuel.aigner
Enthusiast
Posts: 31
Liked: 5 times
Joined: Sep 25, 2017 8:25 am
Full Name: Manuel Aigner
Contact:

Re: add additional proxy to Scale-Out Repo

Post by manuel.aigner » 1 person likes this post

Hi Vladimir,

many thanks. It works :)
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests