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

RecoveryPointExpiryTime values are mostly blank in results from Get-AzRecoveryServicesBackupRecoveryPoint

Open jameslean opened this issue 1 month ago • 2 comments

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:

Image

View from portal:

Image

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 -AutoSize

Environment 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.1

Module 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


jameslean avatar Nov 18 '25 15:11 jameslean

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Daya-Patil.

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Daya-Patil.