Set-HcsRehydrationJob

Set-HcsRehydrationJob

Pauses, resumes or cancels the running rehydration job.

Syntax

Parameter Set: Default
Set-HcsRehydrationJob [-VSN] <String> [-RehydrationJobState] <VolumeRehydrationJobState> {PAUSE | RESUME | CANCEL} [ <CommonParameters>]

Detailed Description

The Set-HcsRehydrationJob cmdlet pauses, resumes, or cancels an active rehydration job, to get the list of rehydration job run Get-HcsRehydrationJob[HCS_Cmdlets]_HCS_Cmdlets.

Parameters

-RehydrationJobState<VolumeRehydrationJobState>

Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-VSN<String>

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Cancel a rehydration job state

This command cancels the specified hydration job.

PS C:\> Set-HcsRehydrationJob -VSN "SS-VOL-7c65b04f-bbcd-4145-8fc8-2b626b789" – RehydrationJobState CANCEL

Get-HcsRehydrationJob[HCS_Cmdlets]_HCS_Cmdlets

Get-HcsRehydrationThrottling[HCS_Cmdlets]_HCS_Cmdlets

Set-HcsRehydrationThrottling[HCS_Cmdlets]_HCS_Cmdlets