共用方式為


Remove-AzVpnServerConfiguration

拿掉現有的 VpnServerConfiguration。

語法

Remove-AzVpnServerConfiguration
      -ResourceGroupName <String>
      -Name <String>
      [-Force]
      [-PassThru]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-AzVpnServerConfiguration
      -InputObject <PSVpnServerConfiguration>
      [-Force]
      [-PassThru]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-AzVpnServerConfiguration
      -ResourceId <String>
      [-Force]
      [-PassThru]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

拿掉現有的 VpnServerConfiguration。

範例

範例 1

Remove-AzVpnServerConfiguration -Name "test1config" -ResourceGroupName "P2SCortexGATesting" -Force -PassThru

上述命令將會移除現有的 VpnServerConfiguration。

參數

-Confirm

在執行 Cmdlet 之前,提示您進行確認。

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

-DefaultProfile

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

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

-Force

請勿要求確認。

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

-InputObject

要刪除的 vpnServerConfiguration 物件。

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

-Name

vpnServerConfiguration 名稱。

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

-PassThru

傳回 物件,表示正在執行此作業的專案。

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

-ResourceGroupName

資源組名。

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

-ResourceId

要刪除之 vpnServerConfiguration 的 Azure 資源標識符。

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

-WhatIf

顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。

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

輸入

PSVpnServerConfiguration

System.String

輸出

Boolean