az interconnect-block
注释
此参考是Azure CLI(版本 2.75.0 或更高版本)的互连扩展的一部分。 该扩展将在首次运行 az 互连块 命令时自动安装。 了解更多关于扩展程序的信息。
管理互连块。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az interconnect-block create |
创建互连块。 更新互连块时,只能修改标记和 SKU 容量。 |
扩展 | GA |
| az interconnect-block delete |
删除互连块。 只有当互联块没有关联虚拟机或VMSS虚拟机实例时,该操作才被允许。 |
扩展 | GA |
| az interconnect-block list |
列出订阅中的所有互连块。 在回复中使用 nextLink 属性,获取下一页的 Interconnect Blocks。 |
扩展 | GA |
| az interconnect-block show |
获取有关互连块的信息。 |
扩展 | GA |
| az interconnect-block update |
更新互连块。 更新互连块时,只能修改标记和 SKU 容量。 |
扩展 | GA |
| az interconnect-block wait |
将 CLI 置于等待状态,直到满足条件。 |
扩展 | GA |
az interconnect-block create
创建互连块。 更新互连块时,只能修改标记和 SKU 容量。
az interconnect-block create --interconnect-block-name --name
--resource-group
[--acquire-policy-token]
[--change-reference]
[--exclude-zones --placement-exclude-zones]
[--group-id --interconnect-group-id]
[--include-zones --placement-include-zones]
[--location]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--placement-policy --zone-placement-policy {Any, Auto}]
[--sku-capacity]
[--sku-name]
[--sku-tier]
[--tags]
[--zones]
示例
创建新的互连块资源。
az interconnect-block create --name training-icb-001 --resource-group ai-training-rg --location eastus --zones 1 --sku-name Standard_ND128isr_GB300_v6 --sku-capacity 36 --interconnect-group-id "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/network-rg/providers/Microsoft.Network/interconnectGroups/training-ig" --tags Environment=Production Workload=AI-Training CostCenter=ML-Engineering
必需参数
互联区的名称。
资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
此属性补充了“zonePlacementPolicy”属性。 如果将“zonePlacementPolicy”设置为“Any”/“Auto”,则系统选择的可用性区域不得存在于与“excludeZones”一起传递的可用性区域列表中。 如果未提供“excludeZones”,则会考虑区域中的所有可用性区域以供选择。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Placement Arguments |
/subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... 形式的 ARM 资源 ID
| 属性 | 值 |
|---|---|
| 参数组: | InterconnectGroup Arguments |
此属性补充了“zonePlacementPolicy”属性。 如果将“zonePlacementPolicy”设置为“Any”/“Auto”,则系统选择的可用性区域必须存在于与“includeZones”一起传递的可用性区域列表中。 如果未提供“includeZones”,则会考虑区域中的所有可用性区域以供选择。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Placement Arguments |
未指定资源所在的地理位置,将使用资源组的位置。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
指定资源在可用性区域中放置的策略。 可能的值为: 任意 (用于虚拟机)、 自动 (用于虚拟机规模集)- 作为资源创建的一部分,系统将自动选取可用性区域。
| 属性 | 值 |
|---|---|
| 参数组: | Placement Arguments |
| 接受的值: | Any, Auto |
指定规模集中的虚拟机数。
| 属性 | 值 |
|---|---|
| 参数组: | Sku Arguments |
SKU 名称。
| 属性 | 值 |
|---|---|
| 参数组: | Sku Arguments |
指定规模集中的虚拟机层。
可能的值:
Standard
基本。
| 属性 | 值 |
|---|---|
| 参数组: | Sku Arguments |
资源标记。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Arguments |
可用性区域。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Resource 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 interconnect-block delete
删除互连块。 只有当互联块没有关联虚拟机或VMSS虚拟机实例时,该操作才被允许。
az interconnect-block delete [--acquire-policy-token]
[--change-reference]
[--ids]
[--interconnect-block-name --name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
[--yes]
示例
使用确认进行删除
az interconnect-block delete --name training-icb-001 --resource-group ai-training-rg
在不确认的情况下删除
az interconnect-block delete --name training-icb-001 --resource-group ai-training-rg --yes
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
互联区的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
不请求确认。
| 属性 | 值 |
|---|---|
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
只显示错误,取消显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az interconnect-block list
列出订阅中的所有互连块。 在回复中使用 nextLink 属性,获取下一页的 Interconnect Blocks。
az interconnect-block list [--max-items]
[--next-token]
[--resource-group]
示例
列出订阅中的所有内容
az interconnect-block list
按资源组列出
az interconnect-block list --resource-group ai-training-rg
按容量列出和筛选
az interconnect-block list --resource-group ai-training-rg --query "[?sku.capacity>=36]"
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
命令输出中要返回的项总数。 如果可用的项总数大于指定的值,则会在命令的输出中提供令牌。 若要恢复分页,请在后续命令的 --next-token 参数中提供令牌值。
| 属性 | 值 |
|---|---|
| 参数组: | Pagination Arguments |
用于指定开始分页的位置的令牌。 这是先前截断的响应中的令牌值。
| 属性 | 值 |
|---|---|
| 参数组: | Pagination Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 interconnect-block show
获取有关互连块的信息。
az interconnect-block show [--expand {instanceView}]
[--ids]
[--interconnect-block-name --name]
[--resource-group]
[--subscription]
示例
获取基本信息
az interconnect-block show --name training-icb-001 --resource-group ai-training-rg
获取实例视图(包括运行时详细信息)
az interconnect-block show --name training-icb-001 --resource-group ai-training-rg --expand instanceView
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
要应用于作的展开表达式。 'instanceView' 获取由平台管理的互联块运行时属性快照,该属性可在控制平面操作外发生变化。
| 属性 | 值 |
|---|---|
| 接受的值: | instanceView |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
互联区的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
只显示错误,取消显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az interconnect-block update
更新互连块。 更新互连块时,只能修改标记和 SKU 容量。
az interconnect-block update [--acquire-policy-token]
[--add]
[--change-reference]
[--exclude-zones --placement-exclude-zones]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--include-zones --placement-include-zones]
[--interconnect-block-name --name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--placement-policy --zone-placement-policy {Any, Auto}]
[--remove]
[--resource-group]
[--set]
[--sku-capacity]
[--sku-name]
[--sku-tier]
[--subscription]
[--tags]
[--zones]
示例
更新缩放容量
az interconnect-block update --name training-icb-001 --resource-group ai-training-rg --sku-capacity 54
更新标记
az interconnect-block update --name training-icb-001 --resource-group ai-training-rg --tags Environment=Production Capacity=54-nodes LastScaled=$(date +%Y-%m-%d)
不等待更新缩放
az interconnect-block update --name training-icb-001 --resource-group ai-training-rg --sku-capacity 72 --no-wait
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
通过指定路径和键值对将对象添加到对象列表。 示例:--add property.listProperty <key=value, string or JSON string>。
| 属性 | 值 |
|---|---|
| 参数组: | Generic Update Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
此属性补充了“zonePlacementPolicy”属性。 如果将“zonePlacementPolicy”设置为“Any”/“Auto”,则系统选择的可用性区域不得存在于与“excludeZones”一起传递的可用性区域列表中。 如果未提供“excludeZones”,则会考虑区域中的所有可用性区域以供选择。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Placement Arguments |
使用“set”或“add”时,保留字符串文本,而不是尝试转换为 JSON。
| 属性 | 值 |
|---|---|
| 参数组: | Generic Update Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
此属性补充了“zonePlacementPolicy”属性。 如果将“zonePlacementPolicy”设置为“Any”/“Auto”,则系统选择的可用性区域必须存在于与“includeZones”一起传递的可用性区域列表中。 如果未提供“includeZones”,则会考虑区域中的所有可用性区域以供选择。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Placement Arguments |
互联区的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
指定资源在可用性区域中放置的策略。 可能的值为: 任意 (用于虚拟机)、 自动 (用于虚拟机规模集)- 作为资源创建的一部分,系统将自动选取可用性区域。
| 属性 | 值 |
|---|---|
| 参数组: | Placement Arguments |
| 接受的值: | Any, Auto |
从列表中删除属性或元素。 示例: --remove property.list <indexToRemove> OR --remove propertyToRemove.
| 属性 | 值 |
|---|---|
| 参数组: | Generic Update Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
通过指定要设置的属性路径和值来更新对象。 示例:--set property1.property2=<value>。
| 属性 | 值 |
|---|---|
| 参数组: | Generic Update Arguments |
指定规模集中的虚拟机数。
| 属性 | 值 |
|---|---|
| 参数组: | Sku Arguments |
SKU 名称。
| 属性 | 值 |
|---|---|
| 参数组: | Sku Arguments |
指定规模集中的虚拟机层。
可能的值:
Standard
基本。
| 属性 | 值 |
|---|---|
| 参数组: | Sku Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源标记。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Arguments |
可用性区域。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
只显示错误,取消显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az interconnect-block wait
将 CLI 置于等待状态,直到满足条件。
az interconnect-block wait [--acquire-policy-token]
[--change-reference]
[--created]
[--custom]
[--deleted]
[--exists]
[--expand {instanceView}]
[--ids]
[--interconnect-block-name --name]
[--interval]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
等待在“Succeeded”中使用“provisioningState”创建。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
等待条件满足自定义 JMESPath 查询。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
等到删除为止。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
等待资源存在。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
要应用于作的展开表达式。 'instanceView' 获取由平台管理的互联块运行时属性快照,该属性可在控制平面操作外发生变化。
| 属性 | 值 |
|---|---|
| 接受的值: | instanceView |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
互联区的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
轮询间隔(以秒为单位)。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | 30 |
资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
最大等待(以秒为单位)。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | 3600 |
等到 provisioningState 更新为“Succeeded”。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
只显示错误,取消显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |