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>]
The Add-MgmtSvcListQuota cmdlet adds a list quota.
Specifies a service quota object.
Aliases |
none |
Required? |
false |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
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 |
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 |
Specifies the name of a service.
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
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