Add-VBRCloudSubTenant
Short Description
Creates cloud subtenant accounts.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Add-VBRCloudSubTenant -Tenant <VBRCloudTenant> -Name <string> -Password <string> -Resources <VBRCloudSubTenantResource[]> [-Description <string>] [-HashedPassword] [-Disabled] [<CommonParameters>] |
Detailed Description
This cmdlet creates a new cloud subtenant account.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Tenant |
Specifies the parent tenant. The cmdlet will use resources of this tenant as parent resources for the subtenant. |
Accepts the VBRCloudTenant object. To get this object, run the Get-VBRCloudTenant cmdlet. |
True |
Named |
True (ByValue, |
|
Name |
Specifies the name you want to assign to the subtenant account. The subtenant name must meet the following requirements:
|
String |
True |
Named |
False |
|
Password |
Specifies the password you want to set to the subtenant account. |
String |
True |
Named |
False |
|
Resources |
Specifies the quota of the subtenant backup resources you want to give to the subtenant. |
Accepts the VBRCloudSubTenantResource[] object. To get this object, run the New-VBRCloudSubtenantResource cmdlet. |
True |
Named |
False |
|
Description |
Specifies the description of the cloud subtenant account. |
String |
False |
Named |
False |
|
HashedPassword |
Defines that you submit the hashed password. The hashed passwords are stored in Veeam backup database. Use this parameter, for example, to restore subtenant accounts. |
SwitchParameter |
False |
Named |
False |
|
Disabled |
Defines that the cloud subtenant is disabled. |
SwitchParameter |
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Creating Cloud Subtenant Account
This example shows how to create a cloud subtenant account.
|
$parent = Get-VBRCloudTenant -Name "ABC Company" $parentresource = $parent.Resources[0] $subtenantquota = New-VBRCloudSubtenantResource -Parent $parentresource -RepositoryFriendlyName "ABC Cloud Repository" -Unlimited $tenant = Get-VBRCloudTenant -Name "Alpha" Add-VBRCloudSubTenant -Tenant $tenant -Name "Alpha" -Password "Pass123" -Resources $subtenantquota |
Perform the following steps:
- Run the Get-VBRCloudTenant cmdlet. Specify the Name parameter value. Save the result to the $parent variable.
- Get the parent resources using the Resources property of the VBRCloudTenantResource object saved to the $parent variable. Save the result to the $parentresource variable.
- Run the New-VBRCloudSubTenantResource cmdlet for details. Set the $parentresource variable as the Parent parameter value. Specify the RepositoryFriendlyName parameter value. Provide the Unlimited parameter. Save the result to the $subtenantquota variable.
- Run the Get-VBRCloudTenant cmdlet. Specify the Name parameter value. Save the result to the $tenant variable.
- Run the Add-VBRCloudSubTenant cmdlet. Specify the following settings:
- Set the $tenant variable as the Tenant parameter value.
- Specify the Name and the Password parameter values.
- Set the $subtenantquota variable as the Resources parameter value.
Related Commands