I use this script for updating bulk our backup repository to use specific proxy for affinity and work fine without errors or problem before upgrading VBR from version 12.0.0.1420 P20230718 to 12.1.0.21.31.
Code: Select all
$VeeamProxies = Get-VBRViProxy | where { $_.IsDisabled -eq $false}
$repos = Get-VBRBackupRepository | where { $_.IsUnavailable -eq $false }
foreach ($repo in $repos) {
# Set automatic affinity
Set-VBRBackupRepository -AffinityMode Auto -ErrorAction Ignore -Repository $repo
# If repository are Object Storage
if ($repo.IsObjectStorageRepository -eq $true) {
$repositoryCredentials = Get-VBRAmazonAccount | where { $_.id -eq $repo.Credentials.Id }
# Affinity with specific proxy for Object Storage repository
Set-VBRBackupRepository -AffinityMode Manual -AffinityProxy $VeeamProxies -ErrorAction Ignore -Repository $repo -Credentials $repositoryCredentials
} else {
# Affinity with specific proxy for all others repository
Set-VBRBackupRepository -AffinityMode Manual -AffinityProxy $VeeamProxies -ErrorAction Ignore -Repository $repo
}
}
Set-VBRBackupRepository : Repository Wasabi does not support the immutable backups feature.
At line:1 char:1
+ Set-VBRBackupRepository -AffinityMode Auto -Repository $repo
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Set-VBRBackupRepository], Exception
+ FullyQualifiedErrorId : System.Exception,Veeam.Backup.PowerShell.Cmdlets.SetVBRBackupRepository
I not find solution at the moment.
With RestAPI I not find possibility to set affinity to repository.
Has this happened to any of you or do you know how to fix it ?
Thanks in advance
Manu