azure-powershell
azure-powershell copied to clipboard
[Doc]: Get-AzRecoveryServicesBackupJob
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'}
Thank you for your feedback. This has been routed to the support team for assistance.
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: |
|
Milestone: | - |
@hiaga Could you please check
@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
@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