< Back

Get-AzureRmRecoveryServicesAsrJob

Tue Jan 29, 2019 10:02 pm

NAME Get-AzureRmRecoveryServicesAsrJob



SYNOPSIS

Gets the details of the specified ASR job or the list of recent ASR jobs in the Recovery Services vault.





SYNTAX

Get-AzureRmRecoveryServicesAsrJob [-DefaultProfile <IAzureContextContainer>] [-EndTime <DateTime>] [-StartTime <DateTime>] [-State {NotStarted |

InProgress | Succeeded | Other | Failed | Cancelled | Suspended}] [-TargetObjectId <String>] [<CommonParameters>]



Get-AzureRmRecoveryServicesAsrJob [-DefaultProfile <IAzureContextContainer>] -Job <ASRJob> [<CommonParameters>]



Get-AzureRmRecoveryServicesAsrJob [-DefaultProfile <IAzureContextContainer>] -Name <String> [<CommonParameters>]





DESCRIPTION

The Get-AzureRmRecoveryServicesAsrJob cmdlet gets Azure Site Recovery jobs. You can use this cmdlet to view the ASR jobs in the Recovery Services

vault.





PARAMETERS

-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



-EndTime <DateTime>

Specifies the end time for the jobs. This cmdlet gets all jobs that started before the specified time. To obtain a DateTime object for this

parameter, use the Get-Date cmdlet. For more information, type `Get-Help Get-Date`.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Job <ASRJob>

Specifies the ASR job object to get updated details for.



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



-StartTime <DateTime>

Specifies the start time for the jobs. This cmdlet gets all jobs that started after the specified time.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-State <String>

Specifies the state for a ASR job. This cmdlet gets all jobs that match the specified state. The acceptable values for this parameter are:



- NotStarted



- InProgress



- Succeeded



- Other



- Failed



- Cancelled



- Suspended



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-TargetObjectId <String>

Specifies the ID of the object. Used to search for jobs on the specified object.



Required? false

Position? named

Default value None

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

System.Collections.Generic.IEnumerable`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob,

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null]]







NOTES









Example 1



PS C:\\> $jobs = Get-AzureRmRecoveryServicesAsrJob -TargetObjectId $ASRObjectId



Returns all the jobs on a particular ASR object(reference the ASR object such as replicated item or recovery plan by its ID.)







RELATED LINKS

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

Restart-AzureRmRecoveryServicesAsrJob

Resume-AzureRmRecoveryServicesAsrJob

Stop-AzureRmRecoveryServicesAsrJob