共用方式為


Get-AzNetworkInterfaceTapConfig

取得 Tap 組態資源。

語法

Get-AzNetworkInterfaceTapConfig
   -ResourceGroupName <String>
   -NetworkInterfaceName <String>
   [-Name <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Get-AzNetworkInterfaceTapConfig
   -ResourceId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Get-AzNetworkInterfaceTapConfig Cmdlet 會取得指定資源群組的 Azure Tap 組態、網路介面和點選組態名稱或點選資源群組和網路介面中的點選組態清單。

範例

範例 1:取得指定網路介面的所有點選設定

Get-AzNetworkInterfaceTapConfig -ResourceGroupName "ResourceGroup1" -NetworkInterfaceName "sourceNicName"

此命令會取得針對指定網路介面新增的點選組態。

範例 2:取得指定的點選設定

Get-AzNetworkInterfaceTapConfig -ResourceGroupName "ResourceGroup1" -NetworkInterfaceName "sourceNicName" -Name "tapconfigName"

此命令會取得為指定網路介面新增的特定點選組態。

範例 3:取得指定的點選設定

Get-AzNetworkInterfaceTapConfig -ResourceGroupName "ResourceGroup1" -NetworkInterfaceName "sourceNicName" -Name "tapconfig*"

此命令會取得針對指定網路介面新增的點選組態,其名稱開頭為 “tapconfig”。

參數

-Confirm

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

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

-DefaultProfile

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

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

-Name

特定點選組態的名稱。

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

-NetworkInterfaceName

網路介面名稱。

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

-ResourceGroupName

資源組名。

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

-ResourceId

TapConfiguration 資源的 ResourceId

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

-WhatIf

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

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

輸入

String

輸出

PSNetworkInterfaceTapConfiguration