Add-MgmtSvcListQuota

Add-MgmtSvcListQuota

Adds a list quota.

Syntax

Parameter Set: ByProperties
Add-MgmtSvcListQuota [-QuotaList] <PlanQuotaUpdate> [-ServiceName] <String> [-ServiceInstanceId] <String> [ <CommonParameters>]

Parameter Set: ByObject
Add-MgmtSvcListQuota [-QuotaList] <PlanQuotaUpdate> [[-Quota] <ServiceQuota> ] [ <CommonParameters>]


 

Detailed Description

The Add-MgmtSvcListQuota cmdlet adds a list quota.

Parameters

-Quota<ServiceQuota>

Specifies a service quota object.

 

Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-QuotaList<PlanQuotaUpdate>

Specifies a quota list object. To create a quota list object, use the New-MgmtSvcQuotaList cmdlet.

 

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-ServiceInstanceId<String>

Specifies the ID of a service instance.

 

Aliases

none

Required?

true

Position?

3

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-ServiceName<String>

Specifies the name of a service.

 

Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Examples

Example 1: Add a list quota

NOTE: This example assumes that you have created a token by using Get-MgmtSvcToken and have stored it in a variable named $Token.

The first command gets the resource provider object named sqlservers and stores the object in ther $sqlserverRP variable.

The second command creates a quota list and stores the quota list object in the $QuotaList variable.

The last command adds the list quota.

PS C:\> $sqlserverRP = Get-MgmtSvcResourceProvider -AdminUri "https://Computer01:30004" -Token $Token -DisableCertificateValidation -Name sqlservers
 PS C:\> $QuotaList = New-MgmtSvcQuotaList
 PS C:\> Add-MgmtSvcListQuota -QuotaList $QuotaList -ServiceName sqlservers -ServiceInstanceId $sqlserverRP.InstanceId

 

Related topics

New-MgmtSvcQuotaList