-
- Service Provider
- Posts: 26
- Liked: 9 times
- Joined: Mar 18, 2014 9:13 am
- Full Name: Mats
Add-VBRCloudTenant cmdlet with GatewayPool example
Hi
We are using PowerShell script when creating new Cloud Connect customers.
We are having problem to add gatewaypool to new tenants.
Anyone having example how to add gatewaypool to a cloud tenant?
We are using PowerShell script when creating new Cloud Connect customers.
We are having problem to add gatewaypool to new tenants.
Anyone having example how to add gatewaypool to a cloud tenant?
Mats
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Add-VBRCloudTenant cmdlet with GatewayPool example
Don't have CC environment at the moment, but the following script should do the trick:
Thanks!
Code: Select all
Asnp VeeamPSSnapin
$Tenant = Get-VBRCloudTenant -name "Name of your Tenant"
$CloudGateway = Get-VBRCloudGatewayPool -name "Name of your cloud gateway pool"
Set-VBRCloudTenant -CloudTenant $Tenant -GatewaySelectionType GatewayPool -GatewayPool $GatewayPool
-
- Service Provider
- Posts: 26
- Liked: 9 times
- Joined: Mar 18, 2014 9:13 am
- Full Name: Mats
Re: Add-VBRCloudTenant cmdlet with GatewayPool example
Still not working
We are using Add-VBRCloudTenant
Missing an argument for parameter 'GatewayPool'. Specify a parameter of type 'Veeam.Backup.PowerShell.Infos.VBRCloudGatewayPool[]' and try again
We are using Add-VBRCloudTenant
Missing an argument for parameter 'GatewayPool'. Specify a parameter of type 'Veeam.Backup.PowerShell.Infos.VBRCloudGatewayPool[]' and try again
Mats
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Add-VBRCloudTenant cmdlet with GatewayPool example
Have you tried to specify a value for it?
Thanks!
Code: Select all
$CloudGateway = Get-VBRCloudGatewayPool -name "Name of your cloud gateway pool"
Add-VBRCloudTenant <your code> -GatewaySelectionType GatewayPool -GatewayPool $GatewayPool
-
- Service Provider
- Posts: 26
- Liked: 9 times
- Joined: Mar 18, 2014 9:13 am
- Full Name: Mats
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Add-VBRCloudTenant cmdlet with GatewayPool example
And still have the issue mentioned above? Let me double check it, then. Thanks!
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Add-VBRCloudTenant cmdlet with GatewayPool example
Can you post your code here? I've just checked the provided example and everything gone as expected. Thanks!
-
- Service Provider
- Posts: 26
- Liked: 9 times
- Joined: Mar 18, 2014 9:13 am
- Full Name: Mats
Re: Add-VBRCloudTenant cmdlet with GatewayPool example
$CloudGateway = Get-VBRCloudGatewayPool -name "Gateway_Pool01"
Add-VBRCloudTenant -Name $VBR_Tenant_Username -Password $VBR_Tenant_Password -Description $VBR_Tenant_Description -Resources $VBR_Cloud_Repository -EnableThrottling -ThrottlingValue $VBR_Cloud_ThrottlingMbit -ThrottlingUnit MbitPerSec -GatewaySelectionType GatewayPool -GatewayPool $GatewayPool | Out-Null
Thanks
Add-VBRCloudTenant -Name $VBR_Tenant_Username -Password $VBR_Tenant_Password -Description $VBR_Tenant_Description -Resources $VBR_Cloud_Repository -EnableThrottling -ThrottlingValue $VBR_Cloud_ThrottlingMbit -ThrottlingUnit MbitPerSec -GatewaySelectionType GatewayPool -GatewayPool $GatewayPool | Out-Null
Thanks
Mats
-
- Service Provider
- Posts: 26
- Liked: 9 times
- Joined: Mar 18, 2014 9:13 am
- Full Name: Mats
-
- Service Provider
- Posts: 26
- Liked: 9 times
- Joined: Mar 18, 2014 9:13 am
- Full Name: Mats
Re: Add-VBRCloudTenant cmdlet with GatewayPool example
Still not working
$GatewayPool = Get-VBRCloudGatewayPool -name "Gateway_Pool01"
Add-VBRCloudTenant -Name $VBR_Tenant_Username -Password $VBR_Tenant_Password -Description $VBR_Tenant_Description -Resources $VBR_Cloud_Repository -EnableThrottling -ThrottlingValue $VBR_Cloud_ThrottlingMbit -ThrottlingUnit MbitPerSec -GatewaySelectionType GatewayPool -GatewayPool $GatewayPool | Out-Null
Thanks
$GatewayPool = Get-VBRCloudGatewayPool -name "Gateway_Pool01"
Add-VBRCloudTenant -Name $VBR_Tenant_Username -Password $VBR_Tenant_Password -Description $VBR_Tenant_Description -Resources $VBR_Cloud_Repository -EnableThrottling -ThrottlingValue $VBR_Cloud_ThrottlingMbit -ThrottlingUnit MbitPerSec -GatewaySelectionType GatewayPool -GatewayPool $GatewayPool | Out-Null
Thanks
Mats
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Add-VBRCloudTenant cmdlet with GatewayPool example
The code works in my environment without any issues. What exact issue do you see - the one mentioned above (regarding missing parameter)? Thanks!
-
- Service Provider
- Posts: 26
- Liked: 9 times
- Joined: Mar 18, 2014 9:13 am
- Full Name: Mats
Re: Add-VBRCloudTenant cmdlet with GatewayPool example
It´s working now after we added Get-VBRCloudGatewayPool and reloaded the main script.
Thanks for your help
Code: Select all
$GatewayPool = Get-VBRCloudGatewayPool -name "Gateway_Pool01"
Add-VBRCloudTenant -Name $VBR_Tenant_Username -Password $VBR_Tenant_Password -Description $VBR_Tenant_Description -Resources $VBR_Cloud_Repository -EnableThrottling -ThrottlingValue $VBR_Cloud_ThrottlingMbit -ThrottlingUnit MbitPerSec -GatewaySelectionType GatewayPool -GatewayPool $GatewayPool | Out-Null
Mats
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Add-VBRCloudTenant cmdlet with GatewayPool example
Glad to hear my input was helpful. If you need any other help with scripting, let me know. Thanks!
Who is online
Users browsing this forum: aruns and 10 guests