azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

[Doc]: Get-AzRecoveryServicesBackupJob

Open fbodmer opened this issue 2 years ago • 3 comments

Description

In Get-AzRecoveryServicesBackupJob the parameter Operation doesn't offer the CrossRegionRestore value. This is somewhat confusing as the value Restore doesn't include cross region restore jobs. Best would be to add the value to the Operation, but it might also help to mention this in the documentation. Or add something like this: Get-AzRecoveryServicesBackupJob -VaultId $VaultId -From ((Get-Date).AddDays(-29)).ToUniversalTime() | Where-Object {$_.Operation -eq 'CrossRegionRestore'}

fbodmer avatar Nov 30 '22 06:11 fbodmer

Thank you for your feedback. This has been routed to the support team for assistance.

ghost avatar Nov 30 '22 06:11 ghost

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @pvrk, @adityabalaji-msft.

Issue Details

Description

In Get-AzRecoveryServicesBackupJob the parameter Operation doesn't offer the CrossRegionRestore value. This is somewhat confusing as the value Restore doesn't include cross region restore jobs. Best would be to add the value to the Operation, but it might also help to mention this in the documentation. Or add something like this: Get-AzRecoveryServicesBackupJob -VaultId $VaultId -From ((Get-Date).AddDays(-29)).ToUniversalTime() | Where-Object {$_.Operation -eq 'CrossRegionRestore'}

Author: fbodmer
Assignees: -
Labels:

feature-request, Recovery Services Backup, Service Attention, customer-reported

Milestone: -

ghost avatar Dec 01 '22 04:12 ghost

@hiaga Could you please check

Daya-Patil avatar Jan 29 '24 04:01 Daya-Patil

@fbodmer : you can give -UseSecondaryRegion flag to fetch job in secondary region. that would ideally list all CRR jobs like this

$Joblist = Get-AzRecoveryServicesBackupJob -VaultId $vault.ID -UseSecondaryRegion -VaultLocation $vault.Location

hiaga avatar Mar 07 '24 08:03 hiaga

@fbodmer taking your suggestion to accept CrossRegionRestore as a value to Operation parameter. Will also update the examples accordingly.

closing this issue, will be updated in next release

hiaga avatar Mar 07 '24 10:03 hiaga