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
Resume-AzureSiteRecoveryJob
-Job <ASRJob>
[-Comments <String>]
[-Profile <AzureSMProfile>]
[<CommonParameters>]
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 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Id
Specifies the ID of a job to resume.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Job
Specifies the job to resume.
Type: | ASRJob |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
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 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |