Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Restart-AzureSiteRecoveryJob

Restart-AzureSiteRecoveryJob

microsoft.azure.commands.recoveryservices.dll

Synopsis

Restarts the Operation in Azure Site Recovery

Syntax

Restart-AzureSiteRecoveryJob [-Id] [<CommonParameters>]

Restart-AzureSiteRecoveryJob [-Job] [<CommonParameters>]

Detailed Description

Restarts the Operation in Azure Site Recovery . This cmdlet is allowed on failed and cancelled jobs . To know allowed actions on a job look for Allowed Actions in job object

Parameters

-Id <string>

Id of the Azure Site Recovery Job

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-Job <ASRJob>

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- EXAMPLE 1 --------------------------

C:\PS>

Description

-----------

          Restart-AzureSiteRecoveryJob -Id bbf0b839-9aaa-49e1-8354-601c9145966d

          ID               : bbf0b839-9aaa-49e1-8354-601c9145966d
          ClientRequestId  : ef42c8b0-640c-4442-960b-349f83d161a5-2014-24-06 14:24:04Z-P
          State            : Failed
          StateDescription : Failed
          StartTime        : 10/6/2014 9:41:08 AM
          EndTime          : 10/6/2014 9:41:21 AM
          AllowedActions   : {Cancel, Restart}
          Name             : Enable protection
          Tasks            : {Prerequisites check for enabling protection , Identifying replication target, Enable replication,
          Starting initial replication...}
          Errors           : {CreateProtectionTargetTask}