az networkfabric nni
Note
This reference is part of the managednetworkfabric extension for the Azure CLI (version 2.70.0 or higher). 该扩展会在首次运行 az networkfabric nni 命令时自动安装。 Learn more about extensions.
管理网络到网络互连资源。
命令
名称 | 说明 | 类型 | Status |
---|---|---|---|
az networkfabric nni create |
创建网络到网络互连资源。 |
Extension | GA |
az networkfabric nni delete |
删除网络到网络互连资源。 |
Extension | GA |
az networkfabric nni list |
列出提供资源组中的所有网络到网络互连。 |
Extension | GA |
az networkfabric nni show |
显示提供的网络到网络互连资源的详细信息。 |
Extension | GA |
az networkfabric nni update |
将网络更新为网络互连资源。 |
Extension | GA |
az networkfabric nni update-bfd-administrative-state |
更新管理状态。 |
Extension | GA |
az networkfabric nni wait |
将 CLI 置于等待状态,直到满足条件。 |
Extension | GA |
az networkfabric nni create
创建网络到网络互连资源。
az networkfabric nni create --fabric --fabric-name
--resource-group
--resource-name
--use-option-b {False, True}
[--conditional-default-route-configuration]
[--egress-acl-id]
[--export-route-policy]
[--import-route-policy]
[--ingress-acl-id]
[--is-management-type {False, True}]
[--layer2-configuration]
[--micro-bfd-state {Disabled, Enabled}]
[--nni-type {CE, NPB}]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--npb-static-route-configuration]
[--option-b-layer3-configuration]
[--static-route-configuration]
示例
创建网络到网络互连
az networkfabric nni create --resource-group "example-rg" --fabric "example-fabric" --resource-name "example-nni" --nni-type "CE" --is-management-type "True" --use-option-b "True" --import-route-policy "{importIpv4RoutePolicyId:'/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxx/resourceGroups/example-rg/providers/microsoft.managednetworkfabric/routePolicies/example-routepolicy',importIpv6RoutePolicyId:'/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxx/resourceGroups/example-rg/providers/microsoft.managednetworkfabric/routePolicies/example-routepolicy'}" --export-route-policy "{exportIpv4RoutePolicyId:'/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxx/resourceGroups/example-rg/providers/microsoft.managednetworkfabric/routePolicies/example-routepolicy',exportIpv6RoutePolicyId:'/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxx/resourceGroups/example-rg/providers/microsoft.managednetworkfabric/routePolicies/example-routepolicy'}" --layer2-configuration "{interfaces:['resourceId'],mtu:1500}" --option-b-layer3-configuration "{peerASN:28,vlanId:501,primaryIpv4Prefix:'172.31.0.0/31',secondaryIpv4Prefix:'172.31.0.20/31'}"
可以使用速记语法“??”查看特定父级下子参数的帮助文本。 有关速记语法的详细信息,请参阅 https://github.com/Azure/azure-cli/tree/dev/doc/shorthand_syntax.md。
az networkfabric nni create --layer2-configuration "??"
必需参数
网络结构的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
网络到网络互连的名称。
基于此选项的第 3 层参数是必需的。 Example: True/False.
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
接受的值: | False, True |
可选参数
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: | Properties Arguments |
Egress Acl. 访问控制列表的 ARM 资源 ID。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
导出路由策略信息支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
导入路由策略信息。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
Ingress Acl. 访问控制列表的 ARM 资源 ID。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
用于基础结构管理的 NNI 的配置。 Example: True/False.
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
默认值: | True |
接受的值: | False, True |
第 2 层配置的常见属性。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
已启用/禁用的微双向转发检测(BFD) 状态。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
接受的值: | Disabled, Enabled |
使用的 NNI 类型。 示例:CE |NPB。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
默认值: | CE |
接受的值: | CE, NPB |
不等待长时间运行的操作完成。
属性 | 值 |
---|---|
接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
NPB 静态路由配置属性。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
Layer3Configuration 的常见属性。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
静态路由配置。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az networkfabric nni delete
删除网络到网络互连资源。
az networkfabric nni delete [--fabric --fabric-name]
[--ids]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--resource-name]
[--subscription]
示例
删除网络到网络互连
az networkfabric nni delete --resource-group "example-rg" --fabric "example-fabric" --resource-name "example-nni"
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
网络结构的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
不等待长时间运行的操作完成。
属性 | 值 |
---|---|
接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
网络到网络互连的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az networkfabric nni list
列出提供资源组中的所有网络到网络互连。
az networkfabric nni list --fabric --fabric-name
--resource-group
[--max-items]
[--next-token]
示例
列出资源组的网络到网络互连
az networkfabric nni list --resource-group "example-rg" --fabric "example-fabric"
必需参数
网络结构的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
可选参数
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 |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az networkfabric nni show
显示提供的网络到网络互连资源的详细信息。
az networkfabric nni show [--fabric --fabric-name]
[--ids]
[--resource-group]
[--resource-name]
[--subscription]
示例
显示网络到网络互连
az networkfabric nni show --resource-group "example-rg" --fabric "example-fabric" --resource-name "example-nni"
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
网络结构的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
网络到网络互连的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az networkfabric nni update
将网络更新为网络互连资源。
az networkfabric nni update [--egress-acl-id]
[--export-route-policy]
[--fabric --fabric-name]
[--ids]
[--import-route-policy]
[--ingress-acl-id]
[--layer2-configuration]
[--micro-bfd-state {Disabled, Enabled}]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--npb-static-route-configuration]
[--option-b-layer3-configuration]
[--resource-group]
[--resource-name]
[--static-route-configuration]
[--subscription]
示例
将网络更新到网络互连
az networkfabric nni update --resource-group "example-rg" --fabric "example-fabric" --resource-name "example-nni" --import-route-policy "{importIpv4RoutePolicyId:'/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxx/resourceGroups/example-rg/providers/microsoft.managednetworkfabric/routePolicies/example-routepolicy',importIpv6RoutePolicyId:'/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxx/resourceGroups/example-rg/providers/microsoft.managednetworkfabric/routePolicies/example-routepolicy'}" --export-route-policy "{exportIpv4RoutePolicyId:'/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxx/resourceGroups/example-rg/providers/microsoft.managednetworkfabric/routePolicies/example-routepolicy',exportIpv6RoutePolicyId:'/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxx/resourceGroups/example-rg/providers/microsoft.managednetworkfabric/routePolicies/example-routepolicy'}" --layer2-configuration "{interfaces:['resourceId'],mtu:1500}" --option-b-layer3-configuration "{peerASN:28,vlanId:501,primaryIpv4Prefix:'172.31.0.0/31',secondaryIpv4Prefix:'172.31.0.20/31'}"
可以使用速记语法“??”查看特定父级下子参数的帮助文本。 有关速记语法的详细信息,请参阅 https://github.com/Azure/azure-cli/tree/dev/doc/shorthand_syntax.md。
az networkfabric nni update --layer2-configuration "??"
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Egress Acl. 访问控制列表的 ARM 资源 ID。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
导出路由策略信息支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
网络结构的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
导入路由策略信息。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
Ingress Acl. 访问控制列表的 ARM 资源 ID。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
Layer2Configuration 的常见属性。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
已启用微 BFD/禁用状态。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
接受的值: | Disabled, Enabled |
不等待长时间运行的操作完成。
属性 | 值 |
---|---|
接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
NPB 静态路由配置属性。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
Layer3Configuration 的常见属性。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
网络到网络互连的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
静态路由配置。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az networkfabric nni update-bfd-administrative-state
更新管理状态。
az networkfabric nni update-bfd-administrative-state [--administrative-state {Disabled, Enabled, MAT, RMA}]
[--ids]
[--network-fabric-name]
[--network-to-network-interconnect-name --nni-name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--route-type {OptionA, Static}]
[--subscription]
示例
更新网络到网络互连的 bfd 管理员状态
az networkfabric nni update-bfd-administrative-state --resource-group example-rg --network-fabric-name example-nf --network-to-network-interconnect-name example-nni --route-type Static --administrative-state Enable
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
State. 选择“启用或禁用”。
属性 | 值 |
---|---|
Parameter group: | Body Arguments |
接受的值: | Disabled, Enabled, MAT, RMA |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
网络结构的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
网络到网络互连的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
不等待长时间运行的操作完成。
属性 | 值 |
---|---|
接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Route Type. 选择静态或 OptionA。
属性 | 值 |
---|---|
Parameter group: | Body Arguments |
接受的值: | OptionA, Static |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az networkfabric nni wait
将 CLI 置于等待状态,直到满足条件。
az networkfabric nni wait [--created]
[--custom]
[--deleted]
[--exists]
[--fabric --fabric-name]
[--ids]
[--interval]
[--resource-group]
[--resource-name]
[--subscription]
[--timeout]
[--updated]
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
等待在“Succeeded”中使用“provisioningState”创建。
属性 | 值 |
---|---|
Parameter group: | Wait Condition Arguments |
默认值: | False |
等待条件满足自定义 JMESPath 查询。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。
属性 | 值 |
---|---|
Parameter group: | Wait Condition Arguments |
等到删除为止。
属性 | 值 |
---|---|
Parameter group: | Wait Condition Arguments |
默认值: | False |
等待资源存在。
属性 | 值 |
---|---|
Parameter group: | Wait Condition Arguments |
默认值: | False |
网络结构的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
轮询间隔(以秒为单位)。
属性 | 值 |
---|---|
Parameter group: | Wait Condition Arguments |
默认值: | 30 |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
网络到网络互连的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
最大等待(以秒为单位)。
属性 | 值 |
---|---|
Parameter group: | Wait Condition Arguments |
默认值: | 3600 |
等到 provisioningState 更新为“Succeeded”。
属性 | 值 |
---|---|
Parameter group: | Wait Condition Arguments |
默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |