az quota
Note
此参考是 Azure CLI(版本 2.54.0 或更高版本) 的配额 扩展的一部分。 该扩展将在首次运行 az quota 命令时自动安装。 了解更多关于扩展的信息。
Azure 资源提供程序的管理配额。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| 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 |
列出指定的范围,获取在进行时结束的一年期限的当前配额请求。 使用 oData 筛选器选择配额请求。 |
Extension | GA |
| az quota request show |
按特定位置资源提供程序资源的配额请求 ID 显示配额请求详细信息和状态。 |
Extension | GA |
| az quota request status |
使用配额管理配额请求状态。 |
Extension | GA |
| az quota request status list |
对于指定的范围,获取在一年内结束的一年配额请求。 使用 oData 筛选器选择配额请求。 |
Extension | GA |
| az quota request status show |
根据特定位置的资源的资源配额请求 ID 获取配额请求详细信息和状态。 配额请求 ID ID 在 PUT作的响应中返回。 |
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
为网络 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
为计算创建配额
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
必需参数
给定资源提供程序的资源名称。
目标 Azure 资源 URI。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
资源配额限制值。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| Parameter group: | Limit Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
特定资源提供程序的其他属性。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
资源类型的名称。 可选字段。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --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
必需参数
目标 Azure 资源 URI。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
命令输出中要返回的项总数。 如果可用的项总数大于指定的值,则会在命令的输出中提供令牌。 若要恢复分页,请在后续命令的 --next-token 参数中提供令牌值。
| 属性 | 值 |
|---|---|
| Parameter group: | Pagination Arguments |
用于指定开始分页的位置的令牌。 这是先前截断的响应中的令牌值。
| 属性 | 值 |
|---|---|
| Parameter group: | Pagination Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --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
必需参数
给定资源提供程序的资源名称。
目标 Azure 资源 URI。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --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
必需参数
给定资源提供程序的资源名称。
目标 Azure 资源 URI。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
资源配额限制值。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| Parameter group: | Limit Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
特定资源提供程序的其他属性。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
资源类型的名称。 可选字段。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |