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

Gets the details of a Backup job.

Syntax

Get-AzureRmBackupJobDetails
   -Job <AzureRMBackupJob>
   [<CommonParameters>]
Get-AzureRmBackupJobDetails
   -JobId <String>
   -Vault <AzureRMBackupVault>
   [<CommonParameters>]

Description

The Get-AzureRmBackupJobDetails cmdlet gets the details of an Azure Backup job. You can use this cmdlet to gather information about a job that fails.

Examples

Example 1: Display the details of a failed job

PS C:\>$Vault = Get-AzureRmBackupVault -Name "Vault03" 
PS C:\> $Jobs = Get-AzureRmBackupJob -Vault $Vault -Status Failed
PS C:\> $JobDetails = Get-AzureRmBackupJobDetails -Job $Jobs[0]
PS C:\> $JobDetails.ErrorDetails
ErrorCode ErrorMessage                            Recommendations
--------- ------------                            ---------------
   400001 Command execution failed.               {Another operation is currently in p...

The first command gets the vault named Vault03 by using the Get-AzureRmBackupVault cmdlet. The command stores that object in the $Vault variable.

The second command gets failed jobs from the vault in $Vault, and then stores them in the $Jobs array variable.

The third job gets details for the first job in the $Jobs variable, and then stores those details in the $JobDetails variable.

The final command displays the ErrorDetails property of $JobDetails by using standard dot syntax.

Example 2: Display the recommended action for a failed job

PS C:\>$JobDetails.ErrorDetails.Recommendations
Another operation is currently in progress on this item. Please wait until the previous operation is completed, and then retry.

This command displays the recommended action from the $JobDetails variable that was created in the first example.

Required Parameters

-Job

Specifies a job for which this cmdlet gets details. To obtain an AzureRmBackupJob object, use the Get-AzureRmBackupJob cmdlet.

Type:AzureRMBackupJob
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-JobId

Specifies the ID of a job for which this cmdlet gets details. The ID is the InstanceId property of an AzureRmBackupJob object. To obtain an AzureRmBackupJob object, use Get-AzureRmBackupJob.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Vault

Specifies the Backup vault for which this cmdlet gets job details. To obtain an AzureRmBackupVault object, use the Get-AzureRmBackupVault cmdlet.

Type:AzureRMBackupVault
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

AzureRmBackupJobDetails

Notes

  • None