az quota

注意

此參考是 Azure CLI 配額延伸模組的一部分 (2.54.0 版或更高版本)。 擴充功能會在您第一次執行 az quota 命令時自動安裝。 深入了解擴充功能。

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

命令

名稱 Description 類型 狀態
az quota create

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

副檔名 GA
az quota list

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

副檔名 GA
az quota operation

使用配額管理配額作業。

副檔名 GA
az quota operation list

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

副檔名 GA
az quota request

管理配額要求詳細資料和狀態。

副檔名 GA
az quota request list

列出指定的範圍,取得在進行時結束一年期間目前的配額要求。 使用 oData 篩選準則來選取配額要求。

副檔名 GA
az quota request show

依特定位置資源提供者資源的配額要求識別碼,顯示配額要求詳細資料和狀態。

副檔名 GA
az quota request status

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

副檔名 GA
az quota request status list

針對指定的範圍,取得在進行時結束一年期間目前的配額要求。 使用 oData 篩選準則來選取配額要求。

副檔名 GA
az quota request status show

依特定位置資源提供者資源的配額要求識別碼,取得配額要求詳細資料和狀態。 配額要求識別碼 識別碼 會在 PUT 作業的回應中傳回。

副檔名 GA
az quota show

顯示資源的配額限制。

副檔名 GA
az quota update

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

副檔名 GA
az quota usage

管理資源的目前使用量。

副檔名 GA
az quota usage list

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

副檔名 GA
az quota usage show

顯示資源的目前使用量。

副檔名 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。

選擇性參數

--limit-object

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

--no-wait

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

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

特定資源提供者的其他屬性。 支援 json-file 和 yaml-file。

--resource-type

資源類型的名稱。 選擇性欄位。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

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。

選擇性參數

--max-items

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

--next-token

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

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

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

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

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。

選擇性參數

--limit-object

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

--no-wait

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

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

特定資源提供者的其他屬性。 支援 json-file 和 yaml-file。

--resource-type

資源類型的名稱。 選擇性欄位。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。