共用方式為


az network vpn-server-config

備註

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

管理 VPN 伺服器組態。

命令

名稱 Description 類型 狀態
az network vpn-server-config create

建立 VPN 伺服器組態。

擴充套件 GA
az network vpn-server-config delete

刪除 VPN 伺服器組態。

擴充套件 GA
az network vpn-server-config ipsec-policy

管理 VPN 伺服器設定 IPSec 原則。

擴充套件 GA
az network vpn-server-config ipsec-policy add

將IPSec原則新增至 VPN 伺服器組態。

擴充套件 GA
az network vpn-server-config ipsec-policy list

列出 VPN 伺服器設定 IPSec 原則。

擴充套件 GA
az network vpn-server-config ipsec-policy remove

從 VPN 伺服器組態中移除 IPSec 原則。

擴充套件 GA
az network vpn-server-config ipsec-policy wait

將 CLI 置於等候狀態,直到符合 VPN 伺服器設定的 IPSec 原則條件為止。

擴充套件 GA
az network vpn-server-config list

列出所有 VPN 伺服器組態。

擴充套件 GA
az network vpn-server-config set

設定 VPN 伺服器組態的設定。

擴充套件 GA
az network vpn-server-config show

顯示 VPN 伺服器組態的詳細數據。

擴充套件 GA
az network vpn-server-config wait

將 CLI 置於等候狀態,直到符合 VPN 伺服器設定的條件為止。

擴充套件 GA

az network vpn-server-config create

建立 VPN 伺服器組態。

az network vpn-server-config create --name
                                    --resource-group
                                    [--aad-audience]
                                    [--aad-issuer]
                                    [--aad-tenant]
                                    [--auth-types {AAD, Certificate, Radius}]
                                    [--location]
                                    [--no-wait]
                                    [--protocols {IkeV2, OpenVPN}]
                                    [--radius-client-root-certs]
                                    [--radius-server-root-certs]
                                    [--radius-servers]
                                    [--vpn-client-revoked-certs]
                                    [--vpn-client-root-certs]

範例

使用 VPN 驗證類型建立 VPN 伺服器組態

az network vpn-server-config create -n MyVPNServerConfig -g MyRG --vpn-client-root-certs "ApplicationGatewayAuthCert.cer" --vpn-client-revoked-certs "ApplicationGatewayAuthCert.pem"

必要參數

--name -n

Vpn 伺服器組態的名稱。

--resource-group -g

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

選擇性參數

--aad-audience

AAD Vpn 驗證參數 AAD 物件。

--aad-issuer

AAD Vpn 驗證參數 AAD 簽發者。

--aad-tenant

AAD Vpn 驗證參數 AAD 租使用者。

--auth-types

VpnServerConfiguration 的 VPN 驗證類型清單。

接受的值: AAD, Certificate, Radius
--location -l

位置。 值的來源:az account list-locations。 您可以使用 az configure --defaults location=<location>來設定預設位置。

--no-wait

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

預設值: False
--protocols

VpnServerConfiguration 的 VPN 通訊協定。

接受的值: IkeV2, OpenVPN
--radius-client-root-certs

Radius 用戶端跟證書檔案路徑的清單。

--radius-server-root-certs

Radius 伺服器跟證書檔案路徑的清單。

--radius-servers

Radius Server 組態。

--vpn-client-revoked-certs

VPN 用戶端撤銷的憑證檔案路徑清單。

--vpn-client-root-certs

VPN 用戶端跟證書檔案路徑的清單。

全域參數
--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。

az network vpn-server-config delete

刪除 VPN 伺服器組態。

az network vpn-server-config delete --name
                                    --resource-group
                                    [--yes]

必要參數

--name -n

Vpn 伺服器組態的名稱。

--resource-group -g

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

選擇性參數

--yes -y

請勿提示確認。

預設值: False
全域參數
--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。

az network vpn-server-config list

列出所有 VPN 伺服器組態。

az network vpn-server-config list [--resource-group]

選擇性參數

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

az network vpn-server-config set

設定 VPN 伺服器組態的設定。

az network vpn-server-config set --name
                                 --resource-group
                                 [--aad-audience]
                                 [--aad-issuer]
                                 [--aad-tenant]
                                 [--auth-types {AAD, Certificate, Radius}]
                                 [--location]
                                 [--no-wait]
                                 [--protocols {IkeV2, OpenVPN}]
                                 [--radius-client-root-certs]
                                 [--radius-server-root-certs]
                                 [--radius-servers]
                                 [--vpn-client-revoked-certs]
                                 [--vpn-client-root-certs]

範例

使用Radius驗證類型設定 VPN 伺服器組態

az network vpn-server-config set -n MyVPNServerConfig -g MyRG --radius-client-root-certs "ApplicationGatewayAuthCert.cer" --radius-server-root-certs "ApplicationGatewayAuthCert.pem" --radius-servers address=test1 secret=clitest score=10 --radius-servers address=test2 secret=clitest score=10

必要參數

--name -n

Vpn 伺服器組態的名稱。

--resource-group -g

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

選擇性參數

--aad-audience

AAD Vpn 驗證參數 AAD 物件。

--aad-issuer

AAD Vpn 驗證參數 AAD 簽發者。

--aad-tenant

AAD Vpn 驗證參數 AAD 租使用者。

--auth-types

VpnServerConfiguration 的 VPN 驗證類型清單。

接受的值: AAD, Certificate, Radius
--location -l

位置。 值的來源:az account list-locations。 您可以使用 az configure --defaults location=<location>來設定預設位置。

--no-wait

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

預設值: False
--protocols

VpnServerConfiguration 的 VPN 通訊協定。

接受的值: IkeV2, OpenVPN
--radius-client-root-certs

Radius 用戶端跟證書檔案路徑的清單。

--radius-server-root-certs

Radius 伺服器跟證書檔案路徑的清單。

--radius-servers

Radius Server 組態。

--vpn-client-revoked-certs

VPN 用戶端撤銷的憑證檔案路徑清單。

--vpn-client-root-certs

VPN 用戶端跟證書檔案路徑的清單。

全域參數
--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。

az network vpn-server-config show

顯示 VPN 伺服器組態的詳細數據。

az network vpn-server-config show --name
                                  --resource-group

必要參數

--name -n

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。

az network vpn-server-config wait

將 CLI 置於等候狀態,直到符合 VPN 伺服器設定的條件為止。

az network vpn-server-config wait --name
                                  --resource-group
                                  [--created]
                                  [--custom]
                                  [--deleted]
                                  [--exists]
                                  [--interval]
                                  [--timeout]
                                  [--updated]

必要參數

--name -n

Vpn 伺服器組態的名稱。

--resource-group -g

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

選擇性參數

--created

請等候在 'Succeeded' 使用 'provisioningState' 建立。

預設值: False
--custom

等到條件符合自定義 JMESPath 查詢為止。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。

--deleted

等到刪除為止。

預設值: False
--exists

等候資源存在。

預設值: False
--interval

輪詢間隔以秒為單位。

預設值: 30
--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

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。