Start-AzureStorSimpleDeviceFailoverJob
ボリューム コンテナー グループのフェールオーバー操作を開始します。
注意
このドキュメントで参照されているコマンドレットは、Service Management API を使用するレガシ Azure リソースを管理するためのものです。 Azure Resource Manager リソースを管理するためのコマンドレットについては、Az PowerShell モジュールを参照してください。
構文
Start-AzureStorSimpleDeviceFailoverJob
-VolumecontainerGroups <System.Collections.Generic.List`1[Microsoft.WindowsAzure.Management.StorSimple.Models.DataContainerGroup]>
[-Force]
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Start-AzureStorSimpleDeviceFailoverJob
-DeviceId <String>
-VolumecontainerGroups <System.Collections.Generic.List`1[Microsoft.WindowsAzure.Management.StorSimple.Models.DataContainerGroup]>
-TargetDeviceId <String>
[-Force]
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Start-AzureStorSimpleDeviceFailoverJob
-DeviceName <String>
-VolumecontainerGroups <System.Collections.Generic.List`1[Microsoft.WindowsAzure.Management.StorSimple.Models.DataContainerGroup]>
-TargetDeviceName <String>
[-Force]
[-Profile <AzureSMProfile>]
[<CommonParameters>]
説明
Start-AzureStorSimpleDeviceFailoverJob コマンドレットは、あるデバイスから別のデバイスへの 1 つ以上のボリューム コンテナー グループのフェールオーバー操作を開始します。
例
例 1: 名前付きデバイスと名前付きターゲット デバイスのフェールオーバー ジョブを開始する
PS C:\>(Get-AzureStorSimpleFailoverVolumeContainers -DeviceName "ChewD_App7") | Where-Object {$_.IsDCGroupEligibleForDR -eq $True} | Start-AzureStorSimpleDeviceFailoverJob -DeviceName "ChewD_App7" -TargetDeviceName "Fuller05" -Force
a3d902be-8ffb-42a4-bbf8-0a1b30db71b2_0ee59ae9-0293-46e2-ae56-bc308c8e5520
このコマンドは、Get-AzureStorSimpleFailoverVolumeContainers コマンドレットを使用して、ChewD_App7という名前のデバイスのフェールオーバー ボリューム コンテナーを取得します。
このコマンドは、結果を Where-Object コマンドレットに渡します。このコマンドレットは、IsDCGroupEligibleForDR プロパティの$True以外の値を持つコンテナーを削除します。
詳細を表示するには「Get-Help Where-Object
」を入力します。
現在のコマンドレットは、残りのフェールオーバー ボリューム コンテナーのフェールオーバー ジョブを開始します。
このコマンドは、デバイス名とターゲット デバイス名を指定します。
このコマンドは、コマンドレットが開始するジョブのインスタンス ID を返します。
例 2: ID で指定されたデバイスとターゲット デバイスのフェールオーバー ジョブを開始する
PS C:\>(Get-AzureStorSimpleFailoverVolumeContainers -DeviceId "3825f272-1efb-4c14-b63f-22605ce3b925") | Where-Object {$_.IsDCGroupEligibleForDR -eq $True} | Select-Object -First 1 | Start-AzureStorSimpleDeviceFailoverJob -DeviceId "3825f272-1efb-4c14-b63f-22605ce3b925" -TargetDeviceId "0ee59ae9-0293-46e2-ae56-bc308c8e5520" -Force
4c5ac0d0-4b66-465c-98f5-aec90505ad12_0ee59ae9-0293-46e2-ae56-bc308c8e5520
このコマンドは、Get-AzureStorSimpleFailoverVolumeContainers を使用して、ChewD_App7という名前のデバイスのフェールオーバー ボリューム コンテナーを取得します。
このコマンドは結果を Where-Object に渡し、IsDCGroupEligibleForDR プロパティの$True以外の値を持つコンテインターを削除します。
このコマンドレットは、結果を Select-Object コマンドレットに渡します。このコマンドレットは、現在のコマンドレットに渡す最初のオブジェクトを選択します。
詳細を表示するには「Get-Help Select-Object
」を入力します。
現在のコマンドレットは、選択したフェールオーバー ボリューム コンテナーのフェールオーバー ジョブを開始します。
このコマンドは、デバイス ID とターゲット デバイス ID を指定します。
このコマンドは、コマンドレットが開始するジョブのインスタンス ID を返します。
パラメーター
-DeviceId
ボリューム コンテナー グループが存在する StorSimple デバイスのインスタンス ID を指定します。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DeviceName
ボリューム コンテナー グループが存在する StorSimple デバイスの名前を指定します。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
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 |
-Profile
Azure プロファイルを指定します。
Type: | AzureSMProfile |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TargetDeviceId
このコマンドレットがボリューム コンテナー グループをフェールオーバーする StorSimple デバイスのインスタンス ID を指定します。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TargetDeviceName
このコマンドレットがボリューム コンテナー グループをフェールオーバーする StorSimple デバイスの名前を指定します。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VolumecontainerGroups
このコマンドレットが別のデバイスにフェールオーバーするボリューム コンテナー グループの一覧を指定します。
Type: | List<T>[DataContainerGroup] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
入力
List\<DataContainerGroup\>
ボリューム コンテナー グループの一覧をこのコマンドレットにパイプできます。
出力
String