你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

az networkfabric l3domain

注意

此参考是 Azure CLI(版本 2.49.0 或更高版本)的 managednetworkfabric 扩展的一部分。 该扩展将在首次运行 az networkfabric l3domain 命令时自动安装。 详细了解扩展。

管理 L3 隔离域资源。

命令

名称 说明 类型 状态
az networkfabric l3domain create

创建 L3 隔离域资源。

扩展 GA
az networkfabric l3domain delete

删除 L3 隔离域资源。

扩展 GA
az networkfabric l3domain list

列出提供资源组或订阅中的所有 L3 隔离域。

扩展 GA
az networkfabric l3domain show

显示提供的 L3 隔离域资源的详细信息。

扩展 GA
az networkfabric l3domain update

更新以更新 L3 隔离域资源的某些属性。

扩展 GA
az networkfabric l3domain update-admin-state

为此隔离域启用机架。

扩展 GA
az networkfabric l3domain wait

将 CLI 置于等待状态,直到满足条件。

扩展 GA

az networkfabric l3domain create

创建 L3 隔离域资源。

az networkfabric l3domain create --nf-id
                                 --resource-group
                                 --resource-name
                                 [--aggregate-route-configuration]
                                 [--annotation]
                                 [--connected-subnet-route-policy]
                                 [--location]
                                 [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                 [--redistribute-connected-subnets {False, True}]
                                 [--redistribute-static-routes {False, True}]
                                 [--tags]

示例

创建 L3 隔离域

az networkfabric l3domain create --resource-group "example-rg" --resource-name "example-l3domain" --location "westus3" --nf-id "/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxx/resourceGroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkFabrics/example-fabricName" --redistribute-connected-subnets "True" --redistribute-static-routes "True" --aggregate-route-configuration "{ipv4Routes:[{prefix:'10.0.0.1/28'},{prefix:'10.0.0.2/28'}],ipv6Routes:[{prefix:'2fff::/64'},{prefix:'2fff::/65'}]}" --connected-subnet-route-policy "{exportRoutePolicy:{exportIpv4RoutePolicyId:'/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxx/resourceGroups/example-rg/providers/microsoft.managednetworkfabric/routePolicies/example-routepolicy'}}"

可以使用速记语法“??”查看特定父级下子参数的帮助文本。 有关速记语法的详细信息,请参阅 https://github.com/Azure/azure-cli/tree/dev/doc/shorthand_syntax.md 。

az networkfabric l3domain create --connected-subnet-route-policy "??"

必需参数

--nf-id

网络构造的 ARM 资源 ID。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

--resource-name

L3 隔离域的名称。

可选参数

--aggregate-route-configuration

聚合路由配置。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

--annotation

基础资源的说明。

--connected-subnet-route-policy

连接子网 RoutePolicy。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

--location -l

未指定 Azure 区域的位置时,将使用资源组的位置。

--no-wait

不等待长时间运行的操作完成。

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

播发连接子网。 默认值为 True。 示例:True。

接受的值: False, True
--redistribute-static-routes

播发静态路由。 默认值为 False。 示例:True。

接受的值: False, True
--tags

资源标记。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az networkfabric l3domain delete

删除 L3 隔离域资源。

az networkfabric l3domain delete [--ids]
                                 [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                 [--resource-group]
                                 [--resource-name]
                                 [--subscription]

示例

删除 L3 隔离域

az networkfabric l3domain delete --resource-group "example-rg" --resource-name "example-l3domain"

可选参数

--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

--no-wait

不等待长时间运行的操作完成。

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

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

--resource-name

L3 隔离域的名称。

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az networkfabric l3domain list

列出提供资源组或订阅中的所有 L3 隔离域。

az networkfabric l3domain list [--resource-group]

示例

列出资源组的 L3 隔离域

az networkfabric l3domain list --resource-group "example-rg"

列出订阅的 L3 隔离域

az networkfabric l3domain list --subscription "<subscriptionId>"

可选参数

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az networkfabric l3domain show

显示提供的 L3 隔离域资源的详细信息。

az networkfabric l3domain show [--ids]
                               [--resource-group]
                               [--resource-name]
                               [--subscription]

示例

显示 L3 隔离域

az networkfabric l3domain show --resource-group "example-rg" --resource-name "example-l3domain"

可选参数

--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

--resource-name

L3 隔离域的名称。

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az networkfabric l3domain update

更新以更新 L3 隔离域资源的某些属性。

az networkfabric l3domain update [--aggregate-route-configuration]
                                 [--annotation]
                                 [--connected-subnet-route-policy]
                                 [--ids]
                                 [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                 [--redistribute-connected-subnets {False, True}]
                                 [--redistribute-static-routes {False, True}]
                                 [--resource-group]
                                 [--resource-name]
                                 [--subscription]
                                 [--tags]

示例

更新 L3 隔离域

az networkfabric l3domain update --resource-group "example-rg" --resource-name "example-l3domain" --redistribute-connected-subnets "True" --redistribute-static-routes "True" --aggregate-route-configuration "{ipv4Routes:[{prefix:'10.0.0.1/28'},{prefix:'10.0.0.2/28'}],ipv6Routes:[{prefix:'2fff::/64'},{prefix:'2fff::/65'}]}" --connected-subnet-route-policy "{exportRoutePolicy:{exportIpv4RoutePolicyId:'/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxx/resourceGroups/example-rg/providers/microsoft.managednetworkfabric/routePolicies/example-routepolicy'}}"

可以使用速记语法“??”查看特定父级下子参数的帮助文本。 有关速记语法的详细信息,请参阅 https://github.com/Azure/azure-cli/tree/dev/doc/shorthand_syntax.md 。

az networkfabric l3domain update --connected-subnet-route-policy "??"

可选参数

--aggregate-route-configuration

聚合路由配置。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

--annotation

基础资源的说明。

--connected-subnet-route-policy

连接子网 RoutePolicy。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

--no-wait

不等待长时间运行的操作完成。

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

播发连接子网。 默认值为 True。 示例:True。

接受的值: False, True
--redistribute-static-routes

播发静态路由。 默认值为 False。 示例:True。

接受的值: False, True
--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

--resource-name

L3 隔离域的名称。

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--tags

资源标记支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az networkfabric l3domain update-admin-state

为此隔离域启用机架。

az networkfabric l3domain update-admin-state [--ids]
                                             [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                             [--resource-group]
                                             [--resource-ids]
                                             [--resource-name]
                                             [--state {Disable, Enable}]
                                             [--subscription]

示例

更新 L3 隔离域的管理员状态

az networkfabric l3domain update-admin-state --resource-group "example-rg" --resource-name "example-l3domain" --state "Enable"

可选参数

--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

--no-wait

不等待长时间运行的操作完成。

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

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

--resource-ids

网络结构或网络机架资源 ID。支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

--resource-name

L3 隔离域的名称。

--state

管理员状态。

接受的值: Disable, Enable
--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az networkfabric l3domain wait

将 CLI 置于等待状态,直到满足条件。

az networkfabric l3domain wait [--created]
                               [--custom]
                               [--deleted]
                               [--exists]
                               [--ids]
                               [--interval]
                               [--resource-group]
                               [--resource-name]
                               [--subscription]
                               [--timeout]
                               [--updated]

可选参数

--created

等待在“Succeeded”中使用“provisioningState”创建。

默认值: False
--custom

等待条件满足自定义 JMESPath 查询。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。

--deleted

等到删除为止。

默认值: False
--exists

等待资源存在。

默认值: False
--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

--interval

轮询间隔(以秒为单位)。

默认值: 30
--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

--resource-name

L3 隔离域的名称。

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--timeout

最大等待(以秒为单位)。

默认值: 3600
--updated

等到 provisioningState 更新为“Succeeded”。

默认值: False
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。