แชร์ผ่าน


az quota

Note

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

Manag quota for Azure resource providers.

Commands

Name Description Type Status
az quota create

Create the quota limit for the specified resource.

Extension GA
az quota list

List current quota limits of all resources for the specified scope.

Extension GA
az quota operation

Manage quota operation with quota.

Extension GA
az quota operation list

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

Extension GA
az quota request

Manage quota request details and status.

Extension GA
az quota request list

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

Extension GA
az quota request show

Show the quota request details and status by quota request ID for the resources of the resource provider at a specific location.

Extension GA
az quota request status

Manage quota request status with quota.

Extension GA
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.

Extension GA
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.

Extension GA
az quota show

Show the quota limit of a resource.

Extension GA
az quota update

Update the quota limit for a specific resource.

Extension GA
az quota usage

Manage the current usage of a resource.

Extension GA
az quota usage list

List current usage for all resources for the scope specified.

Extension GA
az quota usage show

Show the current usage of a resource.

Extension GA

az quota create

Create the quota limit for the specified resource.

az quota create --resource-name
                --scope
                [--limit-object]
                [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                [--properties]
                [--resource-type]

Examples

Create quota for network

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

Create quota for network standardSkuPublicIpAddressesResource

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

Create quota for compute

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

Create quota for MachineLearningServices LowPriorityResource

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

Required Parameters

--resource-name

Resource name for a given resource provider.

--scope

The target azure resource URI.

Optional Parameters

--limit-object

The resource quota limit value. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--no-wait

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

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--properties

Additional properties for the specific resource provider. Support json-file and yaml-file.

--resource-type

The name of the resource type. Optional field.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az quota list

List current quota limits of all resources for the specified scope.

az quota list --scope
              [--max-items]
              [--next-token]

Examples

List quota limit for compute

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

List quota limit for network

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

List quota limit machine learning service

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

Required Parameters

--scope

The target azure resource URI.

Optional Parameters

--max-items

Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token argument of a subsequent command.

--next-token

Token to specify where to start paginating. This is the token value from a previously truncated response.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az quota show

Show the quota limit of a resource.

az quota show --resource-name
              --scope

Examples

Show quota for compute

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

Required Parameters

--resource-name

Resource name for a given resource provider.

--scope

The target azure resource URI.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az quota update

Update the quota limit for a specific resource.

az quota update --resource-name
                --scope
                [--limit-object]
                [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                [--properties]
                [--resource-type]

Examples

Update quota for compute

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

Update quota for network

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

Required Parameters

--resource-name

Resource name for a given resource provider.

--scope

The target azure resource URI.

Optional Parameters

--limit-object

The resource quota limit value. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--no-wait

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

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--properties

Additional properties for the specific resource provider. Support json-file and yaml-file.

--resource-type

The name of the resource type. Optional field.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.