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

az network express-route peering connection

管理 ExpressRoute 线路连接。

命令

名称 说明 类型 状态
az network express-route peering connection create

在两条 ExpressRoute 线路之间创建连接。

核心 GA
az network express-route peering connection delete

从指定的快速路由线路中删除指定的 Express Route 线路连接。

核心 GA
az network express-route peering connection ipv6-config

管理 ExpressRoute 线路连接配置。

核心 GA
az network express-route peering connection ipv6-config remove

删除 ExpressRoute 线路连接的连接配置。

核心 GA
az network express-route peering connection ipv6-config set

将连接配置设置为 ExpressRoute 线路连接。

核心 GA
az network express-route peering connection ipv6-config wait

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

核心 GA
az network express-route peering connection list

列出与快速路由线路中的专用对等互连关联的所有全局访问连接。

核心 GA
az network express-route peering connection show

从指定的快速路由线路中获取指定的 Express Route 线路连接。

核心 GA
az network express-route peering connection wait

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

核心 GA

az network express-route peering connection create

在两条 ExpressRoute 线路之间创建连接。

az network express-route peering connection create --circuit-name
                                                   --name
                                                   --peering-name
                                                   --resource-group
                                                   [--address-prefix]
                                                   [--authorization-key]
                                                   [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                                   [--peer-circuit]
                                                   [--source-circuit]

示例

使用 AzurePrivatePeering 设置在两条 ExpressRoute 线路之间创建连接。

az network express-route peering connection create -g MyResourceGroup --circuit-name MyCircuit --peering-name AzurePrivatePeering -n myConnection --peer-circuit MyOtherCircuit --address-prefix 104.0.0.0/29

必需参数

--circuit-name

ExpressRoute 线路名称。

--name -n

对等互连连接的名称。

--peering-name

BGP 对等互连的名称(即 AzurePrivatePeering)。

--resource-group -g

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

可选参数

--address-prefix

/29 IP 地址空间来挖掘隧道的客户地址。

--authorization-key

对等线路在另一个订阅中时使用的授权密钥。

--no-wait

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

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--peer-circuit

对等 ExpressRoute 线路的名称或 ID。

--source-circuit

对线路发起连接的 Express Route 线路专用对等互连资源的引用。

全局参数
--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 network express-route peering connection delete

从指定的快速路由线路中删除指定的 Express Route 线路连接。

az network express-route peering connection delete [--circuit-name]
                                                   [--ids]
                                                   [--name]
                                                   [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                                   [--peering-name]
                                                   [--resource-group]
                                                   [--subscription]

示例

删除 ExpressRoute 线路连接。 (自动生成)

az network express-route peering connection delete --circuit-name MyCircuit --name MyPeeringConnection --peering-name MyPeering --resource-group MyResourceGroup

可选参数

--circuit-name

ExpressRoute 线路名称。

--ids

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

--name -n

对等互连连接的名称。

--no-wait

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

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--peering-name

BGP 对等互连的名称(即 AzurePrivatePeering)。

--resource-group -g

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

--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 network express-route peering connection list

列出与快速路由线路中的专用对等互连关联的所有全局访问连接。

az network express-route peering connection list --circuit-name
                                                 --peering-name
                                                 --resource-group

示例

列出 ExpressRouteCircuit 连接ion

az network express-route peering connection list --circuit-name MyCircuit --peering-name MyPeering --resource-group MyResourceGroup

必需参数

--circuit-name

ExpressRoute 线路名称。

--peering-name

BGP 对等互连的名称(即 AzurePrivatePeering)。

--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 network express-route peering connection show

从指定的快速路由线路中获取指定的 Express Route 线路连接。

az network express-route peering connection show [--circuit-name]
                                                 [--ids]
                                                 [--name]
                                                 [--peering-name]
                                                 [--resource-group]
                                                 [--subscription]

示例

显示 ExpressRouteCircuit 连接ion

az network express-route peering connection show --circuit-name MyCircuit --name MyPeeringConnection --peering-name MyPeering --resource-group MyResourceGroup

可选参数

--circuit-name

ExpressRoute 线路名称。

--ids

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

--name -n

对等互连连接的名称。

--peering-name

BGP 对等互连的名称(即 AzurePrivatePeering)。

--resource-group -g

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

--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 network express-route peering connection wait

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

az network express-route peering connection wait [--circuit-name]
                                                 [--created]
                                                 [--custom]
                                                 [--deleted]
                                                 [--exists]
                                                 [--ids]
                                                 [--interval]
                                                 [--name]
                                                 [--peering-name]
                                                 [--resource-group]
                                                 [--subscription]
                                                 [--timeout]
                                                 [--updated]

可选参数

--circuit-name

ExpressRoute 线路名称。

--created

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

默认值: False
--custom

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

--deleted

等到删除为止。

默认值: False
--exists

等待资源存在。

默认值: False
--ids

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

--interval

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

默认值: 30
--name -n

对等互连连接的名称。

--peering-name

BGP 对等互连的名称(即 AzurePrivatePeering)。

--resource-group -g

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

--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 获取完整的调试日志。