Add-VBRCloudSubTenant
Short Description
Creates cloud subtenant accounts.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Add-VBRCloudSubTenant -Tenant <VBRCloudTenant> -Name <String> [-Description <String>] -Password <String> [-HashedPassword] [-Disabled] -Resources <VBRCloudSubTenantResource[]> [<CommonParameters>] |
Detailed Description
This cmdlet creates a new cloud subtenant account.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Description |
Specifies the description of the cloud subtenant account. |
|
False |
Named |
False |
|
Disabled |
Defines that the cloud subtenant is disabled. |
|
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. |
|
False |
Named |
False |
|
Name |
Specifies the name you want to assign to the subtenant account. The subtenant name must meet the following requirements:
|
|
True |
Named |
False |
|
Password |
Specifies the password you want to set to the subtenant account. |
|
True |
Named |
False |
|
Resources |
Specifies the quota of the subtenant backup resources you want to give to the subtenant.
Accepts the |
True |
Named |
False |
|
|
Tenant |
Specifies the parent tenant. The cmdlet will use resources of this tenant as parent resources for the subtenant.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
<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-VBRCloudTenantReturns cloud tenant accounts. cmdlet. Specify theNameparameter value. Save the result to the$parentvariable. - Get the parent resources using the
Resourcesproperty of theVBRCloudTenantResourceobject saved to the$parentvariable. Save the result to the$parentresourcevariable. - Run the
New-VBRCloudSubTenantResourceCreates quotas of cloud subtenant resources. cmdlet for details. Set the$parentresourcevariable as theParentparameter value. Specify theRepositoryFriendlyNameparameter value. Provide theUnlimitedparameter. Save the result to the$subtenantquotavariable. - Run the
Get-VBRCloudTenantReturns cloud tenant accounts. cmdlet. Specify theNameparameter value. Save the result to the$tenantvariable. - Run the
Add-VBRCloudSubTenantcmdlet. Specify the following settings:- Set the
$tenantvariable as theTenantparameter value. - Specify the
Nameand thePasswordparameter values. - Set the
$subtenantquotavariable as theResourcesparameter value.
- Set the
Related Commands
Get-VBRCloudTenantReturns cloud tenant accounts.