共用方式為


Remove-AzNetworkInterfaceTapConfig

從指定的網路介面移除點選組態

語法

Remove-AzNetworkInterfaceTapConfig
      -ResourceGroupName <String>
      -NetworkInterfaceName <String>
      -Name <String>
      [-Force]
      [-PassThru]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-AzNetworkInterfaceTapConfig
      -ResourceId <String>
      [-Force]
      [-PassThru]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-AzNetworkInterfaceTapConfig
      -InputObject <PSNetworkInterfaceTapConfiguration>
      [-Force]
      [-PassThru]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Remove-AzNetworkInterfaceTapConfig Cmdlet 會從網路介面清單中移除 Azure 點選設定。

範例

範例 1:移除點選設定

Remove-AzNetworkInterfaceTapConfig -Name "TapConfiguration" -NetworkInterfaceName "NetworkInterface1" -ResourceGroupName "ResourceGroup1"

此命令會從資源群組 ResourceGroup1 中的 NetworkInterface1 移除 TapConfiguration。 因為未使用 Force 參數,因此系統會提示使用者確認此動作。

範例 2:移除網路介面

Get-AzNetworkInterfaceTapConfig -Name "TapConfiguration" -NetworkInterfaceName "NetworkInterface1" -ResourceGroupName "ResourceGroup1" | Remove-AzNetworkInterfaceTapConfig -Force

此命令會從資源群組 ResourceGroup1 中的 NetworkInterface1 移除 TapConfiguration。 因為使用 Force 參數,因此不會提示使用者進行確認。

參數

-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

NetworkInterfaceTapConfig 的參考。

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

-Name

虛擬網路對等互連名稱。

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

-NetworkInterfaceName

虛擬網路名稱。

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

-PassThru

會傳回 物件,代表您正在使用的專案。 根據預設,此 Cmdlet 不會產生任何輸出。

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

-ResourceGroupName

資源組名。

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

-ResourceId

NetworkInterfaceTapConfig 資源標識符。

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

-WhatIf

顯示執行 Cmdlet 後會發生的情況。 未執行 Cmdlet。

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

輸入

String

PSNetworkInterfaceTapConfiguration

輸出

PSNetworkInterface