Quota - Get

Get the current quota (service limit) and usage of a resource. You can use the response from the GET operation to submit quota update request.

GET 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.

providerId
path True

string

Azure resource provider ID.

resourceName
path True

string

The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices

subscriptionId
path True

string

Azure subscription ID.

api-version
query True

string

API version.

Responses

Name Type Description
200 OK

CurrentQuotaLimitBase

OK. Returns the paginated quota information.

Headers

ETag: string

Other Status Codes

ExceptionResponse

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_ForCompute

Sample request

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimits/standardNDSFamily?api-version=2020-10-25

Sample response

{
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimits/standardNDSFamily",
  "name": "standardNDSFamily",
  "type": "Microsoft.Capacity/ServiceLimits",
  "properties": {
    "limit": 10,
    "unit": "Count",
    "currentValue": 0,
    "name": {
      "value": "standardNDSFamily",
      "localizedValue": "Standard NDS Family vCPUs"
    }
  }
}

Definitions

Name Description
CurrentQuotaLimitBase

Quota properties.

ExceptionResponse

The API error.

QuotaProperties

Quota properties for the resource.

ResourceName

Resource name provided by the resource provider. Use this property for quotaRequest parameter.

ResourceType

The name of the resource type.

ServiceError

The API error details.

ServiceErrorDetail

The error details.

CurrentQuotaLimitBase

Quota properties.

Name Type Description
id

string

The quota request ID.

name

string

The name of the quota request.

properties

QuotaProperties

Quota properties for the resource.

type

string

Type of resource. "Microsoft.Capacity/ServiceLimits"

ExceptionResponse

The API error.

Name Type Description
error

ServiceError

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

ResourceName

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

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.

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

ServiceErrorDetail[]

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.