az quota

Note

This reference is part of the quota extension for the Azure CLI (version 2.15.0 or higher). The extension will automatically install the first time you run an az quota command. Learn more about extensions.

Manage Azure Quota Extension API.

Commands

az quota create

Create the quota limit for the specified resource with the requested value.

az quota list

Get a list of current quota limits of all resources for the specified scope. The response from this GET operation can be leveraged to submit requests to update a quota.

az quota operation

Manage quota operation with quota.

az quota operation list

List all the operations supported by the Microsoft.Quota resource provider.

az quota request

Manage quota request with quota.

az quota request status

Manage quota request status with quota.

az quota request status list

For the specified scope, get the current quota requests for a one year period ending at the time is made. Use the oData filter to select quota requests.

az quota request status show

Get the quota request details and status by quota request ID for the resources of the resource provider at a specific location. The quota request ID id is returned in the response of the PUT operation.

az quota show

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.

az quota update

Update the quota limit for a specific resource to the specified value.

az quota usage

Manage usage with quota.

az quota usage list

Get a list of current usage for all resources for the scope specified.

az quota usage show

Get the current usage of a resource.

az quota wait

Place the CLI in a waiting state until a condition of the quota is met.

az quota create

Create the quota limit for the specified resource with the requested value.

az quota create --resource-name
                --scope
                [--limit-object]
                [--no-wait]
                [--properties]
                [--resource-type]

Examples

Quotas_PutRequest_ForNetwork

az quota create --resource-name "MinPublicIpInterNetworkPrefixLength" --scope "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus" --limit-object value=10 limit-object-type=LimitValue --resource-type MinPublicIpInterNetworkPrefixLength

Quotas_PutRequest_ForNetwork_StandardSkuPublicIpAddressesResource

az quota create --resource-name "StandardSkuPublicIpAddresses" --scope "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus" --limit-object value=10 limit-object-type=LimitValue --resource-type PublicIpAddresses

Quotas_Put_Request_ForCompute

az quota create --resource-name "standardFSv2Family" --scope "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus" --limit-object value=10 limit-object-type=LimitValue --resource-type dedicated

Quotas_Request_ForMachineLearningServices_LowPriorityResource

az quota create  --resource-name "TotalLowPriorityCores" --scope "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearning/Services/locations/eastus" --limit-object value=10 limit-object-type=LimitValue --resource-type lowPriority

Required Parameters

--resource-name

The resource name for a given resource provider.

--scope

The target Azure resource URI.

Optional Parameters

--limit-object

The resource quota limit value.

--no-wait

Do not wait for the long-running operation to finish.

--properties

The additional properties for the specific resource provider.

--resource-type

The resource type name.

az quota list

Get a list of current quota limits of all resources for the specified scope. The response from this GET operation can be leveraged to submit requests to update a quota.

az quota list --scope

Examples

Quotas_listQuotaLimitsForCompute

az quota list --scope "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus"

Quotas_listQuotaLimitsForNetwork

az quota list --scope "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus"

Quotas_listQuotaLimitsMachineLearningServices

az quota list --scope "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningServices/locations/eastus"

Required Parameters

--scope

The target Azure resource URI.

az quota show

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.

az quota show --resource-name
              --scope

Examples

Quotas_Get_Request_ForCompute

az quota show --resource-name "standardNDSFamily" --scope "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus"

Quotas_UsagesRequest_ForNetwork

az quota show --resource-name "MinPublicIpInterNetworkPrefixLength" --scope "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus"

Required Parameters

--resource-name

The resource name for a given resource provider.

--scope

The target Azure resource URI.

az quota update

Update the quota limit for a specific resource to the specified value.

az quota update --resource-name
                --scope
                [--limit-object]
                [--no-wait]
                [--properties]
                [--resource-type]

Examples

Quotas_Request_PatchForCompute

az quota update --resource-name "standardFSv2Family" --scope "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus" --limit-object value=10 limit-object-type=LimitValue --resource-type dedicated

Quotas_Request_PatchForNetwork

az quota update --resource-name "MinPublicIpInterNetworkPrefixLength" --scope "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus" --limit-object value=10 limit-object-type=LimitValue --resource-type MinPublicIpInterNetworkPrefixLength

Required Parameters

--resource-name

The resource name for a given resource provider.

--scope

The target Azure resource URI.

Optional Parameters

--limit-object

The resource quota limit value.

--no-wait

Do not wait for the long-running operation to finish.

--properties

The additional properties for the specific resource provider.

--resource-type

Resource type name.

az quota wait

Place the CLI in a waiting state until a condition of the quota is met.

az quota wait --resource-name
              --scope
              [--created]
              [--custom]
              [--deleted]
              [--exists]
              [--interval]
              [--timeout]
              [--updated]

Examples

Pause executing next line of CLI script until the quota is successfully created.

az quota wait --resource-name "MinPublicIpInterNetworkPrefixLength" --scope "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus" --created

Pause executing next line of CLI script until the quota is successfully updated.

az quota wait --resource-name "MinPublicIpInterNetworkPrefixLength" --scope "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus" --updated

Required Parameters

--resource-name

The resource name for a given resource provider.

--scope

The target Azure resource URI.

Optional Parameters

--created

Wait until created with 'provisioningState' at 'Succeeded'.

--custom

Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

--deleted

Wait until deleted.

--exists

Wait until the resource exists.

--interval

Polling interval in seconds.

default value: 30
--timeout

Maximum wait in seconds.

default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.