Skip to content

Latest commit

 

History

History
133 lines (99 loc) · 3.17 KB

Resume-AzureSiteRecoveryJob.md

File metadata and controls

133 lines (99 loc) · 3.17 KB
external help file ms.assetid online version schema
Microsoft.Azure.Commands.RecoveryServicesRdfe.dll-Help.xml
E214AFEB-90A6-4553-94D4-FBEA6ADE572E
2.0.0

Resume-AzureSiteRecoveryJob

SYNOPSIS

Resumes a suspended Site Recovery job.

[!INCLUDE rdfe-banner]

SYNTAX

ByObject (Default)

Resume-AzureSiteRecoveryJob -Job <ASRJob> [-Comments <String>] [-Profile <AzureSMProfile>] [<CommonParameters>]

ById

Resume-AzureSiteRecoveryJob -Id <String> [-Comments <String>] [-Profile <AzureSMProfile>] [<CommonParameters>]

DESCRIPTION

The Resume-AzureSiteRecoveryJob cmdlet resumes a suspended Azure Site Recovery job.

EXAMPLES

Example 1: Resume all jobs

PS C:\> $Jobs = Get-AzureSiteRecoveryJob  
PS C:\> Resume-AzureSiteRecoveryJob -Job $Jobs
ID               : d16397fb-cdf1-4972-b677-c333f3c557b4
ClientRequestId  : 32ace403-0916-4967-83a1-529176bd6e88-2014-49-06 15:49:24Z-P
State            : Suspended
StateDescription : WaitingForManualAction
StartTime        : 10/6/2014 10:19:28 AM
EndTime          : 10/6/2014 10:19:31 AM
AllowedActions   : {Cancel, RestartTestFailoverCleanup}
Name             : Test failover
Tasks            : {Recovery plan preflight checks, Create test environment, All groups failover: Pre steps (1), 
                   Recovery plan failover...} 
Errors           : {}

The first command gets all the Azure Site Recovery jobs for the current Site Recovery vault by using the Get-AzureSiteRecoveryJob cmdlet, and then stores the results in the $Jobs variable.

The second command resumes the job specified by $Jobs.

PARAMETERS

-Comments

Specifies the comments for the job log.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Id

Specifies the ID of a job to resume.

Type: String
Parameter Sets: ById
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Job

Specifies the job to resume.

Type: ASRJob
Parameter Sets: ByObject
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Type: AzureSMProfile
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

OUTPUTS

NOTES

RELATED LINKS

Get-AzureSiteRecoveryJob

Restart-AzureSiteRecoveryJob

Stop-AzureSiteRecoveryJob