From fb04e7087678aa06c9a931acd34315ae62950aab Mon Sep 17 00:00:00 2001 From: SourabhSomanthGholap Date: Thu, 6 Mar 2025 09:54:32 +0530 Subject: [PATCH 1/6] Removed TrustedLaunchDefaultWarning --- .../Providers/IaasVmPsBackupProvider.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/RecoveryServices/RecoveryServices.Backup.Providers/Providers/IaasVmPsBackupProvider.cs b/src/RecoveryServices/RecoveryServices.Backup.Providers/Providers/IaasVmPsBackupProvider.cs index 29f0ad5ad5d0..50603bfe49af 100644 --- a/src/RecoveryServices/RecoveryServices.Backup.Providers/Providers/IaasVmPsBackupProvider.cs +++ b/src/RecoveryServices/RecoveryServices.Backup.Providers/Providers/IaasVmPsBackupProvider.cs @@ -88,8 +88,6 @@ public RestAzureNS.AzureOperationResponse EnableProtectio string auxiliaryAccessToken = ProviderData.ContainsKey(ResourceGuardParams.Token) ? (string)ProviderData[ResourceGuardParams.Token] : null; bool isMUAOperation = ProviderData.ContainsKey(ResourceGuardParams.IsMUAOperation) ? (bool)ProviderData[ResourceGuardParams.IsMUAOperation] : false; - Logger.Instance.WriteWarning(String.Format(Resources.TrustedLaunchDefaultWarning)); - ProtectionPolicyResource oldPolicy = null; ProtectionPolicyResource newPolicy = null; if (parameterSetName.Contains("Modify") && item.PolicyId != null && item.PolicyId != "") From 5132e3f5fdf3041e3c6baf646112d5476a3e3a05 Mon Sep 17 00:00:00 2001 From: SourabhSomanthGholap Date: Thu, 6 Mar 2025 10:20:23 +0530 Subject: [PATCH 2/6] Update changeLog --- src/RecoveryServices/RecoveryServices/ChangeLog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/RecoveryServices/RecoveryServices/ChangeLog.md b/src/RecoveryServices/RecoveryServices/ChangeLog.md index 5c5af855bc40..10886326ffb1 100644 --- a/src/RecoveryServices/RecoveryServices/ChangeLog.md +++ b/src/RecoveryServices/RecoveryServices/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Removed warning about ensuring Enhanced Policy for Trusted Launch VMs when configuring protection for Azure VMs. ## Version 7.5.1 * Updated Restore-AzRecoveryServicesBackupItem to support 0 as a TargetZoneNumber to restore to NoZone. From 14cb3c2d79844c2a3eff6d46190b09836731df4e Mon Sep 17 00:00:00 2001 From: SourabhSomanthGholap Date: Tue, 18 Mar 2025 12:01:03 +0530 Subject: [PATCH 3/6] Updated warning messages --- .../RecoveryServices.Backup.Models/Properties/Resources.resx | 2 +- .../Providers/IaasVmPsBackupProvider.cs | 2 ++ .../GetAzureRmRecoveryServicesBackupSchedulePolicyObject.cs | 2 ++ src/RecoveryServices/RecoveryServices/ChangeLog.md | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/RecoveryServices/RecoveryServices.Backup.Models/Properties/Resources.resx b/src/RecoveryServices/RecoveryServices.Backup.Models/Properties/Resources.resx index 389e8b140671..09f38affe477 100644 --- a/src/RecoveryServices/RecoveryServices.Backup.Models/Properties/Resources.resx +++ b/src/RecoveryServices/RecoveryServices.Backup.Models/Properties/Resources.resx @@ -839,7 +839,7 @@ Please contact Microsoft for further assistance. The parameter BackupSnapshotResourceGroupSuffix cannot be used without the BackupSnapshotResourceGroup parameter. Please provide the BackupSnapshotResourceGroup parameter or remove the BackupSnapshotResourceGroupSuffix parameter. - Ignite (November) 2023 onwards Virtual Machine deployments using PS and CLI will default to Trusted Launch configuration. You need to ensure Policy Name used with this command is of type Enhanced Policy for Trusted Launch VMs. Non-Trusted Launch Virtual Machines will not be impacted by this change. To know more about default change and Trusted Launch, please visit https://aka.ms/TLaD. + Starting in May 2025, Trusted Launch virtual machines can be protected with both standard and enhanced policies via PS and CLI Snapshot recovery point time is less than 4 Hrs ago, please try later or with another recovery point diff --git a/src/RecoveryServices/RecoveryServices.Backup.Providers/Providers/IaasVmPsBackupProvider.cs b/src/RecoveryServices/RecoveryServices.Backup.Providers/Providers/IaasVmPsBackupProvider.cs index 50603bfe49af..29f0ad5ad5d0 100644 --- a/src/RecoveryServices/RecoveryServices.Backup.Providers/Providers/IaasVmPsBackupProvider.cs +++ b/src/RecoveryServices/RecoveryServices.Backup.Providers/Providers/IaasVmPsBackupProvider.cs @@ -88,6 +88,8 @@ public RestAzureNS.AzureOperationResponse EnableProtectio string auxiliaryAccessToken = ProviderData.ContainsKey(ResourceGuardParams.Token) ? (string)ProviderData[ResourceGuardParams.Token] : null; bool isMUAOperation = ProviderData.ContainsKey(ResourceGuardParams.IsMUAOperation) ? (bool)ProviderData[ResourceGuardParams.IsMUAOperation] : false; + Logger.Instance.WriteWarning(String.Format(Resources.TrustedLaunchDefaultWarning)); + ProtectionPolicyResource oldPolicy = null; ProtectionPolicyResource newPolicy = null; if (parameterSetName.Contains("Modify") && item.PolicyId != null && item.PolicyId != "") diff --git a/src/RecoveryServices/RecoveryServices.Backup/Cmdlets/ProtectionPolicy/GetAzureRmRecoveryServicesBackupSchedulePolicyObject.cs b/src/RecoveryServices/RecoveryServices.Backup/Cmdlets/ProtectionPolicy/GetAzureRmRecoveryServicesBackupSchedulePolicyObject.cs index 1e0dd7de8085..ee039c6b39ed 100644 --- a/src/RecoveryServices/RecoveryServices.Backup/Cmdlets/ProtectionPolicy/GetAzureRmRecoveryServicesBackupSchedulePolicyObject.cs +++ b/src/RecoveryServices/RecoveryServices.Backup/Cmdlets/ProtectionPolicy/GetAzureRmRecoveryServicesBackupSchedulePolicyObject.cs @@ -18,6 +18,7 @@ using Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models; using Microsoft.Azure.Commands.RecoveryServices.Backup.Properties; using Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.ProviderModel; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; namespace Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets { @@ -25,6 +26,7 @@ namespace Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets /// Returns a schedule policy PS object which can be modified in the PS shell /// and fed to other cmdlets which accept it. /// + [GenericBreakingChangeWithVersion("This command will return a Enhanced policy object by default for AzureVM workload", "14.0.0", "8.0.0")] [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "RecoveryServicesBackupSchedulePolicyObject"),OutputType(typeof(SchedulePolicyBase))] public class GetAzureRmRecoveryServicesBackupSchedulePolicyObject : RecoveryServicesBackupCmdletBase { diff --git a/src/RecoveryServices/RecoveryServices/ChangeLog.md b/src/RecoveryServices/RecoveryServices/ChangeLog.md index 10886326ffb1..81e748f92f91 100644 --- a/src/RecoveryServices/RecoveryServices/ChangeLog.md +++ b/src/RecoveryServices/RecoveryServices/ChangeLog.md @@ -19,6 +19,8 @@ --> ## Upcoming Release * Removed warning about ensuring Enhanced Policy for Trusted Launch VMs when configuring protection for Azure VMs. +* Added warning "Starting in May 2025, Trusted Launch virtual machines can be protected with both standard and enhanced policies via PS and CLI" in Enable-AzRecoveryServicesBackupProtection. +* Added breaking change announcement for Get-AzRecoveryServicesBackupSchedulePolicyObject that this command will return a Enhanced policy object by default for IaaSVM workload. ## Version 7.5.1 * Updated Restore-AzRecoveryServicesBackupItem to support 0 as a TargetZoneNumber to restore to NoZone. From 99d643959306a0cdb6e69fc3aff36553844845b3 Mon Sep 17 00:00:00 2001 From: SourabhSomanthGholap Date: Tue, 18 Mar 2025 12:25:20 +0530 Subject: [PATCH 4/6] Minor change --- .../GetAzureRmRecoveryServicesBackupSchedulePolicyObject.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RecoveryServices/RecoveryServices.Backup/Cmdlets/ProtectionPolicy/GetAzureRmRecoveryServicesBackupSchedulePolicyObject.cs b/src/RecoveryServices/RecoveryServices.Backup/Cmdlets/ProtectionPolicy/GetAzureRmRecoveryServicesBackupSchedulePolicyObject.cs index ee039c6b39ed..68e74045ba1f 100644 --- a/src/RecoveryServices/RecoveryServices.Backup/Cmdlets/ProtectionPolicy/GetAzureRmRecoveryServicesBackupSchedulePolicyObject.cs +++ b/src/RecoveryServices/RecoveryServices.Backup/Cmdlets/ProtectionPolicy/GetAzureRmRecoveryServicesBackupSchedulePolicyObject.cs @@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets /// Returns a schedule policy PS object which can be modified in the PS shell /// and fed to other cmdlets which accept it. /// - [GenericBreakingChangeWithVersion("This command will return a Enhanced policy object by default for AzureVM workload", "14.0.0", "8.0.0")] + [GenericBreakingChangeWithVersion("May 2025 onwards, this command will return a Enhanced policy object by default for AzureVM workload", "14.0.0", "8.0.0")] [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "RecoveryServicesBackupSchedulePolicyObject"),OutputType(typeof(SchedulePolicyBase))] public class GetAzureRmRecoveryServicesBackupSchedulePolicyObject : RecoveryServicesBackupCmdletBase { From 807b36d82b9546f994eea801045302a673cfbf62 Mon Sep 17 00:00:00 2001 From: SourabhSomanthGholap Date: Tue, 18 Mar 2025 16:00:06 +0530 Subject: [PATCH 5/6] update in message --- .../GetAzureRmRecoveryServicesBackupSchedulePolicyObject.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RecoveryServices/RecoveryServices.Backup/Cmdlets/ProtectionPolicy/GetAzureRmRecoveryServicesBackupSchedulePolicyObject.cs b/src/RecoveryServices/RecoveryServices.Backup/Cmdlets/ProtectionPolicy/GetAzureRmRecoveryServicesBackupSchedulePolicyObject.cs index 68e74045ba1f..9be2b1b423c0 100644 --- a/src/RecoveryServices/RecoveryServices.Backup/Cmdlets/ProtectionPolicy/GetAzureRmRecoveryServicesBackupSchedulePolicyObject.cs +++ b/src/RecoveryServices/RecoveryServices.Backup/Cmdlets/ProtectionPolicy/GetAzureRmRecoveryServicesBackupSchedulePolicyObject.cs @@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets /// Returns a schedule policy PS object which can be modified in the PS shell /// and fed to other cmdlets which accept it. /// - [GenericBreakingChangeWithVersion("May 2025 onwards, this command will return a Enhanced policy object by default for AzureVM workload", "14.0.0", "8.0.0")] + [GenericBreakingChangeWithVersion("May 2025 onwards, this command will return a schedule policy object for Enhanced policy by default for AzureVM workload", "14.0.0", "8.0.0")] [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "RecoveryServicesBackupSchedulePolicyObject"),OutputType(typeof(SchedulePolicyBase))] public class GetAzureRmRecoveryServicesBackupSchedulePolicyObject : RecoveryServicesBackupCmdletBase { From 6b5edd9c28d0890719dc96f6b47dc39fe92ec0c8 Mon Sep 17 00:00:00 2001 From: SourabhSomanthGholap Date: Wed, 19 Mar 2025 13:43:19 +0530 Subject: [PATCH 6/6] update in changelog --- src/RecoveryServices/RecoveryServices/ChangeLog.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RecoveryServices/RecoveryServices/ChangeLog.md b/src/RecoveryServices/RecoveryServices/ChangeLog.md index 72e40bc43a26..5d261a6e18c4 100644 --- a/src/RecoveryServices/RecoveryServices/ChangeLog.md +++ b/src/RecoveryServices/RecoveryServices/ChangeLog.md @@ -18,11 +18,11 @@ - Additional information about change #1 --> ## Upcoming Release -* Added support for PremiumV2_LRS and UltraSSD_LRS target disk types for Azure to Azure replication. -* Added logs to enable better debugging for Modify protection with MSSQL workload. * Removed warning about ensuring Enhanced Policy for Trusted Launch VMs when configuring protection for Azure VMs. * Added warning "Starting in May 2025, Trusted Launch virtual machines can be protected with both standard and enhanced policies via PS and CLI" in Enable-AzRecoveryServicesBackupProtection. * Added breaking change announcement for Get-AzRecoveryServicesBackupSchedulePolicyObject that this command will return a Enhanced policy object by default for IaaSVM workload. +* Added support for PremiumV2_LRS and UltraSSD_LRS target disk types for Azure to Azure replication. +* Added logs to enable better debugging for Modify protection with MSSQL workload. ## Version 7.5.1 * Updated Restore-AzRecoveryServicesBackupItem to support 0 as a TargetZoneNumber to restore to NoZone.