Get-​Azure​Rm​Recovery​Services​Backup​Job​Details

Gets details for a Backup job.

Syntax

Get-AzureRmRecoveryServicesBackupJobDetails
   [-JobId] <String>
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [<CommonParameters>]
Get-AzureRmRecoveryServicesBackupJobDetails
   [-Job] <JobBase>
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [<CommonParameters>]

Description

The Get-AzureRmRecoveryServicesBackupJobDetails cmdlet gets Azure Backup job details for a specified job.

Set the vault context by using the Set-AzureRmRecoveryServicesVaultContext cmdlet before you use the current cmdlet.

Examples

Example 1: Get Backup job details for failed jobs

PS C:\>$Jobs = Get-AzureRmRecoveryServicesBackupJob -Status Failed
PS C:\> $JobDetails = Get-AzureRmRecoveryServicesBackupJobDetails -Job $Jobs[0]
PS C:\> $JobDetails.ErrorDetails

The first command gets an array of failed jobs in the vault, and then stores them in the $Jobs array.

The second command gets the job details for the failed jobs in $Jobs, and then stores them in the $JobDetails variable.

The final command displays error details for the failed jobs.

Required Parameters

-Job

Specifies the job to get. To obtain a BackupJob object, use the Get-AzureRmRecoveryServicesBackupJob cmdlet.

Type:JobBase
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobId

Specifies the ID of a Backup job. The ID is the InstanceId property of a BackupJob object.

Type:String
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-InformationAction

Specifies how this cmdlet responds to an information event.The acceptable values for this parameter are:- Continue

  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False