共用方式為


Get-AzVpnClientIpsecParameter

取得 虛擬網絡 閘道上為點對站連線設定的 vpn Ipsec 參數。

語法

Get-AzVpnClientIpsecParameter
   [-Name <String>]
   -ResourceGroupName <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

虛擬網絡 Gateway 是代表您在 Azure 中閘道的物件。 Get-AzVpnClientIpsecParameter Cmdlet 會根據閘道名稱和資源組名,傳回 Azure 中閘道上設定的 vpn ipsec 參數物件。

範例

範例 1:取得 虛擬網絡 閘道上針對點對站連線所設定的 vpn Ipsec 參數。

$VpnClientIPsecParameters = Get-AzVpnClientIpsecParameter -Name myGateway -ResourceGroupName myRG

傳回資源群組 「myRG」 內名稱為 「myGateway」 的 虛擬網絡 Gateway 上設定的 vpn ipsec 參數物件

參數

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Name

資源名稱。

類型:String
別名:ResourceName
Position:Named
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

-ResourceGroupName

資源組名。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

輸入

String

輸出

PSVpnClientIPsecParameters