< Back

Get-AzureRmRecoveryServicesBackupJobDetails

Tue Jan 29, 2019 10:00 pm

NAME Get-AzureRmRecoveryServicesBackupJobDetails



SYNOPSIS

Gets details for a Backup job.





SYNTAX

Get-AzureRmRecoveryServicesBackupJobDetails [-Job] <JobBase> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]



Get-AzureRmRecoveryServicesBackupJobDetails [-JobId] <String> [-DefaultProfile <IAzureContextContainer>] [<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.





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



-Job <JobBase>

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



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-JobId <String>

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



Required? true

Position? 2

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

None

This cmdlet does not accept any input.





OUTPUTS

Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase







NOTES









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.







RELATED LINKS

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

Get-AzureRmRecoveryServicesBackupJobDetails