The Get-AzRecoveryServicesBackupJobDetail cmdlet gets Azure Backup job details for a specified job.
Set the vault context by using the -VaultId parameter.
Warning: Get-AzRecoveryServicesBackupJobDetails alias will be removed in a future breaking change release.
The first command fetches the relevant vault. The second command gets an array of failed jobs in the vault, and then stores them in the $Jobs array.
The third command gets the job details for the 1st failed job in $Jobs, and then stores them in the $JobDetails variable.
The final command displays error details for the failed jobs.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.