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.

Required Parameters

-QuotaList

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

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

Specifies the ID of a service instance.

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

Specifies the name of a service.

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

Optional Parameters

-Quota

Specifies a service quota object.

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