共用方式為


Test-ServiceFabricClusterManifest

驗證 Service Fabric 叢集指令清單。

語法

Test-ServiceFabricClusterManifest
    [-ClusterManifestPath] <String>
    [-OldClusterManifestPath <String>]
    [<CommonParameters>]

Description

Test-ServiceFabricClusterManifest Cmdlet 會驗證 Service Fabric 叢集指令清單。 為了協助避免新的 Service Fabric 叢集部署或叢集升級問題,建議您測試叢集指令清單中是否有明顯的錯誤。 此 Cmdlet 不會探索組態值的問題。

範例

範例 1:驗證叢集指令清單

PS C:\> Test-ServiceFabricClusterManifest -ClusterManifestPath \\configStore\ClusterManifests\CH1\ClusterManifest_123.xml

此命令會驗證指定的 Service Fabric 叢集指令清單。

範例 2:驗證更新的叢集指令清單

PS C:\> Test-ServiceFabricClusterManifest -ClusterManifestPath \\configStore\ClusterManifests\CH1\ClusterManifest_123.v2.xml -OldClusterManifestPath \\configStore\ClusterManifests\CH1\ClusterManifest_123.v1.xml

此命令會針對現有的叢集指令清單檔案驗證指定的叢集指令清單。 這有助於驗證兩個叢集指令清單之間的變更,以及在開始叢集升級之前攔截潛在錯誤。

參數

-ClusterManifestPath

指定 Service Fabric 叢集指令清單的路徑。

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

-OldClusterManifestPath

指定已部署的現有 Service Fabric 叢集指令清單路徑。 Cmdlet 會根據此參數針對組態升級目的所指定的指令清單,驗證 clusterManifestPath 中指定的指令清單。

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

輸入

None

輸出

System.Object