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

az networkfabric l3domain

Note

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

管理 L3 隔离域资源。

命令

名称 说明 类型 Status
az networkfabric l3domain create

创建 L3 隔离域资源。

Extension GA
az networkfabric l3domain delete

删除 L3 隔离域资源。

Extension GA
az networkfabric l3domain list

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

Extension GA
az networkfabric l3domain show

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

Extension GA
az networkfabric l3domain update

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

Extension GA
az networkfabric l3domain update-admin-state

为此隔离域启用机架。

Extension GA
az networkfabric l3domain wait

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

Extension GA

az networkfabric l3domain create

创建 L3 隔离域资源。

az networkfabric l3domain create --network-fabric-id --nf-id
                                 --resource-group
                                 --resource-name
                                 [--aggr-route-config --aggregate-route-configuration]
                                 [--annotation]
                                 [--connected-subnet-route-policy --cs-route-policy]
                                 [--export-policy-config]
                                 [--location]
                                 [--mi-system-assigned --system-assigned]
                                 [--mi-user-assigned --user-assigned]
                                 [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                 [--redist-conn-subnets --redistribute-connected-subnets {False, True}]
                                 [--redist-static-routes --redistribute-static-routes {False, True}]
                                 [--sr-route-policy --static-route-route-policy]
                                 [--tags]
                                 [--v4route-prefix-limit]
                                 [--v6route-prefix-limit]

示例

创建 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 "??"

必需参数

--network-fabric-id --nf-id

网络构造的 ARM 资源 ID。

属性
参数组: Properties Arguments
--resource-group -g

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

--resource-name

L3 隔离域的名称。

可选参数

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--aggr-route-config --aggregate-route-configuration

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

属性
参数组: Properties Arguments
--annotation

切换配置说明。

属性
参数组: Properties Arguments
--connected-subnet-route-policy --cs-route-policy

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

属性
参数组: Properties Arguments
--export-policy-config

BMP 导出策略配置。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

属性
参数组: Properties Arguments
--location -l

未指定资源所在的地理位置,将使用资源组的位置。

属性
参数组: Resource Arguments
--mi-system-assigned --system-assigned

设置系统托管标识。

属性
参数组: Identity Arguments
--mi-user-assigned --user-assigned

设置用户托管标识。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

属性
参数组: Identity Arguments
--no-wait

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

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

播发连接的子网。 例如:“True” |“False”。

属性
参数组: Properties Arguments
默认值: True
接受的值: False, True
--redist-static-routes --redistribute-static-routes

播发静态路由。 例如:“True” |“False”。

属性
参数组: Properties Arguments
默认值: False
接受的值: False, True
--sr-route-policy --static-route-route-policy

静态路由 - 路由策略。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

属性
参数组: Properties Arguments
--tags

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

属性
参数组: Resource Arguments
--v4route-prefix-limit

IPv4 VRF 限制配置。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

属性
参数组: Properties Arguments
--v6route-prefix-limit

IPv6 VRF 限制配置。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

属性
参数组: Properties Arguments
全局参数
--debug

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

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

输出格式。

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

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

--subscription

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

--verbose

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

属性
默认值: False

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”参数。

属性
参数组: Resource Id Arguments
--no-wait

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

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

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

属性
参数组: Resource Id Arguments
--resource-name

L3 隔离域的名称。

属性
参数组: Resource Id Arguments
--subscription

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

属性
参数组: Resource Id Arguments
全局参数
--debug

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

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

输出格式。

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

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

--verbose

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

属性
默认值: False

az networkfabric l3domain list

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

az networkfabric l3domain list [--max-items]
                               [--next-token]
                               [--resource-group]

示例

列出资源组的 L3 隔离域

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

列出订阅的 L3 隔离域

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

可选参数

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--max-items

命令输出中要返回的项总数。 如果可用的项总数大于指定的值,则会在命令的输出中提供令牌。 若要恢复分页,请在后续命令的 --next-token 参数中提供令牌值。

属性
参数组: Pagination Arguments
--next-token

用于指定开始分页的位置的令牌。 这是先前截断的响应中的令牌值。

属性
参数组: Pagination Arguments
--resource-group -g

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

全局参数
--debug

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

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

输出格式。

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

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

--subscription

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

--verbose

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

属性
默认值: False

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 Id Arguments
--resource-group -g

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

属性
参数组: Resource Id Arguments
--resource-name

L3 隔离域的名称。

属性
参数组: Resource Id Arguments
--subscription

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

属性
参数组: Resource Id Arguments
全局参数
--debug

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

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

输出格式。

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

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

--verbose

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

属性
默认值: False

az networkfabric l3domain update

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

az networkfabric l3domain update [--aggr-route-config --aggregate-route-configuration]
                                 [--annotation]
                                 [--connected-subnet-route-policy --cs-route-policy]
                                 [--export-policy-config]
                                 [--ids]
                                 [--mi-system-assigned --system-assigned]
                                 [--mi-user-assigned --user-assigned]
                                 [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                 [--redist-conn-subnets --redistribute-connected-subnets {False, True}]
                                 [--redist-static-routes --redistribute-static-routes {False, True}]
                                 [--resource-group]
                                 [--resource-name]
                                 [--sr-route-policy --static-route-route-policy]
                                 [--subscription]
                                 [--tags]
                                 [--v4route-prefix-limit]
                                 [--v6route-prefix-limit]

示例

更新 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 "??"

可选参数

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--aggr-route-config --aggregate-route-configuration

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

属性
参数组: Properties Arguments
--annotation

切换配置说明。

属性
参数组: Properties Arguments
--connected-subnet-route-policy --cs-route-policy

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

属性
参数组: Properties Arguments
--export-policy-config

BMP 导出策略配置。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

属性
参数组: Properties Arguments
--ids

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

属性
参数组: Resource Id Arguments
--mi-system-assigned --system-assigned

设置系统托管标识。

属性
参数组: Identity Arguments
--mi-user-assigned --user-assigned

设置用户托管标识。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

属性
参数组: Identity Arguments
--no-wait

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

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

播发连接的子网。 例如:“True” |“False”。

属性
参数组: Properties Arguments
接受的值: False, True
--redist-static-routes --redistribute-static-routes

播发静态路由。 例如:“True” |“False”。

属性
参数组: Properties Arguments
接受的值: False, True
--resource-group -g

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

属性
参数组: Resource Id Arguments
--resource-name

L3 隔离域的名称。

属性
参数组: Resource Id Arguments
--sr-route-policy --static-route-route-policy

静态路由 - 路由策略。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

属性
参数组: Properties Arguments
--subscription

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

属性
参数组: Resource Id Arguments
--tags

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

属性
参数组: Properties Arguments
--v4route-prefix-limit

IPv4 VRF 限制配置。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

属性
参数组: Properties Arguments
--v6route-prefix-limit

IPv6 VRF 限制配置。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

属性
参数组: Properties Arguments
全局参数
--debug

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

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

输出格式。

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

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

--verbose

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

属性
默认值: False

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, UnderMaintenance}]
                                             [--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”参数。

属性
参数组: Resource Id Arguments
--no-wait

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

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

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

属性
参数组: Resource Id Arguments
--resource-ids

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

属性
参数组: Body Arguments
--resource-name

L3 隔离域的名称。

属性
参数组: Resource Id Arguments
--state

管理状态。

属性
参数组: Body Arguments
接受的值: Disable, Enable, UnderMaintenance
--subscription

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

属性
参数组: Resource Id Arguments
全局参数
--debug

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

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

输出格式。

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

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

--verbose

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

属性
默认值: False

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”创建。

属性
参数组: Wait Condition Arguments
默认值: False
--custom

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

属性
参数组: Wait Condition Arguments
--deleted

等到删除为止。

属性
参数组: Wait Condition Arguments
默认值: False
--exists

等待资源存在。

属性
参数组: Wait Condition Arguments
默认值: False
--ids

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

属性
参数组: Resource Id Arguments
--interval

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

属性
参数组: Wait Condition Arguments
默认值: 30
--resource-group -g

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

属性
参数组: Resource Id Arguments
--resource-name

L3 隔离域的名称。

属性
参数组: Resource Id Arguments
--subscription

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

属性
参数组: Resource Id Arguments
--timeout

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

属性
参数组: Wait Condition Arguments
默认值: 3600
--updated

等到 provisioningState 更新为“Succeeded”。

属性
参数组: Wait Condition Arguments
默认值: False
全局参数
--debug

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

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

输出格式。

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

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

--verbose

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

属性
默认值: False