Set-SCUserRoleQuota

Modifies the settings for a user role quota.

Description

The Set-SCUserRoleQuota modifies the settings for a System Center Virtual Machine Manager (VMM) user role quota.

For more information about Set-SCUserRoleQuota, type: "Get-Help Set-SCUserRoleQuota -online".

Parameters

Cloud

Required? true
Accept Pipeline Input? false
Position? named
Specifies a private cloud object.

JobGroup

Required? true
Accept Pipeline Input? false
Position? named
Specifies an identifier for a series of commands that will run as a set just before the final command that includes the same job group identifier runs. 

CPUCount

Required? false
Accept Pipeline Input? false
Position? named
Specifies the number of virtual CPUs for a user role quota or cloud capacity.

CustomQuotaCount

Required? false
Accept Pipeline Input? false
Position? named
Specifies the number of custom quota points for a user role quota or cloud capacity.

JobVariable

Required? false
Accept Pipeline Input? false
Position? named
Specifies that job progress is tracked and stored in the variable named by this parameter. 

MemoryMB

Required? false
Accept Pipeline Input? false
Position? named
Specifies the amount of memory in megabytes (MB) for a user role quota or cloud capacity.

PROTipID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

QuotaPerUser

Required? false
Accept Pipeline Input? false
Position? named
Indicates whether the cmdlet sets or retrieves user level quotas or member level quotas. Specifying $True indicates member level quotas. Specifying $False indicates role level quotas. If the parameter is not used, both quotas are set or returned.

RunAsynchronously

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the job runs asynchronously so that control returns to the command shell immediately. 

StorageGB

Required? false
Accept Pipeline Input? false
Position? named
Specifies the amount of storage in gigabytes (GB) for a user role quota or cloud capacity. This storage amount does not include library storage.

UseCPUCountMaximum

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the maximum number of virtual CPUs is allowed for a user role or cloud capacity. When this parameter is used, no quota is enforced for the virtual CPU dimension.

UseCustomQuotaCountMaximum

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the maximum number of custom quota points is allowed for a user role or cloud capacity. When this parameter is used, no quota is enforced for the custom quota dimension.

UseMaximumQuota

Required? false
Accept Pipeline Input? false
Position? named
Indicates that all quota dimensions are set to maximum. When this parameter is used, no quotas are enforced.

UseMemoryMBMaximum

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the maximum amount of memory, in megabytes (MB), is allowed for a user role or cloud capacity. When this parameter is used, no quota is enforced for the memory dimension.

UseStorageGBMaximum

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the maximum amount of storage, in gigabytes (GB), is allowed for a user role or cloud capacity. When this parameter is used, no quota is enforced for the storage dimension.

UseVMCountMaximum

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the maximum number of virtual machines is allowed for a user role or cloud capacity. When this parameter is used, no quota is enforced for the virtual machine dimension.

VMCount

Required? false
Accept Pipeline Input? false
Position? named
Specifies the number of virtual machines for a user role quota or cloud capacity.

VMMServer

Required? false
Accept Pipeline Input? false
Position? named
Specifies a VMM server object.

JobVariable

Required? false
Accept Pipeline Input? false
Position? named
Specifies that job progress is tracked and stored in the variable named by this parameter. 

PROTipID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

QuotaPerUser

Required? false
Accept Pipeline Input? false
Position? named
Indicates whether the cmdlet sets or retrieves user level quotas or member level quotas. Specifying $True indicates member level quotas. Specifying $False indicates role level quotas. If the parameter is not used, both quotas are set or returned.

RunAsynchronously

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the job runs asynchronously so that control returns to the command shell immediately. 

UseMaximumQuota

Required? false
Accept Pipeline Input? false
Position? named
Indicates that all quota dimensions are set to maximum. When this parameter is used, no quotas are enforced.

UserRoleQuota

Required? false
Accept Pipeline Input? false
Position? named
Specifies a user role quota object.

VMMServer

Required? false
Accept Pipeline Input? false
Position? named
Specifies a VMM server object.

CPUCount

Required? false
Accept Pipeline Input? false
Position? named
Specifies the number of virtual CPUs for a user role quota or cloud capacity.

CustomQuotaCount

Required? false
Accept Pipeline Input? false
Position? named
Specifies the number of custom quota points for a user role quota or cloud capacity.

JobVariable

Required? false
Accept Pipeline Input? false
Position? named
Specifies that job progress is tracked and stored in the variable named by this parameter. 

MemoryMB

Required? false
Accept Pipeline Input? false
Position? named
Specifies the amount of memory in megabytes (MB) for a user role quota or cloud capacity.

PROTipID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

RunAsynchronously

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the job runs asynchronously so that control returns to the command shell immediately. 

StorageGB

Required? false
Accept Pipeline Input? false
Position? named
Specifies the amount of storage in gigabytes (GB) for a user role quota or cloud capacity. This storage amount does not include library storage.

UseCPUCountMaximum

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the maximum number of virtual CPUs is allowed for a user role or cloud capacity. When this parameter is used, no quota is enforced for the virtual CPU dimension.

UseCustomQuotaCountMaximum

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the maximum number of custom quota points is allowed for a user role or cloud capacity. When this parameter is used, no quota is enforced for the custom quota dimension.

UseMemoryMBMaximum

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the maximum amount of memory, in megabytes (MB), is allowed for a user role or cloud capacity. When this parameter is used, no quota is enforced for the memory dimension.

UserRoleQuota

Required? false
Accept Pipeline Input? false
Position? named
Specifies a user role quota object.

UseStorageGBMaximum

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the maximum amount of storage, in gigabytes (GB), is allowed for a user role or cloud capacity. When this parameter is used, no quota is enforced for the storage dimension.

UseVMCountMaximum

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the maximum number of virtual machines is allowed for a user role or cloud capacity. When this parameter is used, no quota is enforced for the virtual machine dimension.

VMCount

Required? false
Accept Pipeline Input? false
Position? named
Specifies the number of virtual machines for a user role quota or cloud capacity.

VMMServer

Required? false
Accept Pipeline Input? false
Position? named
Specifies a VMM server object.

Examples

1: Increase virtual machine count quota of a user role for a cloud.
PS C:\> $Cloud = Get-SCCloud -Name "Cloud01"
PS C:\> $Role = Get-SCUserRole -Name "ContosoSelfServiceUsers"
PS C:\> $Quota = Get-SCUserRoleQuota -Cloud $Cloud -UserRole $Role -QuotaPerUser $False
PS C:\> Write-Output $Quota.VMCount
PS C:\> if ($Quota.VMCount -lt 20) {Set-SCUserRoleQuota -UserRoleQuota $quota -VMCount 20}
The first command gets the cloud object named Cloud01 and stores the object in the $Cloud variable.

The second command gets the user role object named ContosoSelfServiceUsers and stores the object in the $Role variable.

The third command gets the user role quota for the cloud stored in $Cloud (Cloud01) and user role stored in $Role (ContosoSelfServiceUsers). The QuotaPerUser parameter set to false indicates that the quota for the user role will be returned.

The last command determines whether the virtual machine quota is less than 20. If it is, then it sets the quota to 20.

See Also