共用方式為


Get-AzVirtualNetworkGatewayFailoverSingleTestDetail

擷取虛擬網路閘道特定容錯移轉測試的詳細資訊。

語法

Default (預設值)

Get-AzVirtualNetworkGatewayFailoverSingleTestDetail
    -ResourceGroupName <String>
    -VirtualNetworkGatewayName <String>
    -PeeringLocation <String>
    -FailoverTestId <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

Get-AzVirtualNetworkGatewayFailoverSingleTestDetail Cmdlet 會擷取在虛擬網路閘道上執行之特定容錯移轉測試的詳細資訊。 此 Cmdlet 可讓您使用 FailoverTestId (唯一的 GUID)、執行測試的 PeeringLocation,以及 ResourceGroupName 和 VirtualNetworkGatewayName 來識別特定測試,以尋找特定閘道。

您可以從 Get-AzVirtualNetworkGatewayFailoverAllTestsDetail Cmdlet 的輸出取得 FailoverTestId (或 TestGuid),其中提供在虛擬網路閘道上執行的所有容錯移轉測試清單。

當您需要檢查單一容錯移轉測試的結果時,此 Cmdlet 特別有用,例如開始時間、結束時間、狀態和其他相關測試詳細資料。 您可以使用 FailoverTestId 和 PeeringLocation 來指定要擷取的容錯移轉測試。

範例

範例 1

Get-AzVirtualNetworkGatewayFailoverSingleTestDetail -ResourceGroupName "test_rg" -VirtualNetworkGatewayName "test_gateway" -PeeringLocation "West US" -FailoverTestId "00000000-0000-0000-0000-000000000000"

此範例會擷取 FailoverTestId 為 000000000-0000-0000-0000-0000-000000000000000 的特定容錯移轉測試的詳細數據,該測試是在資源群組 “test_rg” 的虛擬網路閘道 “test_gateway” 上的美國東部對等互連位置中執行。

參數

-DefaultProfile

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

參數屬性

類型:IAzureContextContainer
預設值:None
支援萬用字元:False
不要顯示:False
別名:AzContext, AzureRmContext, AzureCredential

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-FailoverTestId

識別測試的唯一 Guid 值。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-PeeringLocation

測試的對等互連位置。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-ResourceGroupName

虛擬網路閘道的資源組名。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-VirtualNetworkGatewayName

虛擬網路閘道的名稱。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

CommonParameters

此 cmdlet 支援常見參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters

輸入

None

輸出

List<T>