Skip to content

Commit 04a15cc

Browse files
authored
Merge pull request Azure#9260 from MabOneSdk/user/sisi/iaasvmretention
[RecoveryServices] IaasVM policy retention in days changed to 7
2 parents 20e280e + 595d1fa commit 04a15cc

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

src/RecoveryServices/RecoveryServices.Backup.Models/CommonModels/PolicyRetentionObjects.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ public class DailyRetentionSchedule : RetentionScheduleBase
229229
// no extra fields
230230
public override void Validate()
231231
{
232-
if (DurationCountInDays <= 0 || DurationCountInDays > PolicyConstants.MaxAllowedRetentionDurationCount)
232+
if (DurationCountInDays < 7 || DurationCountInDays > PolicyConstants.MaxAllowedRetentionDurationCount)
233233
{
234-
throw new ArgumentException(Resources.RetentionDurationCountInvalidException);
234+
throw new ArgumentException(Resources.RetentionDurationCountInDaysInvalidException);
235235
}
236236

237237
base.Validate();

src/RecoveryServices/RecoveryServices.Backup.Models/Properties/Resources.Designer.cs

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/RecoveryServices/RecoveryServices.Backup.Models/Properties/Resources.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,4 +568,7 @@ Please contact Microsoft for further assistance.</value>
568568
<data name="InstantRPRetentionDaysException" xml:space="preserve">
569569
<value>For SnapshotRetentionRangeInDays, the minimum value is 1 and maximum is 5. For weekly backup policies, the only allowed value is 5. Please set the value accordingly</value>
570570
</data>
571+
<data name="RetentionDurationCountInDaysInvalidException" xml:space="preserve">
572+
<value>RetentionDuration in Days should be from 7 - 9999</value>
573+
</data>
571574
</root>

src/RecoveryServices/RecoveryServices/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* IaaSVM policy minimum retention in days changed to 7 from 1
2122

2223
## Version 1.4.0
2324
* Support for Cross subscription Azure to Azure site recovery.

0 commit comments

Comments
 (0)