Quota - Get

Get the quota limit of a resource. The response can be used to determine the remaining quota to calculate a new quota limit that can be submitted with a PUT request.

GET https://management.azure.com/{scope}/providers/Microsoft.Quota/quotas/{resourceName}?api-version=2023-02-01

URI Parameters

Name In Required Type Description
resourceName
path True

string

Resource name for a given resource provider. For example:

  • SKU name for Microsoft.Compute
  • SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices

For Microsoft.Network PublicIPAddresses.

scope
path True

string

The target Azure resource URI. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/. This is the target Azure resource URI for the List GET operation. If a {resourceName} is added after /quotas, then it's the target Azure resource URI in the GET operation for the specific resource.

api-version
query True

string

The API version to use for this operation.

Responses

Name Type Description
200 OK

CurrentQuotaLimitBase

OK. The quota information will be returned in the response with pagination.

Headers

ETag: string

Other Status Codes

ExceptionResponse

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth 2.0 authorization

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation Impersonate your user account.

Examples

Quotas_Get_Request_ForCompute
Quotas_UsagesRequest_ForNetwork

Quotas_Get_Request_ForCompute

Sample Request

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotas/standardNDSFamily?api-version=2023-02-01

Sample Response

{
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardNDSFamily",
  "type": "Microsoft.Quota/Quotas",
  "name": "standardNDSFamily",
  "properties": {
    "limit": {
      "limitObjectType": "LimitValue",
      "value": 100,
      "limitType": "Independent"
    },
    "unit": "Count",
    "name": {
      "value": "standardNDSFamily",
      "localizedValue": "Standard NDS Family vCPUs"
    },
    "isQuotaApplicable": true
  }
}

Quotas_UsagesRequest_ForNetwork

Sample Request

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/quotas/MinPublicIpInterNetworkPrefixLength?api-version=2023-02-01

Sample Response

{
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/providers/Microsoft.Quota/Quotas/MinPublicIpInterNetworkPrefixLength",
  "type": "Microsoft.Quota/Quotas",
  "name": "MinPublicIpInterNetworkPrefixLength",
  "properties": {
    "limit": {
      "limitObjectType": "LimitValue",
      "value": 10
    },
    "name": {
      "value": "MinPublicIpInterNetworkPrefixLength",
      "localizedValue": "Min Public Ip InterNetwork Prefix Length"
    },
    "unit": "Count",
    "isQuotaApplicable": true,
    "resourceType": "MinPublicIpInterNetworkPrefixLength"
  }
}

Definitions

Name Description
CurrentQuotaLimitBase

Quota limit.

ExceptionResponse

Error.

LimitObject

The resource quota limit value.

quotaLimitTypes

The quota or usages limit types.

QuotaProperties

Quota properties for the specified resource.

ResourceName

Name of the resource provided by the resource Provider. When requesting quota, use this property name.

ServiceError

API error details.

ServiceErrorDetail

Error details.

CurrentQuotaLimitBase

Quota limit.

Name Type Description
id

string

The resource ID.

name

string

The resource name.

properties

QuotaProperties

Quota properties for the specified resource, based on the API called, Quotas or Usages.

type

string

The resource type.

ExceptionResponse

Error.

Name Type Description
error

ServiceError

API error details.

LimitObject

The resource quota limit value.

Name Type Description
limitObjectType string:

LimitValue

The limit object type.

limitType

quotaLimitTypes

The quota or usages limit types.

value

integer

The quota/limit value

quotaLimitTypes

The quota or usages limit types.

Name Type Description
Independent

string

Shared

string

QuotaProperties

Quota properties for the specified resource.

Name Type Description
isQuotaApplicable

boolean

States if quota can be requested for this resource.

limit LimitJsonObject:

LimitObject

Resource quota limit properties.

name

ResourceName

Resource name provided by the resource provider. Use this property name when requesting quota.

properties

object

Additional properties for the specific 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) *PT1S (per one second). This parameter is optional because, for some resources like compute, the period is irrelevant.

resourceType

string

The name of the resource type. Optional field.

unit

string

The quota units, such as Count and Bytes. When requesting quota, use the unit value returned in the GET response in the request body of your PUT operation.

ResourceName

Name of the resource provided by the resource Provider. When requesting quota, use this property name.

Name Type Description
localizedValue

string

Resource display name.

value

string

Resource name.

ServiceError

API error details.

Name Type Description
code

string

Error code.

details

ServiceErrorDetail[]

List of error details.

message

string

Error message.

ServiceErrorDetail

Error details.

Name Type Description
code

string

Error code.

message

string

Error message.