共用方式為


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.

管理 Azure 資源提供者的配額。

命令

名稱 Description 類型 狀態
az quota create

建立指定資源的配額限制。

Extension GA
az quota list

列出指定範圍之所有資源的目前配額限制。

Extension GA
az quota operation

使用配額管理配額作業。

Extension GA
az quota operation list

列出 Microsoft.Quota 資源提供者支援的所有作業。

Extension GA
az quota request

管理配額要求詳細數據和狀態。

Extension GA
az quota request list

列出指定的範圍,取得在進行時結束一年期間目前的配額要求。 Use the oData filter to select quota requests.

Extension GA
az quota request show

依特定位置資源提供者資源的配額要求標識符,顯示配額要求詳細數據和狀態。

Extension GA
az quota request status

使用配額管理配額要求狀態。

Extension GA
az quota request status list

針對指定的範圍,取得在進行時結束一年期間目前的配額要求。 Use the oData filter to select quota requests.

Extension GA
az quota request status show

依特定位置資源提供者資源的配額要求標識符,取得配額要求詳細數據和狀態。 The quota request ID id is returned in the response of the PUT operation.

Extension GA
az quota show

顯示資源的配額限制。

Extension GA
az quota update

更新特定資源的配額限制。

Extension GA
az quota usage

管理資源的目前使用量。

Extension GA
az quota usage list

列出指定範圍之所有資源的目前使用量。

Extension GA
az quota usage show

顯示資源的目前使用量。

Extension GA

az quota create

建立指定資源的配額限制。

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

範例

建立網路的配額

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

建立網路標準的配額SkuPublicIpAddressesResource

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

建立計算配額

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

建立 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

必要參數

--resource-name

指定資源提供者的資源名稱。

--scope

目標 Azure 資源 URI。

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--limit-object

資源配額限制值。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

屬性
Parameter group: Limit Arguments
--no-wait

請勿等候長時間執行的作業完成。

屬性
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--properties

特定資源提供者的其他屬性。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

--resource-type

資源類型的名稱。 Optional field.

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

屬性
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az quota list

列出指定範圍之所有資源的目前配額限制。

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

範例

列出計算配額限制

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

列出網路的配額限制

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

列出配額限制機器學習服務

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

必要參數

--scope

目標 Azure 資源 URI。

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--max-items

命令輸出中要傳回的項目總數。 如果可用的專案總數超過指定的值,則會在命令的輸出中提供令牌。 若要繼續分頁,請在後續命令的 --next-token 自變數中提供令牌值。

屬性
Parameter group: Pagination Arguments
--next-token

標記,指定要開始分頁的位置。 這是先前截斷回應中的令牌值。

屬性
Parameter group: Pagination Arguments
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

屬性
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az quota show

顯示資源的配額限制。

az quota show --resource-name
              --scope

範例

顯示計算配額

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

必要參數

--resource-name

指定資源提供者的資源名稱。

--scope

目標 Azure 資源 URI。

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

屬性
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az quota update

更新特定資源的配額限制。

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

範例

更新計算配額

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

更新網路的配額

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

必要參數

--resource-name

指定資源提供者的資源名稱。

--scope

目標 Azure 資源 URI。

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--limit-object

資源配額限制值。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

屬性
Parameter group: Limit Arguments
--no-wait

請勿等候長時間執行的作業完成。

屬性
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--properties

特定資源提供者的其他屬性。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

--resource-type

資源類型的名稱。 Optional field.

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

屬性
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False