From 344a3ee944389be316b52a34a6df3bd7574d796b Mon Sep 17 00:00:00 2001 From: Himanshu Agarwal Date: Thu, 10 Sep 2020 21:38:31 +0530 Subject: [PATCH] Fixing Delete State for workload backup items (#12918) --- .../RecoveryServices.Backup.Models/AzureModels/AzureItem.cs | 1 + src/RecoveryServices/RecoveryServices/ChangeLog.md | 1 + 2 files changed, 2 insertions(+) diff --git a/src/RecoveryServices/RecoveryServices.Backup.Models/AzureModels/AzureItem.cs b/src/RecoveryServices/RecoveryServices.Backup.Models/AzureModels/AzureItem.cs index 4a3f12d41ce9..91a30893536e 100644 --- a/src/RecoveryServices/RecoveryServices.Backup.Models/AzureModels/AzureItem.cs +++ b/src/RecoveryServices/RecoveryServices.Backup.Models/AzureModels/AzureItem.cs @@ -73,6 +73,7 @@ public AzureItem(ProtectedItemResource protectedItemResource, { ProtectionPolicyName = policyName; PolicyId = protectedItemResource.Properties.PolicyId; + DeleteState = ItemDeleteState.NotDeleted; } } public class AzureItemExtendedInfo : ItemExtendedInfoBase diff --git a/src/RecoveryServices/RecoveryServices/ChangeLog.md b/src/RecoveryServices/RecoveryServices/ChangeLog.md index c5dddbbe6e60..50479b74ac5c 100644 --- a/src/RecoveryServices/RecoveryServices/ChangeLog.md +++ b/src/RecoveryServices/RecoveryServices/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* fixed the Delete State for workload Backup Items. ## Version 2.12.0 * Azure Backup added a new cmdlet Copy-AzRecoveryServicesVault for DS move feature.