Skip to content

Commit b43e4f0

Browse files
authored
Spelling Fixes (#28071)
1 parent af73943 commit b43e4f0

31 files changed

+91
-91
lines changed

src/RecoveryServices/RecoveryServices.Backup.Providers/AzureWorkloadProviderHelper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ public void ValidateAFSSchedulePolicy(CmdletModel.SimpleSchedulePolicy policy)
441441
DateTime finalBackupTime = new DateTime(windowStartTime.Year, windowStartTime.Month, windowStartTime.Day, 23, 30, 00, 00, DateTimeKind.Utc);
442442
TimeSpan diff = finalBackupTime - windowStartTime;
443443

444-
// If ScheduleWindowDuration is greator than (23:30 - ScheduleWindowStartTime) then throw exception
444+
// If ScheduleWindowDuration is greater than (23:30 - ScheduleWindowStartTime) then throw exception
445445
if (diff.TotalHours < policy.ScheduleWindowDuration)
446446
{
447447
throw new ArgumentException(String.Format(Resources.InvalidLastBackupTime));
@@ -706,7 +706,7 @@ public long calculateRPO(ProtectionPolicyResource policy)
706706
{
707707
// (Interval < ScheduleWindowDuration)
708708
// Interval can be { 4, 6, 8, 12 } only and schedule can be 4 to 23.
709-
// First calculate how many RPs will be created in the day. which will be schedule/Interval + 1. Only exception is when Interval == Schdule. there Number of RP in a day == 1.
709+
// First calculate how many RPs will be created in the day. which will be schedule/Interval + 1. Only exception is when Interval == Schedule. there Number of RP in a day == 1.
710710
// eg schedule is 5 and interval is 4. then we will have 2 RP one at 00 and another at 04 hours.
711711
// Once we have RP count then we can calculate RPO.
712712
var hourlySchedule = schedulePolicyAFS.HourlySchedule;
@@ -1047,7 +1047,7 @@ public List<RecoveryPointBase> ListRecoveryPoints(Dictionary<Enum, object> Provi
10471047
}).ToList();
10481048
}
10491049

1050-
// filter move readness based on target tier
1050+
// filter move readiness based on target tier
10511051
recoveryPointList = RecoveryPointConversions.CheckRPMoveReadiness(recoveryPointList, targetTier, isReadyForMove);
10521052

10531053
//filter RPs based on tier

src/RecoveryServices/RecoveryServices.Backup.Providers/Providers/AzureFilesPsBackupProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ private WorkloadProtectableItemResource GetAzureFileShareProtectableObject(
642642
Logger.Instance.WriteDebug("Storage account was already registered");
643643
}
644644

645-
//get unregistered storage account, trigger dicovery if not found.
645+
//get unregistered storage account, trigger discovery if not found.
646646
bool isBreak = false;
647647
bool isRefreshed = false; // have we triggered discovery yet
648648
while (!isRegistered && !isBreak )

src/RecoveryServices/RecoveryServices.Backup.Providers/Providers/AzureWorkloadPsBackupProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ public RestAzureNS.AzureOperationResponse TriggerRestore()
652652

653653
if (triggerRestoreRequest.Properties.GetType().Equals("AzureWorkloadSQLPointInTimeRestoreRequest"))
654654
{
655-
Logger.Instance.WriteWarning("Rehyrate restore isn't supported for AzureWorkloadSQLPointInTimeRestore ");
655+
Logger.Instance.WriteWarning("Rehydrate restore isn't supported for AzureWorkloadSQLPointInTimeRestore ");
656656
}
657657
else
658658
{

src/RecoveryServices/RecoveryServices.Backup.Providers/Providers/IaasVmPsBackupProvider.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,7 @@ public SchedulePolicyBase GetDefaultSchedulePolicyObject()
13911391
{
13921392
CmdletModel.SimpleSchedulePolicyV2 defaultSchedule = new CmdletModel.SimpleSchedulePolicyV2();
13931393

1394-
//Default is daily scedule at 10:30 AM local time
1394+
//Default is daily schedule at 10:30 AM local time
13951395
defaultSchedule.ScheduleRunFrequency = scheduleRunFrequency;
13961396
DateTime scheduleTime = AzureWorkloadProviderHelper.GenerateRandomScheduleTime();
13971397

@@ -1429,7 +1429,7 @@ public SchedulePolicyBase GetDefaultSchedulePolicyObject()
14291429
{
14301430
CmdletModel.SimpleSchedulePolicy defaultSchedule = new CmdletModel.SimpleSchedulePolicy();
14311431

1432-
//Default is daily scedule at 10:30 AM local time
1432+
//Default is daily schedule at 10:30 AM local time
14331433
defaultSchedule.ScheduleRunFrequency = scheduleRunFrequency;
14341434

14351435
if (scheduleRunFrequency == CmdletModel.ScheduleRunType.Daily || scheduleRunFrequency == CmdletModel.ScheduleRunType.Weekly)
@@ -2007,7 +2007,7 @@ private string ReplacePasswordInScriptContentAndReturn(ref string content)
20072007
Regex rgx = new Regex(pattern);
20082008
content = rgx.Replace(content, replacement);
20092009

2010-
// ecode back to Base 64 format
2010+
// decode back to Base 64 format
20112011
contentBytes = Encoding.UTF8.GetBytes(content);
20122012
content = Convert.ToBase64String(contentBytes);
20132013

src/RecoveryServices/RecoveryServices.Backup.Providers/PsBackupProviderManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
namespace Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.ProviderModel
2222
{
2323
/// <summary>
24-
/// This class implements provider intialization based on workload
24+
/// This class implements provider initialization based on workload
2525
/// and backup management type.
2626
/// </summary>
2727
public class PsBackupProviderManager

src/RecoveryServices/RecoveryServices.Backup.ServiceClientAdapter/BMSAPIs/RestoreDiskAPIs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public RestAzureNS.AzureOperationResponse RestoreDisk(
5151
string containerUri = HelperUtils.GetContainerUri(uriDict, rp.Id);
5252
string protectedItemUri = HelperUtils.GetProtectedItemUri(uriDict, rp.Id);
5353
string recoveryPointId = rp.RecoveryPointId;
54-
//validtion block
54+
//validation block
5555
if (!triggerRestoreRequest.Properties.GetType().IsSubclassOf(typeof(AzureWorkloadRestoreRequest)))
5656
{
5757
if (storageAccountLocation != vaultLocation && rp.BackupManagementType != Models.BackupManagementType.AzureStorage)

src/RecoveryServices/RecoveryServices.Backup.ServiceClientAdapter/BMSAPIs/VaultAPIs.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public BackupResourceVaultConfigResource GetVaultProperty(string vaultName, stri
8888
/// <summary>
8989
/// Method to Get Azure Recovery Services Vault Backup Properties
9090
/// </summary>
91-
/// <param name="resouceGroupName">Name of the resouce group</param>
91+
/// <param name="resouceGroupName">Name of the resource group</param>
9292
/// <param name="vaultName">Name of the vault</param>
9393
/// <returns>Azure Resource Storage response object.</returns>
9494
public BackupResourceConfigResource GetVaultStorageType(string resouceGroupName, string vaultName)
@@ -100,7 +100,7 @@ public BackupResourceConfigResource GetVaultStorageType(string resouceGroupName,
100100
/// <summary>
101101
/// Method to Get Azure Recovery Services Vault Encryption Properties
102102
/// </summary>
103-
/// <param name="resouceGroupName">Name of the resouce group</param>
103+
/// <param name="resouceGroupName">Name of the resource group</param>
104104
/// <param name="vaultName">Name of the vault</param>
105105
/// <returns>Azure Resource Encryption response object.</returns>
106106
public BackupResourceEncryptionConfigExtendedResource GetVaultEncryptionConfig(string resouceGroupName, string vaultName)
@@ -127,7 +127,7 @@ public BackupResourceEncryptionConfigExtendedResource GetVaultEncryptionConfig(s
127127
/// <summary>
128128
/// Method to Update Azure Recovery Services Vault Encryption Properties
129129
/// </summary>
130-
/// <param name="resouceGroupName">Name of the resouce group</param>
130+
/// <param name="resouceGroupName">Name of the resource group</param>
131131
/// <param name="vaultName">Name of the vault</param>
132132
/// <param name="encryptionConfigResource">update encryption config</param>
133133
/// <returns>Azure Resource Encryption response object.</returns>
@@ -141,7 +141,7 @@ public RestAzureNS.AzureOperationResponse UpdateVaultEncryptionConfig(string res
141141
/// <summary>
142142
/// Method to Update Azure Recovery Services Vault Encryption Properties
143143
/// </summary>
144-
/// <param name="resouceGroupName">Name of the resouce group</param>
144+
/// <param name="resouceGroupName">Name of the resource group</param>
145145
/// <param name="vaultName">Name of the vault</param>
146146
/// <param name="encryptionConfigResource">update encryption config</param>
147147
/// <returns>Azure Resource Encryption response object.</returns>
@@ -155,7 +155,7 @@ public RestAzureNS.AzureOperationResponse UpdateVaultEncryption(string resouceGr
155155
/// <summary>
156156
/// Method to get Recovery Services Vault.
157157
/// </summary>
158-
/// <param name="resouceGroupName">Name of the resouce group</param>
158+
/// <param name="resouceGroupName">Name of the resource group</param>
159159
/// <param name="vaultName">Name of the vault</param>
160160
/// <returns>Azure Recovery Services Vault</returns>
161161
public ARSVault GetVault(string resouceGroupName, string vaultName)
@@ -170,7 +170,7 @@ public ARSVault GetVault(string resouceGroupName, string vaultName)
170170
/// <summary>
171171
/// Method to create or update Recovery Services Vault.
172172
/// </summary>
173-
/// <param name="resourceGroupName">Name of the resouce group</param>
173+
/// <param name="resourceGroupName">Name of the resource group</param>
174174
/// <param name="vaultName">Name of the vault</param>
175175
/// <param name="patchVault">patch vault object to patch the recovery services Vault</param>
176176
/// <param name="auxiliaryAccessToken">Auxiliary access token for authorization</param>

src/RecoveryServices/RecoveryServices.Backup.Test/ScenarioTests/AzureFiles/ItemTests.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ function Test-AzureFSFullRestore
421421

422422
Assert-True { $restoreJob.Status -eq "Completed" }
423423

424-
# Test without storage account dependancy
424+
# Test without storage account dependency
425425
# Item level restore at alternate location
426426
$restoreJob1 = Restore-AzRecoveryServicesBackupItem `
427427
-VaultId $vault.ID `
@@ -438,7 +438,7 @@ function Test-AzureFSFullRestore
438438

439439
Assert-True { $restoreJob1.Status -eq "Completed" }
440440

441-
# Test without storage account dependancy
441+
# Test without storage account dependency
442442
# Full share restore at alternate location
443443
$restoreJob2 = Restore-AzRecoveryServicesBackupItem `
444444
-VaultId $vault.ID `
@@ -452,7 +452,7 @@ function Test-AzureFSFullRestore
452452
$restoreJob2 = $restoreJob2 | Wait-AzRecoveryServicesBackupJob -VaultId $vault.ID
453453
Assert-True { $restoreJob2.Status -eq "Completed" }
454454

455-
# Test without storage account dependancy
455+
# Test without storage account dependency
456456
# Item level restore at original location
457457
$restoreJob3 = Restore-AzRecoveryServicesBackupItem `
458458
-VaultId $vault.ID `
@@ -466,7 +466,7 @@ function Test-AzureFSFullRestore
466466

467467
Assert-True { $restoreJob3.Status -eq "Completed" }
468468

469-
# Test without storage account dependancy
469+
# Test without storage account dependency
470470
# Full share restore at original location
471471
$restoreJob4 = Restore-AzRecoveryServicesBackupItem `
472472
-VaultId $vault.ID `

src/RecoveryServices/RecoveryServices.Backup.Test/ScenarioTests/IaasVm/ItemTests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ function Test-AzureVMMUA
398398
$item = Get-AzRecoveryServicesBackupItem -VaultId $vault.ID -BackupManagementType AzureVM -WorkloadType AzureVM | Where-Object { $_.Name -match $vmFriendlyName }
399399
Enable-AzRecoveryServicesBackupProtection -Item $item -Policy $pol -VaultId $vault.ID
400400

401-
# Start Suspend Bakcup scenario with MUA
401+
# Start Suspend Backup scenario with MUA
402402
$updateVault = Update-AzRecoveryServicesVault -ResourceGroupName $resourceGroupName -Name $vault.Name -ImmutabilityState Unlocked
403403
Assert-True { $updateVault.Properties.ImmutabilitySettings.ImmutabilityState -eq "Unlocked" }
404404

@@ -415,7 +415,7 @@ function Test-AzureVMMUA
415415
}
416416
finally
417417
{
418-
# dsiable softDelete
418+
# disable softDelete
419419
Set-AzRecoveryServicesVaultProperty -SoftDeleteFeatureState Disable -VaultId $vault.ID
420420

421421
#disable protection with RemoveRecoveryPoints

src/RecoveryServices/RecoveryServices.SiteRecovery.Test/ScenarioTests/A2A/AsrA2ATests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public void A2AClutserTestFailoverAndFailoverCleanupJob()
259259
"Test-ClusterTestFailoverAndFailoverCleanupJob");
260260
}
261261

262-
[Fact(Skip = "to be re-recorded in next revsion.")]
262+
[Fact(Skip = "to be re-recorded in next revision.")]
263263
[Trait(Category.AcceptanceType, Category.CheckIn)]
264264
public void A2AClutserUnplannedFailoverJob()
265265
{
@@ -269,7 +269,7 @@ public void A2AClutserUnplannedFailoverJob()
269269
"Test-ClusterUnplannedFailoverJob");
270270
}
271271

272-
[Fact(Skip = "to be re-recorded in next revsion.")]
272+
[Fact(Skip = "to be re-recorded in next revision.")]
273273
[Trait(Category.AcceptanceType, Category.CheckIn)]
274274
public void A2AApplyClusterRecoveryPoint()
275275
{
@@ -279,7 +279,7 @@ public void A2AApplyClusterRecoveryPoint()
279279
"Test-ApplyClusterRecoveryPoint");
280280
}
281281

282-
[Fact(Skip = "to be re-recorded in next revsion.")]
282+
[Fact(Skip = "to be re-recorded in next revision.")]
283283
[Trait(Category.AcceptanceType, Category.CheckIn)]
284284
public void A2AClusterCommitFailoverJob()
285285
{

0 commit comments

Comments
 (0)