Add-MgmtSvcListQuota

Adds a list quota.

Syntax

Add-MgmtSvcListQuota [-QuotaList] <PlanQuotaUpdate> [[-Quota] <ServiceQuota>] [<CommonParameters>]
Add-MgmtSvcListQuota [-QuotaList] <PlanQuotaUpdate> [-ServiceName] <String> [-ServiceInstanceId] <String>
 [<CommonParameters>]

Description

The Add-MgmtSvcListQuota cmdlet adds a list quota.

Examples

Example 1: Add a 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
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.

Parameters

-Quota

Specifies a service quota object.

Type:ServiceQuota
Required:False
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-QuotaList

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

Type:PlanQuotaUpdate
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-ServiceInstanceId

Specifies the ID of a service instance.

Type:String
Required:True
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-ServiceName

Specifies the name of a service.

Type:String
Required:True
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False