Test-ServiceFabricConfiguration
驗證叢集組態,並測試獨立部署是否可以成功。
語法
Test-ServiceFabricConfiguration
[-ClusterConfigurationFilePath] <String>
[-OldClusterConfigurationFilePath <String>]
[-FabricRuntimePackagePath <String>]
[-FabricIsPreInstalled]
[-MaxPercentFailedNodes <Int32>]
[-TimeoutSec <Int32>]
[<CommonParameters>]
Description
Test-ServiceFabricConfiguration Cmdlet 會驗證叢集組態,並測試獨立部署是否可以從控制器的設定中成功目標計算機。
以 JavaScript 物件表示法 (JSON) 格式指定組態檔。
範例
範例 1:驗證部署
PS C:\> Test-ServiceFabricConfiguration -ClusterConfigurationFilePath "D:\standalone\ClusterConfig.Unsecure.DevCluster.json"
此命令會使用指定的組態,驗證叢集是否從目前的計算機部署。
範例 2:驗證部署和運行時間 CAB 檔案
PS C:\> Test-ServiceFabricConfiguration -ClusterConfigurationFilePath "D:\standalone\ClusterConfig.Unsecure.DevCluster.json" -FabricRuntimePackagePath "D:\deployanywhere\MicrosoftAzureServiceFabric.cab"
此命令會使用此組態來驗證叢集是否從目前的電腦部署。 此命令也會驗證運行時間 CAB 是否可用來部署叢集。
參數
-ClusterConfigurationFilePath
指定 JSON 叢集組態檔的路徑。
類型: | String |
Position: | 0 |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-FabricIsPreInstalled
略過 Service Fabric 執行時間安裝和清除運行時間驗證,因此只會設定節點。
類型: | SwitchParameter |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-FabricRuntimePackagePath
指定 Service Fabric 執行時間套件 CAB 檔案的路徑。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-MaxPercentFailedNodes
{{Fill MaxPercentFailedNodes Description}}
類型: | Int32 |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-OldClusterConfigurationFilePath
{{Fill OldClusterConfigurationFilePath Description}}
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-TimeoutSec
指定作業的逾時期間,以秒為單位。
類型: | Int32 |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
輸入
None
輸出
System.Object