< Back

Resume-AzureRmRecoveryServicesAsrJob

Tue Jan 29, 2019 10:01 pm

NAME Resume-AzureRmRecoveryServicesAsrJob



SYNOPSIS

Resumes a suspended Azure Site Recovery job.





SYNTAX

Resume-AzureRmRecoveryServicesAsrJob [-Comment <String>] [-Confirm] [-DefaultProfile <IAzureContextContainer>] -InputObject <ASRJob> [-WhatIf]

[<CommonParameters>]



Resume-AzureRmRecoveryServicesAsrJob [-Comment <String>] [-Confirm] [-DefaultProfile <IAzureContextContainer>] -Name <String> [-WhatIf]

[<CommonParameters>]





DESCRIPTION

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





PARAMETERS

-Comment <String>

Comments for the job log.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with Azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InputObject <ASRJob>

The input object to the cmdlet: The ASR Job object corresponding to the job to be resumed.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Name <String>

Specify the ASR job by name.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob







OUTPUTS

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob







NOTES









Example 1



PS C:\\> $currentJob = Resume-AzureRmRecoveryServicesAsrJob -Job $Job



Resume the specified job if it is in a waiting or suspended state and return the updated ASR job object corresponding to the ASR job.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... icesasrjob

Get-AzureRmRecoveryServicesAsrJob

Restart-AzureRmRecoveryServicesAsrJob

Stop-AzureRmRecoveryServicesAsrJob