az network vpn-gateway connection vpn-site-link-conn

注意

此參考是 Azure CLI 的虛擬 wan 擴充功能的一部分(2.55.0 版或更高版本)。 擴充功能會在您第一次執行 az network vpn-gateway connection vpn-site-link-conn 命令時自動安裝。 深入了解擴充功能。

管理站對站 VPN 網關聯機 VPN 月臺連結連線。

命令

名稱 Description 類型 狀態
az network vpn-gateway connection vpn-site-link-conn add

將 VPN 月台連結連線新增至站對站 VPN 網關聯機。

副檔名 GA
az network vpn-gateway connection vpn-site-link-conn ipsec-policy

管理站對站 VPN 網關聯機 VPN 月臺連結 IPSec 原則。

副檔名 GA
az network vpn-gateway connection vpn-site-link-conn ipsec-policy add

將IPSec原則新增至站對站 VPN 網關聯機 VPN 網站連結。

副檔名 GA
az network vpn-gateway connection vpn-site-link-conn ipsec-policy list

列出站對站 VPN 網關聯機 VPN 月臺連結 IPSec 原則。

副檔名 GA
az network vpn-gateway connection vpn-site-link-conn ipsec-policy remove

從站對站 VPN 網關聯機 VPN 網站連結移除 IPSec 原則。

副檔名 GA
az network vpn-gateway connection vpn-site-link-conn list

列出站對站 VPN 網關聯機 VPN 月臺連結連線。

副檔名 GA
az network vpn-gateway connection vpn-site-link-conn remove

從站對站 VPN 網關聯機移除 VPN 月台連結連線。

副檔名 GA

將 VPN 月台連結連線新增至站對站 VPN 網關聯機。

az network vpn-gateway connection vpn-site-link-conn add --vpn-site-link
                                                         [--connection-bandwidth]
                                                         [--connection-name]
                                                         [--enable-bgp {false, true}]
                                                         [--gateway-name]
                                                         [--ids]
                                                         [--name]
                                                         [--no-wait]
                                                         [--rate-limiting {false, true}]
                                                         [--resource-group]
                                                         [--routing-weight]
                                                         [--shared-key]
                                                         [--subscription]
                                                         [--use-local-azure-ip-address {false, true}]
                                                         [--use-policy-based-traffic-selectors {false, true}]
                                                         [--vpn-connection-protocol-type {IKEv1, IKEv2}]
                                                         [--vpn-link-connection-mode {Default, InitiatorOnly, ResponderOnly}]

將 VPN 月台連結連線新增至站對站 VPN 網關聯機

az network vpn-gateway connection vpn-site-link-conn add -g MyRG --connection-name MyConnection --gateway-name MyGateway -n MyVPNSiteLinkConn --vpn-site-link /subscriptions/MySub/resourceGroups/MyRG/providers/Microsoft.Network/vpnSites/MyVPNSite/vpnSiteLinks/vpnsitelink --vpn-connection-protocol-type IKEv2
--vpn-site-link

VPN 網站鏈接的資源識別碼。

--connection-bandwidth

以 Mbps 為單位的預期頻寬。

--connection-name

VPN 網關聯機的名稱。

--enable-bgp

啟用 BGP。

接受的值: false, true
--gateway-name

VPN 閘道名稱。

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是完整資源識別碼,其中包含「資源標識碼」引數的所有資訊。 您應該提供 --ids 或其他「資源識別碼」引數。

--name -n

VPN 網站連結連線的名稱。

--no-wait

請勿等候長時間執行的作業完成。

預設值: False
--rate-limiting

啟用速率限制。

接受的值: false, true
--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

--routing-weight

路由權數。

--shared-key

共用金鑰。

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--use-local-azure-ip-address

使用本機 Azure IP 起始連線。

接受的值: false, true
--use-policy-based-traffic-selectors

啟用以原則為基礎的流量選取器。

接受的值: false, true
--vpn-connection-protocol-type

用於此連線的 連線 通訊協定。

接受的值: IKEv1, IKEv2
--vpn-link-connection-mode

Vpn 連結連線模式。

接受的值: Default, InitiatorOnly, ResponderOnly
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

列出站對站 VPN 網關聯機 VPN 月臺連結連線。

az network vpn-gateway connection vpn-site-link-conn list --connection-name
                                                          --gateway-name
                                                          --resource-group

列出站對站 VPN 網關聯機上的 VPN 月台連結連線

az network vpn-gateway connection vpn-site-link-conn list -g MyRG --connection-name MyConnection --gateway-name MyGateway
--connection-name

VPN 網關聯機的名稱。

--gateway-name

VPN 閘道名稱。

--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

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

從站對站 VPN 網關聯機移除 VPN 月台連結連線。

az network vpn-gateway connection vpn-site-link-conn remove --index
                                                            [--connection-name]
                                                            [--gateway-name]
                                                            [--ids]
                                                            [--no-wait]
                                                            [--resource-group]
                                                            [--subscription]

從站對站 VPN 網關聯機移除 AVPN 網站連結連線

az network vpn-gateway connection vpn-site-link-conn remove -g MyRG --connection-name MyConnection --gateway-name MyGateway --index 1
--index

項目的清單索引(從 1 開始)。

--connection-name

VPN 網關聯機的名稱。

--gateway-name

VPN 閘道名稱。

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是完整資源識別碼,其中包含「資源標識碼」引數的所有資訊。 您應該提供 --ids 或其他「資源識別碼」引數。

--no-wait

請勿等候長時間執行的作業完成。

預設值: False
--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 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

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。