Update-ServiceFabricNodeConfiguration
更新 Service Fabric 叢集設定。
Syntax
Update-ServiceFabricNodeConfiguration
[-ClusterManifestPath] <String>
[-Force]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Update-ServiceFabricNodeConfiguration Cmdlet 會更新 Service Fabric 叢集組態。 此 Cmdlet 僅適用于災害復原。 請勿在正常作業期間使用它。
若要管理 Service Fabric 叢集,請使用 [以系統管理員身分執行] 選項啟動Windows PowerShell。 在 Service Fabric 叢集上執行任何作業之前,請先使用 Connect-ServiceFabricCluster Cmdlet 建立叢集的連線。
範例
範例 1:透過叢集資訊清單更新現有叢集的 Service Fabric 節點組態
PS C:\> Update-ServiceFabricNodeConfiguration -ClusterManifestPath c:\temp\clustermanifest.v2.xml
此命令會更新叢集資訊清單,以更新 Service Fabric 節點集
參數
-ClusterManifestPath
指定 Service Fabric 叢集資訊清單的路徑。 Cmdlet 會根據您指定的資訊清單來更新叢集組態。
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
在執行 Cmdlet 前提示您確認。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Force
強制執行命令而不要求使用者確認。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
顯示執行 Cmdlet 後會發生的情況。 Cmdlet 並不會執行。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
輸入
None
輸出
System.Object