Skip to content

Spelling Fixes #28071

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ public void ValidateAFSSchedulePolicy(CmdletModel.SimpleSchedulePolicy policy)
DateTime finalBackupTime = new DateTime(windowStartTime.Year, windowStartTime.Month, windowStartTime.Day, 23, 30, 00, 00, DateTimeKind.Utc);
TimeSpan diff = finalBackupTime - windowStartTime;

// If ScheduleWindowDuration is greator than (23:30 - ScheduleWindowStartTime) then throw exception
// If ScheduleWindowDuration is greater than (23:30 - ScheduleWindowStartTime) then throw exception
if (diff.TotalHours < policy.ScheduleWindowDuration)
{
throw new ArgumentException(String.Format(Resources.InvalidLastBackupTime));
Expand Down Expand Up @@ -706,7 +706,7 @@ public long calculateRPO(ProtectionPolicyResource policy)
{
// (Interval < ScheduleWindowDuration)
// Interval can be { 4, 6, 8, 12 } only and schedule can be 4 to 23.
// 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.
// 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.
// eg schedule is 5 and interval is 4. then we will have 2 RP one at 00 and another at 04 hours.
// Once we have RP count then we can calculate RPO.
var hourlySchedule = schedulePolicyAFS.HourlySchedule;
Expand Down Expand Up @@ -1047,7 +1047,7 @@ public List<RecoveryPointBase> ListRecoveryPoints(Dictionary<Enum, object> Provi
}).ToList();
}

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

//filter RPs based on tier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ private WorkloadProtectableItemResource GetAzureFileShareProtectableObject(
Logger.Instance.WriteDebug("Storage account was already registered");
}

//get unregistered storage account, trigger dicovery if not found.
//get unregistered storage account, trigger discovery if not found.
bool isBreak = false;
bool isRefreshed = false; // have we triggered discovery yet
while (!isRegistered && !isBreak )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ public RestAzureNS.AzureOperationResponse TriggerRestore()

if (triggerRestoreRequest.Properties.GetType().Equals("AzureWorkloadSQLPointInTimeRestoreRequest"))
{
Logger.Instance.WriteWarning("Rehyrate restore isn't supported for AzureWorkloadSQLPointInTimeRestore ");
Logger.Instance.WriteWarning("Rehydrate restore isn't supported for AzureWorkloadSQLPointInTimeRestore ");
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1391,7 +1391,7 @@ public SchedulePolicyBase GetDefaultSchedulePolicyObject()
{
CmdletModel.SimpleSchedulePolicyV2 defaultSchedule = new CmdletModel.SimpleSchedulePolicyV2();

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

Expand Down Expand Up @@ -1429,7 +1429,7 @@ public SchedulePolicyBase GetDefaultSchedulePolicyObject()
{
CmdletModel.SimpleSchedulePolicy defaultSchedule = new CmdletModel.SimpleSchedulePolicy();

//Default is daily scedule at 10:30 AM local time
//Default is daily schedule at 10:30 AM local time
defaultSchedule.ScheduleRunFrequency = scheduleRunFrequency;

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

// ecode back to Base 64 format
// decode back to Base 64 format
contentBytes = Encoding.UTF8.GetBytes(content);
content = Convert.ToBase64String(contentBytes);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
namespace Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.ProviderModel
{
/// <summary>
/// This class implements provider intialization based on workload
/// This class implements provider initialization based on workload
/// and backup management type.
/// </summary>
public class PsBackupProviderManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public RestAzureNS.AzureOperationResponse RestoreDisk(
string containerUri = HelperUtils.GetContainerUri(uriDict, rp.Id);
string protectedItemUri = HelperUtils.GetProtectedItemUri(uriDict, rp.Id);
string recoveryPointId = rp.RecoveryPointId;
//validtion block
//validation block
if (!triggerRestoreRequest.Properties.GetType().IsSubclassOf(typeof(AzureWorkloadRestoreRequest)))
{
if (storageAccountLocation != vaultLocation && rp.BackupManagementType != Models.BackupManagementType.AzureStorage)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public BackupResourceVaultConfigResource GetVaultProperty(string vaultName, stri
/// <summary>
/// Method to Get Azure Recovery Services Vault Backup Properties
/// </summary>
/// <param name="resouceGroupName">Name of the resouce group</param>
/// <param name="resouceGroupName">Name of the resource group</param>
/// <param name="vaultName">Name of the vault</param>
/// <returns>Azure Resource Storage response object.</returns>
public BackupResourceConfigResource GetVaultStorageType(string resouceGroupName, string vaultName)
Expand All @@ -100,7 +100,7 @@ public BackupResourceConfigResource GetVaultStorageType(string resouceGroupName,
/// <summary>
/// Method to Get Azure Recovery Services Vault Encryption Properties
/// </summary>
/// <param name="resouceGroupName">Name of the resouce group</param>
/// <param name="resouceGroupName">Name of the resource group</param>
/// <param name="vaultName">Name of the vault</param>
/// <returns>Azure Resource Encryption response object.</returns>
public BackupResourceEncryptionConfigExtendedResource GetVaultEncryptionConfig(string resouceGroupName, string vaultName)
Expand All @@ -127,7 +127,7 @@ public BackupResourceEncryptionConfigExtendedResource GetVaultEncryptionConfig(s
/// <summary>
/// Method to Update Azure Recovery Services Vault Encryption Properties
/// </summary>
/// <param name="resouceGroupName">Name of the resouce group</param>
/// <param name="resouceGroupName">Name of the resource group</param>
/// <param name="vaultName">Name of the vault</param>
/// <param name="encryptionConfigResource">update encryption config</param>
/// <returns>Azure Resource Encryption response object.</returns>
Expand All @@ -141,7 +141,7 @@ public RestAzureNS.AzureOperationResponse UpdateVaultEncryptionConfig(string res
/// <summary>
/// Method to Update Azure Recovery Services Vault Encryption Properties
/// </summary>
/// <param name="resouceGroupName">Name of the resouce group</param>
/// <param name="resouceGroupName">Name of the resource group</param>
/// <param name="vaultName">Name of the vault</param>
/// <param name="encryptionConfigResource">update encryption config</param>
/// <returns>Azure Resource Encryption response object.</returns>
Expand All @@ -155,7 +155,7 @@ public RestAzureNS.AzureOperationResponse UpdateVaultEncryption(string resouceGr
/// <summary>
/// Method to get Recovery Services Vault.
/// </summary>
/// <param name="resouceGroupName">Name of the resouce group</param>
/// <param name="resouceGroupName">Name of the resource group</param>
/// <param name="vaultName">Name of the vault</param>
/// <returns>Azure Recovery Services Vault</returns>
public ARSVault GetVault(string resouceGroupName, string vaultName)
Expand All @@ -170,7 +170,7 @@ public ARSVault GetVault(string resouceGroupName, string vaultName)
/// <summary>
/// Method to create or update Recovery Services Vault.
/// </summary>
/// <param name="resourceGroupName">Name of the resouce group</param>
/// <param name="resourceGroupName">Name of the resource group</param>
/// <param name="vaultName">Name of the vault</param>
/// <param name="patchVault">patch vault object to patch the recovery services Vault</param>
/// <param name="auxiliaryAccessToken">Auxiliary access token for authorization</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ function Test-AzureFSFullRestore

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

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

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

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

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

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

# Test without storage account dependancy
# Test without storage account dependency
# Full share restore at original location
$restoreJob4 = Restore-AzRecoveryServicesBackupItem `
-VaultId $vault.ID `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ function Test-AzureVMMUA
$item = Get-AzRecoveryServicesBackupItem -VaultId $vault.ID -BackupManagementType AzureVM -WorkloadType AzureVM | Where-Object { $_.Name -match $vmFriendlyName }
Enable-AzRecoveryServicesBackupProtection -Item $item -Policy $pol -VaultId $vault.ID

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

Expand All @@ -415,7 +415,7 @@ function Test-AzureVMMUA
}
finally
{
# dsiable softDelete
# disable softDelete
Set-AzRecoveryServicesVaultProperty -SoftDeleteFeatureState Disable -VaultId $vault.ID

#disable protection with RemoveRecoveryPoints
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public void A2AClutserTestFailoverAndFailoverCleanupJob()
"Test-ClusterTestFailoverAndFailoverCleanupJob");
}

[Fact(Skip = "to be re-recorded in next revsion.")]
[Fact(Skip = "to be re-recorded in next revision.")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void A2AClutserUnplannedFailoverJob()
{
Expand All @@ -269,7 +269,7 @@ public void A2AClutserUnplannedFailoverJob()
"Test-ClusterUnplannedFailoverJob");
}

[Fact(Skip = "to be re-recorded in next revsion.")]
[Fact(Skip = "to be re-recorded in next revision.")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void A2AApplyClusterRecoveryPoint()
{
Expand All @@ -279,7 +279,7 @@ public void A2AApplyClusterRecoveryPoint()
"Test-ApplyClusterRecoveryPoint");
}

[Fact(Skip = "to be re-recorded in next revsion.")]
[Fact(Skip = "to be re-recorded in next revision.")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void A2AClusterCommitFailoverJob()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ function Test-ReplicateProximityPlacementGroupVm {
$job = New-AzRecoveryServicesAsrNetworkMapping -AzureToAzure -Name $primaryNetMapping -PrimaryFabric $pf -PrimaryAzureNetworkId $PrimaryAzureNetworkId -RecoveryFabric $rf -RecoveryAzureNetworkId $RecoveryAzureNetworkId
WaitForJobCompletion -JobId $job.Name

#Reverse Conatiner mapping
#Reverse Container mapping
$job = New-AzRecoveryServicesAsrProtectionContainerMapping -Name $recMappingName -Policy $policy -PrimaryProtectionContainer $rc -RecoveryProtectionContainer $pc
WaitForJobCompletion -JobId $job.Name
$revMapping = Get-AzRecoveryServicesAsrProtectionContainerMapping -Name $recMappingName -ProtectionContainer $rc
Expand Down Expand Up @@ -1077,7 +1077,7 @@ function Test-VMNicConfig {
$job = New-AzRecoveryServicesAsrNetworkMapping -AzureToAzure -Name $primaryNetMapping -PrimaryFabric $pf -PrimaryAzureNetworkId $PrimaryAzureNetworkId -RecoveryFabric $rf -RecoveryAzureNetworkId $RecoveryAzureNetworkId
WaitForJobCompletion -JobId $job.Name

#Reverse Conatiner mapping
#Reverse Container mapping
$job = New-AzRecoveryServicesAsrProtectionContainerMapping -Name $recMappingName -Policy $policy -PrimaryProtectionContainer $rc -RecoveryProtectionContainer $pc
WaitForJobCompletion -JobId $job.Name
$revMapping = Get-AzRecoveryServicesAsrProtectionContainerMapping -Name $recMappingName -ProtectionContainer $rc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function Test-CreatePCMap
$currentJob
WaitForJobCompletion -JobId $currentJob.Name

# Get protection conatiner mapping
# Get protection container mapping
$ProtectionContainerMapping = Get-AzRecoveryServicesAsrProtectionContainerMapping -Name $ProtectionContainerMappingName -ProtectionContainer $PrimaryProtectionContainer
Assert-NotNull($ProtectionContainerMapping)
}
Expand Down Expand Up @@ -457,10 +457,10 @@ function Test-RemovePCMap
# Get the primary container
$PrimaryProtectionContainer = Get-AzRecoveryServicesAsrFabric -FriendlyName $PrimaryFabricName| Get-AzRecoveryServicesAsrProtectionContainer | where { $_.FriendlyName -eq $PrimaryProtectionContainerName }

# Get protection conatiner mapping
# Get protection container mapping
$ProtectionContainerMapping = Get-AzRecoveryServicesAsrProtectionContainerMapping -Name $ProtectionContainerMappingName -ProtectionContainer $PrimaryProtectionContainer

# Remove protection conatiner mapping
# Remove protection container mapping
$Job = Remove-AzRecoveryServicesAsrProtectionContainerMapping -ProtectionContainerMapping $ProtectionContainerMapping
#WaitForJobCompletion -JobId $Job.Name
}
Expand Down Expand Up @@ -708,15 +708,15 @@ function Test-SiteRecoveryNewModelE2ETest
Assert-NotNull($Policy)
Assert-NotNull($Policy.Name)

# Get conatiners
# Get containers
$PrimaryProtectionContainer = Get-AzRecoveryServicesAsrFabric | Get-AzRecoveryServicesAsrProtectionContainer | where { $_.FriendlyName -eq $PrimaryProtectionContainerName }
Assert-NotNull($PrimaryProtectionContainer)
Assert-NotNull($PrimaryProtectionContainer.Name)
$RecoveryProtectionContainer = Get-AzRecoveryServicesAsrFabric | Get-AzRecoveryServicesAsrProtectionContainer | where { $_.FriendlyName -eq $RecoveryProtectionContainerName }
Assert-NotNull($RecoveryProtectionContainer)
Assert-NotNull($RecoveryProtectionContainer.Name)

# Create new Conatiner mapping
# Create new Container mapping
$Job = New-AzRecoveryServicesAsrProtectionContainerMapping -Name $ProtectionContainerMappingName -Policy $Policy -PrimaryProtectionContainer $PrimaryProtectionContainer -RecoveryProtectionContainer $RecoveryProtectionContainer
#WaitForJobCompletion -JobId $Job.Name

Expand Down Expand Up @@ -762,7 +762,7 @@ function Test-SiteRecoveryNewModelE2ETest
$Job = Remove-AzRecoveryServicesAsrNetworkMapping -NetworkMapping $NetworkMapping
#WaitForJobCompletion -JobId $Job.Name

# Remove conatiner mapping
# Remove container mapping
$Job = Remove-AzRecoveryServicesAsrProtectionContainerMapping -ProtectionContainerMapping $ProtectionContainerMapping
#WaitForJobCompletion -JobId $Job.Name
$ProtectionContainerMapping = Get-AzRecoveryServicesAsrProtectionContainerMapping -ProtectionContainer $PrimaryProtectionContainer | Where-Object {$_.Name -eq $ProtectionContainerMappingName}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function Test-CreatePCMap
$Job = New-AzRecoveryServicesAsrProtectionContainerMapping -Name $ProtectionContainerMappingName -Policy $Policy -PrimaryProtectionContainer $PrimaryProtectionContainer
WaitForJobCompletion -JobId $Job.Name

# Get protection conatiner mapping
# Get protection container mapping
$ProtectionContainerMapping = Get-AzRecoveryServicesAsrProtectionContainerMapping -Name $ProtectionContainerMappingName -ProtectionContainer $PrimaryProtectionContainer
Assert-NotNull($ProtectionContainerMapping)
}
Expand Down Expand Up @@ -460,10 +460,10 @@ function Test-RemovePCMap
# Get the primary container
$PrimaryProtectionContainer = Get-AzRecoveryServicesAsrFabric -FriendlyName $PrimaryFabricName| Get-AzRecoveryServicesAsrProtectionContainer | where { $_.FriendlyName -eq $PrimaryProtectionContainerName }

# Get protection conatiner mapping
# Get protection container mapping
$ProtectionContainerMapping = Get-AzRecoveryServicesAsrProtectionContainerMapping -Name $ProtectionContainerMappingName -ProtectionContainer $PrimaryProtectionContainer

# Remove protection conatiner mapping
# Remove protection container mapping
$Job = Remove-AzRecoveryServicesAsrProtectionContainerMapping -ProtectionContainerMapping $ProtectionContainerMapping
#WaitForJobCompletion -JobId $Job.Name
}
Expand Down Expand Up @@ -712,15 +712,15 @@ function Test-SiteRecoveryNewModelE2ETest
Assert-NotNull($Policy)
Assert-NotNull($Policy.Name)

# Get conatiners
# Get containers
$PrimaryProtectionContainer = Get-AzRecoveryServicesAsrFabric | Get-AzRecoveryServicesAsrProtectionContainer | where { $_.FriendlyName -eq $PrimaryProtectionContainerName }
Assert-NotNull($PrimaryProtectionContainer)
Assert-NotNull($PrimaryProtectionContainer.Name)
$RecoveryProtectionContainer = Get-AzRecoveryServicesAsrFabric | Get-AzRecoveryServicesAsrProtectionContainer | where { $_.FriendlyName -eq $RecoveryProtectionContainerName }
Assert-NotNull($RecoveryProtectionContainer)
Assert-NotNull($RecoveryProtectionContainer.Name)

# Create new Conatiner mapping
# Create new Container mapping
$Job = New-AzRecoveryServicesAsrProtectionContainerMapping -Name $ProtectionContainerMappingName -Policy $Policy -PrimaryProtectionContainer $PrimaryProtectionContainer -RecoveryProtectionContainer $RecoveryProtectionContainer
#WaitForJobCompletion -JobId $Job.Name

Expand Down Expand Up @@ -766,7 +766,7 @@ function Test-SiteRecoveryNewModelE2ETest
$Job = Remove-AzRecoveryServicesAsrNetworkMapping -NetworkMapping $NetworkMapping
#WaitForJobCompletion -JobId $Job.Name

# Remove conatiner mapping
# Remove container mapping
$Job = Remove-AzRecoveryServicesAsrProtectionContainerMapping -ProtectionContainerMapping $ProtectionContainerMapping
#WaitForJobCompletion -JobId $Job.Name
$ProtectionContainerMapping = Get-AzRecoveryServicesAsrProtectionContainerMapping -ProtectionContainer $PrimaryProtectionContainer | Where-Object {$_.Name -eq $ProtectionContainerMappingName}
Expand Down
Loading