Skip to content

Commit 9286656

Browse files
committed
scrub help and exception messages
1 parent 0bac64b commit 9286656

File tree

3 files changed

+29
-29
lines changed

3 files changed

+29
-29
lines changed

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

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

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -151,16 +151,16 @@
151151
<value>The DaysOfWeek specified for monthly and yearly retention policies should be a subset of the DaysOfWeek value specified in the backup schedule</value>
152152
</data>
153153
<data name="PolicyAlreadyExistException" xml:space="preserve">
154-
<value>A protection policy with the specified name already exists: {0}</value>
154+
<value>A backup policy with the specified name already exists: {0}</value>
155155
</data>
156156
<data name="PolicyNotFoundException" xml:space="preserve">
157-
<value>Protection Policy not found with name: {0}</value>
157+
<value>Backup Policy not found with name: {0}</value>
158158
</data>
159159
<data name="ProtectionPolicyNameException" xml:space="preserve">
160-
<value>The protection policy name should contain alphanumeric characters and cannot start with a number</value>
160+
<value>Backup policy name should contain alphanumeric characters and cannot start with a number</value>
161161
</data>
162162
<data name="ProtectionPolicyNameLengthException" xml:space="preserve">
163-
<value>The protection policy name must contain between 3 and 150 characters</value>
163+
<value>Backup policy name must contain between 3 and 150 characters</value>
164164
</data>
165165
<data name="UnsupportedWorkloadBackupManagementTypeException" xml:space="preserve">
166166
<value>Unsupported combination for WorkloadType: {0}, BackupManagementType:{1}</value>
@@ -172,10 +172,10 @@
172172
<value>For a weekly retention policy, DaysOfTheWeek is mandatory and should not contain duplicate entries</value>
173173
</data>
174174
<data name="WeeklyScheduleDaysOfWeekException" xml:space="preserve">
175-
<value>For a weekly backup schedule, using the DaysOfWeek parameter is mandatory</value>
175+
<value>For a weekly backup schedule, DaysOfWeek parameter is mandatory</value>
176176
</data>
177177
<data name="AzureVMUnsupportedBackupManagementTypeException" xml:space="preserve">
178-
<value>BackupManagementType value should be empty or AzureVM for WorkloadType=AzureVM</value>
178+
<value>BackupManagementType value should be empty for WorkloadType AzureVM</value>
179179
</data>
180180
<data name="BothRetentionAndSchedulePoliciesEmpty" xml:space="preserve">
181181
<value>Both RetentionPolicy and SchedulePolicy are empty, nothing to update</value>
@@ -199,10 +199,10 @@
199199
<value>Unexpected ContainerType - expected:{0}, current:{1}</value>
200200
</data>
201201
<data name="AllRetentionSchedulesEmptyException" xml:space="preserve">
202-
<value>All retention schedules are Empty in retentionPolicy. Alteast one is expected.</value>
202+
<value>All retention schedules are empty in RetentionPolicy. Alteast one is expected.</value>
203203
</data>
204204
<data name="BackupAndRetentionTimesMismatch" xml:space="preserve">
205-
<value>RetentionTime in retention schedule should be same as backup time in SchedulePolicy</value>
205+
<value>RetentionTime in retention schedule should be same as backup time specified in SchedulePolicy</value>
206206
</data>
207207
<data name="DailyRetentionScheduleNullException" xml:space="preserve">
208208
<value>Daily Retention Schedule can't be null (or) IsDailyScheduleEnabled should be 'true' if Daily Backup Schedule is enabled</value>
@@ -211,13 +211,13 @@
211211
<value>RetentionPolicy: IsDailyScheduleEnabled=true but DailySchedule is NULL</value>
212212
</data>
213213
<data name="InvalidBackupTimesInSchedulePolicyException" xml:space="preserve">
214-
<value>ONE BackupTime is Allowed in SchedulePolicy</value>
214+
<value>Only one BackupTime is Allowed in SchedulePolicy</value>
215215
</data>
216216
<data name="InvalidDurationTypeException" xml:space="preserve">
217217
<value>InvalidDurationType - {0}</value>
218218
</data>
219219
<data name="InvalidRetentionTimesInPolicyException" xml:space="preserve">
220-
<value>ONE RetentionTime is Allowed in RententionSchedules</value>
220+
<value>Only one RetentionTime is Allowed in RetentionSchedules</value>
221221
</data>
222222
<data name="MonthlyScheduleEnabledButScheduleIsNullException" xml:space="preserve">
223223
<value>RetentionPolicy: IsMonthlyScheduleEnabled=true but MonthlySchedule is NULL</value>

src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup/CmdletParameterHelpMessages.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ internal static class Container
2727
public const string Name = "The name of the resource being managed by the Azure Backup service (for example: resource name of the VM).";
2828
public const string ResourceGroupName = "The ResourceGroup of the resource being managed by the Azure Backup service (for example: ResourceGroup name of the VM).";
2929
public const string Status = "The registration status of the Azure Backup container.";
30-
public const string ContainerType = "The type of the Azure Backup container. This can be a Windows Server, an Azure IaaS VM, or a Data Protection Manager server.";
30+
public const string ContainerType = "The type of the Azure Backup container (for example: Windows Server or Azure IaaS VM).";
3131
public const string BackupManagementType = "The backup management type of the Azure Backup container";
3232
public const string RegisteredContainer = "The recovery services backup container.";
3333
}
@@ -78,17 +78,17 @@ internal static class Item
7878

7979
internal static class RecoveryPoint
8080
{
81-
public const string StartDate = "Start time of Time range for which recovery point need to be fetched";
82-
public const string EndDate = "End time of Time range for which recovery point need to be fetched";
83-
public const string Item = "Protected Item object for which recovery point need to be fetched";
84-
public const string RecoveryPointId = "Recovery point Id for which detail is needed";
81+
public const string StartDate = "Start time of Time range for which recovery point need to be fetched";
82+
public const string EndDate = "End time of Time range for which recovery point need to be fetched";
83+
public const string Item = "Protected Item object for which recovery point need to be fetched";
84+
public const string RecoveryPointId = "Recovery point Id for which detail is needed";
8585
}
8686

8787
internal static class RestoreDisk
8888
{
89-
public const string RecoveryPoint = "Recovery point objected to be restored";
90-
public const string StorageAccountName = "Storage account name where the disk need to be recovered";
91-
public const string StorageAccountResourceGroupName = "Resource group name of Storage account name where the disk need to be recovered";
89+
public const string RecoveryPoint = "Recovery point object to be restored";
90+
public const string StorageAccountName = "Storage account name where the disks need to be recovered";
91+
public const string StorageAccountResourceGroupName = "Resource group name of Storage account name where the disks need to be recovered";
9292
}
9393
}
9494
}

0 commit comments

Comments
 (0)