Actually I am writing a little automation for our veeam cloud backup and I am struggling with disabling the wan accelerator on a tenant.
Reading the tenant and his repository Data:
Code: Select all
$TenantName = "TestTenant"
$TenantToEdit = Get-VBRCloudTenant -Name $TestTenant -WarningAction SilentlyContinue
$TenantRepository = $TenantToEdit.resources[0]
$WanAccelerator = Get-VBRWANAccelerator -Name $global:VeeamCoudConnectWanAccelerator
Code: Select all
$TenantResource = Set-VBRCloudTenantResource -CloudTenantResource $TenantRepository -WarningAction SilentlyContinue –EnableWanAccelerator –WanAccelerator $WanAccelerator
Set-VBRCloudTenant -CloudTenant $TenantToEdit -Resources $TenantResource -WarningAction SilentlyContinue
Code: Select all
$TenantResource = Set-VBRCloudTenantResource -CloudTenantResource $TenantRepository -WarningAction SilentlyContinue –EnableWanAccelerator:$false
The flag WanAcceleratorEnabeld will be set to false but when I apply this changes with
Code: Select all
Set-VBRCloudTenant -CloudTenant $TenantToEdit -Resources $TenantResource -WarningAction SilentlyContinue
Maybe it is necessary to reset the WanAccelerator Flag on the object but it is not possible to set it to $null.
Maybe someone have an idea what mistake I have made?
Kind Regards
Stefan