Resume-AzureSiteRecoveryJob
Resumes a suspended Site Recovery job.
Note
The cmdlets referenced in this documentation are for managing legacy Azure resources that use Azure Service Manager (ASM) APIs. This legacy PowerShell module isn't recommended when creating new resources since ASM is scheduled for retirement. For more information, see Azure Service Manager retirement.
The Az PowerShell module is the recommended PowerShell module for managing Azure Resource Manager (ARM) resources with PowerShell.
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.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Id
Specifies the ID of a job to resume.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ById
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Job
Specifies the job to resume.
Parameter properties
Type: | ASRJob |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ByObject
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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.
Parameter properties
Type: | AzureSMProfile |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.