Remove-ServiceFabricTestState
從 Service Fabric 叢集移除所有測試狀態數據。
語法
Remove-ServiceFabricTestState
[-TimeoutSec <Int32>]
[<CommonParameters>]
Description
Remove-ServiceFabricTestState Cmdlet 會從 Service Fabric 叢集移除所有測試狀態數據。 在測試驅動程式關機不正確的情況下,您可以使用此 Cmdlet。 某些動作會在 Service Fabric 叢集中設定測試狀態,如果行程在此狀態下失敗,它可能會讓 Service Fabric 叢集無法使用。 Remove-ServiceFabricTestState 會清除此測試狀態數據。
在 Service Fabric 叢集上執行任何作業之前,請使用 Connect-ServiceFabricCluster Cmdlet 來建立叢集的連線。
範例
範例 1:移除 Service Fabric 測試狀態
PS C:\> Remove-ServiceFabricTestState
此命令會移除 Service Fabric 測試狀態。
參數
-TimeoutSec
指定作業的逾時期間,以秒為單位。
類型: | Int32 |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
輸入
None
輸出
System.Object