diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/ProtectionPolicy/RemoveAzureRMBackupProtectionPolicy.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/ProtectionPolicy/RemoveAzureRMBackupProtectionPolicy.cs index e161d8a4680a..aeb1338a6d9b 100644 --- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/ProtectionPolicy/RemoveAzureRMBackupProtectionPolicy.cs +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/ProtectionPolicy/RemoveAzureRMBackupProtectionPolicy.cs @@ -45,7 +45,7 @@ public override void ExecuteCmdlet() } else { - var exception = new ArgumentException(string.Format(Resources.PolicyNotFound, policyInfo.Name)); + var exception = new ArgumentException(string.Format(Resources.PolicyNotFound, ProtectionPolicy.Name)); throw exception; } }); diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/Resources.resx b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/Resources.resx index 28203c10b30d..b6bca7072396 100644 --- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/Resources.resx +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/Resources.resx @@ -148,10 +148,12 @@ Please contact Microsoft for further assistant. Cmdlet called for ResourceGroupName: {0}, ResourceName: {1}, Location: {2} - For daily backup schedule, protection policy cannot have DaysOfWeek param in backup schedule + For a daily backup schedule, using the DaysOfWeek parameter is not allowed + Scrubbed - For weekly backup schedule, DaysOfWeek in backup schedule is mandatory and cannot be empty + For a weekly backup schedule, using the DaysOfWeek parameter is mandatory + Scrubbed AzureBackupVault.Name @@ -190,22 +192,26 @@ Please contact Microsoft for further assistant. Creating backup vault with ResourceGroupName: {0}, ResourceName: {1} - Only one AzureBackupDailyRetentionPolicy in RetentionPolicies is allowed + Only one daily retention policy is allowed for a Protection Policy + Scrubbed - For AzureBackupDailyRetentionPolicy , valid values of retention are {0} to {1} + The daily retention value should be between {0} and {1} + Scrubbed - For Daily Schedule, AzureBackupDailyRetentionPolicy in RetentionPolicies param is mandatory + For a daily backup schedule, setting a daily retention policy is mandatory + Scrubbed - Days of the month in Monthly/Yearly retention is not allowed for weekly backup Schedules + Using the DaysOfMonth parameter in retention policies is not allowed when weekly backup schedules are used + Scrubbed - DaysofTheWeek list in Weekly retention schedule must be same of backup schedule DaysOfTheWeek + The DaysOfWeek specified in a weekly retention schedule should be same as of DaysOfWeek value specified in the backup schedule - DaysOfTheWeek of retention schedule must be same of backup schedule DaysOfTheWeek + The DaysOfWeek specified in a weekly retention schedule should be same as of DaysOfWeek value specified in the backup schedule Desired Container is not found. Returning with isDiscoveryNeed = true @@ -256,28 +262,36 @@ Please contact Microsoft for further assistant. Making client call - For AzureBackupMonthlyRetentionPolicy and RetentionFormat in Days, DaysOfMonth param is mandatory and can not be empty + For a monthly retention policy specified in days, using the DaysOfMonth parameter is mandatory + Scrubbed - For AzureBackupMonthlyRetentionPolicy and RetentionFormat in Weeks, DaysOfMonth param is not allowed. + For a monthly retention policy specified in weeks, using the DaysOfMonth parameter is not allowed + Scrubbed - For AzureBackupMonthlyRetentionPolicy and RetentionFormat in Weeks, DaysOfWeek param is mandatory and can not be empty + For a monthly retention policy specified in weeks, using the DaysOfWeek parameter is mandatory + Scrubbed - For AzureBackupMonthlyRetentionPolicy and RetentionFormat in Days, DaysOfWeek or WeekNumber params are not allowed + For a monthly retention policy specified in days, using the DaysOfWeek and WeekNumber parameters is not allowed + Scrubbed - Only one AzureBackupMonthlyRetentionPolicy in RetentionPolicies is allowed + Only one monthly retention policy is allowed for a Protection Policy + Scrubbed - For AzureBackupMonthlyRetentionPolicy , valid values of retention are {0} to {1} + The monthly retention value should be between {0} and {1} + Scrubbed - For AzureBackupMonthlyRetentionPolicy and RetentionFormat in Weeks, WeekNumber param is mandatory and can not be empty + For a monthly retention policy specified in weeks, using the WeekNumber parameter is mandatory + Scrubbed - Days of the week list in Monthly/Yearly retention schedule should be subset of Day of week list in Backup Schedule + The DaysOfWeek specified for monthly and yearly retention policies should be a subset of the DaysOfWeek value specified in the backup schedule + Scrubbed No recovery point exist with Id := {0} @@ -295,13 +309,16 @@ Please contact Microsoft for further assistant. OperationStatus : {0} - A protection policy with the specified name already exists. + A protection policy with the specified name already exists + Scrubbed - For DaysOfWeek, weekly switch param is required + The DaysOfWeek parameter should be used in conjunction with the –Weekly switch parameter + Scrubbed Protection Policy {0} not found + Scrubbed ParameterSetName = {0} @@ -320,9 +337,11 @@ Please contact Microsoft for further assistant. The protection policy name should contain alphanumeric characters and cannot start with a number + Scrubbed The protection policy name must contain between 3 and 150 characters + Scrubbed Please make sure you have pass right set of parameters @@ -419,45 +438,59 @@ Please contact Microsoft for further assistant. Received WebException, Response: {0}, Status: {1} - For AzureBackupWeeklyRetentionPolicy , DaysOfWeek param is mandatory and can not be empty + For a weekly retention policy, using the DaysOfWeek parameter is mandatory + Scrubbed - Only one AzureBackupWeeklyRetentionPolicy in RetentionPolicies is allowed + Only one weekly retention policy is allowed for a Protection Policy + Scrubbed - For AzureBackupWeeklyRetentionPolicy , valid values of retention are {0} to {1} + The weekly retention value should be between {0} and {1} + Scrubbed - For Weekly Schedule, AzureBackupWeeklyRetentionPolicy in RetentionPolicies param is mandatory + For a weekly backup schedule, setting a weekly retention policy is mandatory + Scrubbed - For weekly scheduletype , ScheduleRunDays param is mandatory and can not be empty. + For a weekly backup schedule, using the DaysOfWeek parameter is mandatory + Scrubbed - For Weekly Schedule, AzureBackupDailyRetentionPolicy in RetentionPolicies param is not allowed + For a weekly backup schedule, setting a daily retention policy is not allowed + Scrubbed - For AzureBackupYearlyRetentionPolicy and RetentionFormat in Weeks, DaysOfMonth param is not allowed + For a yearly retention policy specified in days, using the MonthsOfYear and DaysOfMonth parameters is not allowed + Scrubbed - For AzureBackupYearlyRetentionPolicy and RetentionFormat in Days, DaysOfMonth param is mandatory and can not be empty + For a yearly retention policy specified in days, using the MonthsOfYear and DaysOfMonth parameters is mandatory + Scrubbed - For AzureBackupYearlyRetentionPolicy and RetentionFormat in Weeks, DaysOfWeek param is mandatory and can not be empty + For a yearly retention policy specified in weeks, using the DaysOfWeek and WeekNumber parameters is mandatory + Scrubbed - For AzureBackupYearlyRetentionPolicy and RetentionFormat in Days, DaysOfWeek or WeekNumber params are not allowed + For a yearly retention policy specified in days, using the DaysOfWeek and WeekNumber parameters is not allowed + Scrubbed - Only one AzureBackupYearlyRetentionPolicy in RetentionPolicies is allowed + Only one yearly retention policy is allowed for a Protection Policy + Scrubbed - For AzureBackupYearlyRetentionPolicy and RetentionFormat in days, MonthsOfYear param is mandatory and can not be empty + For a yearly retention policy specified in days, using the MonthsOfYear and DaysOfMonth parameters is mandatory + Scrubbed - For AzureBackupYearlyRetentionPolicy , valid values of retention are {0} to {1} + Yearly retention value should be between {0} and {1} + Scrubbed - For AzureBackupYearlyRetentionPolicy and RetentionFormat in Weeks, WeekNumber param is mandatory and can not be empty + For a yearly retention policy specified in weeks, using the DaysOfWeek and WeekNumber parameters is mandatory + Scrubbed \ No newline at end of file