共用方式為


Move-ServiceFabricInstance

移動無狀態服務的分割區實例。

語法

Move-ServiceFabricInstance
    [-CurrentInstanceNodeName <String>]
    [-NewInstanceNodeName <String>]
    [-IgnoreConstraints <Boolean>]
    -PartitionId <Guid>
    -ServiceName <Uri>
    [-TimeoutSec <Int32>]
    [<CommonParameters>]
Move-ServiceFabricInstance
    [-CurrentInstanceNodeName <String>]
    [-NewInstanceNodeName <String>]
    [-IgnoreConstraints <Boolean>]
    -ServiceName <Uri>
    [-TimeoutSec <Int32>]
    [<CommonParameters>]
Move-ServiceFabricInstance
    [-CurrentInstanceNodeName <String>]
    [-NewInstanceNodeName <String>]
    [-IgnoreConstraints <Boolean>]
    -ServiceName <Uri>
    [-PartitionKindSingleton]
    [-TimeoutSec <Int32>]
    [<CommonParameters>]
Move-ServiceFabricInstance
    [-CurrentInstanceNodeName <String>]
    [-NewInstanceNodeName <String>]
    [-IgnoreConstraints <Boolean>]
    -ServiceName <Uri>
    [-PartitionKindNamed]
    -PartitionKey <String>
    [-TimeoutSec <Int32>]
    [<CommonParameters>]
Move-ServiceFabricInstance
    [-CurrentInstanceNodeName <String>]
    [-NewInstanceNodeName <String>]
    [-IgnoreConstraints <Boolean>]
    -ServiceName <Uri>
    [-PartitionKindUniformInt64]
    -PartitionKey <String>
    [-TimeoutSec <Int32>]
    [<CommonParameters>]

Description

此命令會移動無狀態服務分割區的實例,並遵守所有條件約束。 必須指定數據分割標識碼和服務名稱,才能移動實例。 指定時 CurrentNodeName 會識別行動的實例。 如果未指定,則會移動隨機實例、省略新的節點名稱,並將實例移至隨機節點。 如果指定 IgnoreConstraints 參數並設定為 true,則不論條件約束為何,都會移動實例。

參數

-CurrentInstanceNodeName

實例移動的來源節點名稱。 如果未指定,實例會從隨機節點移動。

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

-IgnoreConstraints

移動複本或實例時忽略條件約束。 如果未指定此參數,則會接受所有條件約束。

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

-NewInstanceNodeName

次要複本或實例移動的目標節點名稱。 如果未指定,複本或實例會移至隨機節點。

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

-PartitionId

指定分割區標識碼。

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

-PartitionKey

指定數據分割索引鍵。

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

-PartitionKindNamed

指出此 Cmdlet 會移動具名分割區。

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

-PartitionKindSingleton

指出此 Cmdlet 會移動單一數據分割。

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

-PartitionKindUniformInt64

指出此 Cmdlet 會移動 UniformInt64 磁碟分區。

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

-ServiceName

服務的名稱。

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

-TimeoutSec

指定作業的逾時期間,以秒為單位。

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

輸入

System.Boolean

System.Guid

System.Uri

System.String

輸出

System.Object