Quota - Update
Update the quota (service limits) of this resource to the requested value.
• To get the quota information for specific resource, send a GET request.
• To increase the quota, update the limit field from the GET response to a new value.
• To update the quota value, submit the JSON response to the quota request API to update the quota.
• To update the quota. use the PATCH operation.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits/{resourceName}?api-version=2020-10-25
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
location
|
path | True |
string |
Azure region. |
provider
|
path | True |
string |
Azure resource provider ID. |
resource
|
path | True |
string |
The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices |
subscription
|
path | True |
string |
Azure subscription ID. |
api-version
|
query | True |
string |
API version. |
Request Body
Name | Type | Description |
---|---|---|
properties |
Quota properties for the resource. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK. Returns details of the quota request. |
|
201 Created |
The request is accepted and is being processed. Use the requestId parameter to check the status. |
|
Other Status Codes |
Error description in the response. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Quotas_Request_PatchForCompute
Sample request
PATCH https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimits/standardFSv2Family?api-version=2020-10-25
{
"properties": {
"limit": 200,
"unit": "Count",
"name": {
"value": "standardFSv2Family"
}
}
}
Sample response
{
"id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"type": "Microsoft.Capacity/ServiceLimits",
"properties": {
"provisioningState": "InProgress",
"message": ""
}
}
{
"id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"type": "Microsoft.Capacity/serviceLimits",
"properties": {
"limit": 200,
"unit": "Count",
"currentValue": 160,
"name": {
"value": "standardFSv2Family",
"localizedValue": "Standard FSv2 Family vCPUs"
},
"quotaPeriod": "",
"properties": {}
}
}
Definitions
Name | Description |
---|---|
Current |
Quota properties. |
Exception |
The API error. |
Quota |
Quota properties for the resource. |
Quota |
The quota request status. |
Quota |
Response with request ID that the quota request was accepted. |
Resource |
Resource name provided by the resource provider. Use this property for quotaRequest parameter. |
Resource |
The name of the resource type. |
Service |
The API error details. |
Service |
The error details. |
CurrentQuotaLimitBase
Quota properties.
Name | Type | Description |
---|---|---|
id |
string |
The quota request ID. |
name |
string |
The name of the quota request. |
properties |
Quota properties for the resource. |
|
type |
string |
Type of resource. "Microsoft.Capacity/ServiceLimits" |
ExceptionResponse
The API error.
Name | Type | Description |
---|---|---|
error |
The API error details. |
QuotaProperties
Quota properties for the resource.
Name | Type | Description |
---|---|---|
currentValue |
integer |
Current usage value for the resource. |
limit |
integer |
Quota properties. |
name |
Name of the resource provide by the resource provider. Use this property for quotaRequests resource operations. |
|
properties |
object |
Additional properties for the specified resource provider. |
quotaPeriod |
string |
The time period over which the quota usage values are summarized. For example, P1D (per one day), PT1M (per one minute), and PT1S (per one second). This parameter is optional because, for some resources such as compute, the time period is irrelevant. |
resourceType |
The name of the resource type. |
|
unit |
string |
The limit units, such as count and bytes. Use the unit field provided in the response of the GET quota operation. |
QuotaRequestState
The quota request status.
Name | Type | Description |
---|---|---|
Accepted |
string |
|
Failed |
string |
|
InProgress |
string |
|
Invalid |
string |
|
Succeeded |
string |
QuotaRequestSubmitResponse201
Response with request ID that the quota request was accepted.
Name | Type | Description |
---|---|---|
id |
string |
The quota request ID. Use the requestId parameter to check the request status. |
name |
string |
Operation ID |
properties.message |
string |
A user friendly message. |
properties.provisioningState |
The details of the quota request status. |
|
type |
string |
Resource type |
ResourceName
Resource name provided by the resource provider. Use this property for quotaRequest parameter.
Name | Type | Description |
---|---|---|
localizedValue |
string |
Resource display localized name. |
value |
string |
Resource name. |
ResourceType
The name of the resource type.
Name | Type | Description |
---|---|---|
dedicated |
string |
|
lowPriority |
string |
|
serviceSpecific |
string |
|
shared |
string |
|
standard |
string |
ServiceError
The API error details.
Name | Type | Description |
---|---|---|
code |
string |
The error code. |
details |
The list of error details. |
|
message |
string |
The error message text. |
ServiceErrorDetail
The error details.
Name | Type | Description |
---|---|---|
code |
string |
The error code. |
message |
string |
The error message. |