Add-VBRCloudSubUser
Short Description
Creates cloud subuser accounts.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Add-VBRCloudSubUser -CloudProvider <VBRCloudProvider> -Name <String> [-Description <String>] -Password <String> [-Disabled] -Resources <VBRCloudSubUserResource[]> [<CommonParameters>] |
Detailed Description
This cmdlet creates new cloud subuser accounts.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
CloudProvider |
Specifies the cloud provider. The resources of this provider will be parent for the subuser.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
Description |
Specifies the description of the cloud subuser account. |
|
False |
Named |
False |
|
Disabled |
Defines that the cloud subuser is disabled. |
|
False |
Named |
False |
|
Name |
Specifies the name you want to assign to the subuser account. The subuser name must meet the following requirements:
|
|
True |
Named |
False |
|
Password |
Specifies the password you want to set to the subuser account. |
|
True |
Named |
False |
|
Resources |
Specifies the quota of the subuser backup resources you want to give to the subuser.
Accepts the |
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Creating Cloud Subuser Account
This example shows how to create a cloud subuser account.
|
$cloudrepository = Get-VBRBackupRepository | Where {$_.Type -eq "Cloud"} | Select -First 1 $subuserquota = New-VBRCloudSubUserResource -CloudRepository $cloudrepository -RepositoryFriendlyName "Cloud Repository 1" -Quota 10 $cloudprovider = Get-VBRCloudProvider Add-VBRCloudSubUser -CloudProvider $cloudprovider -Name "Subuser 1" -Password "Pass 123" -Resources $subuserquota |
Perform the following steps:
- Run the
Get-VBRBackupRepositoryReturns a list of backup repositories. cmdlet. Pipe the cmdlet output to theWherecmdlet to filter repositories whereTypeproperty equalsCloud. Pipe the cmdlet output to theSelectcmdlet. Set the1number as theFirstparameter value. Save the result to the$cloudrepositoryvariable. - Run the
New-VBRCloudSubUserResourceCreates quotas of cloud subuser resources. cmdlet. Set the$cloudrepositoryvariable as theCloudRepositoryparameter value. Specify theRepositoryFriendlyNameand theQuotaparameter values. Save the result to the$subuserquotavariable. - Run the
Get-VBRCloudProviderReturns service providers. cmdlet. Save the result to the$cloudprovidervariable. - Run the
Add-VBRCloudSubUsercmdlet. Specify the following settings:- Set the
$cloudprovidervariable as theCloudProviderparameter value. - Specify the
Nameparameter value. - Specify the
Passwordparameter value. - Set the
$subuserquotavariable as theResourcesparameter value.
- Set the
Related Commands
Get-VBRCloudProviderReturns service providers.Get-VBRBackupRepositoryReturns a list of backup repositories.New-VBRCloudSubUserResourceCreates quotas of cloud subuser resources.