-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Open
Labels
bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reported
Description
Description
When listing all restore points for a VM using the cmdlet Get-AzRecoveryServicesBackupRecoveryPoint, most points have an empty value in the RecoveryPointExpiryTime field, even though the expected expiry times are shown for all restore points when viewing in the portal.
Output from script:
View from portal:
Issue script & Debug output
$vault = Get-AzRecoveryServicesVault -Name $vaultName -ResourceGroupName $vaultRG
$container = Get-AzRecoveryServicesBackupContainer -ContainerType AzureVM -VaultId $vault.ID -FriendlyName $serverName -ResourceGroupName $serverRG
$item = Get-AzRecoveryServicesBackupItem -WorkloadType AzureVM -Container $container -VaultId $vault.ID
$restorePoints = Get-AzRecoveryServicesBackupRecoveryPoint -Item $item -StartDate $startDate -EndDate $endDate -VaultId $vault.ID
$restorePoints | select RecoveryPointId, RecoveryPointType, RecoveryPointTime, RecoveryPointExpiryTime, ContainerName, ContainerType | Format-Table -AutoSizeEnvironment data
Name Value
---- -----
PSVersion 5.1.22621.6133
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.22621.6133
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1Module versions
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 5.3.0 Az.Accounts {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault...}
Script 7.8.0 Az.RecoveryServices {Add-AzRecoveryServicesAsrReplicationProtectedItemDisk, Backup-AzRecoveryServicesBackupItem, Copy-AzRecoveryServicesVault, Disable-AzRecoveryServicesBackupAutoProtection...}Error output
Metadata
Metadata
Assignees
Labels
bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reported