From f457d8b52ad0984dd34fb31b556ffd1a35448897 Mon Sep 17 00:00:00 2001 From: Arie Heinrich Date: Fri, 13 Jun 2025 23:38:03 +0200 Subject: [PATCH] fix spelling --- src/Accounts/Accounts.Test/AzureRMProfileTests.cs | 4 ++-- .../Accounts.Test/ConnectAzAccountScenarioTests.ps1 | 4 ++-- src/Accounts/Accounts.Test/DefaultCmdletTests.ps1 | 2 +- src/Accounts/Accounts.Test/Mocks/MockDataStore.cs | 2 +- .../Mocks/MockSubscriptionClientFactoryVersion2019.cs | 2 +- src/Accounts/Accounts.Test/SubscriptionCmdletTests.ps1 | 8 ++++---- src/Accounts/Accounts/Account/ConnectAzureRmAccount.cs | 6 +++--- .../Accounts/AutoSave/DisableAzureRmContextAutosave.cs | 2 +- src/Accounts/Accounts/ChangeLog.md | 8 ++++---- src/Accounts/Accounts/CommonModule/AzModule.cs | 2 +- .../Accounts/CommonModule/EnvironmentExtensions.cs | 8 ++++---- src/Accounts/Accounts/CommonModule/EventData.cs | 4 ++-- src/Accounts/Accounts/CommonModule/EventHelper.cs | 8 ++++---- src/Accounts/Accounts/CommonModule/Events.cs | 2 +- src/Accounts/Accounts/CommonModule/IEventStore.cs | 2 +- .../Accounts/CommonModule/PSAzureServiceProfile.cs | 2 +- src/Accounts/Accounts/CommonModule/PSModuleExtensions.cs | 2 +- src/Accounts/Accounts/CommonModule/TelemetryProvider.cs | 8 ++++---- src/Accounts/Accounts/CommonModule/UniqueId.cs | 2 +- src/Accounts/Accounts/CommonModule/UserAgent.cs | 2 +- src/Accounts/Accounts/Models/RMProfileClient.cs | 4 ++-- src/Accounts/Accounts/Models/SubscriptionClientProxy.cs | 4 ++-- src/Accounts/Accounts/Properties/Resources.Designer.cs | 4 ++-- src/Accounts/Accounts/Properties/Resources.resx | 4 ++-- src/Accounts/Accounts/Rest/InvokeAzRestMethodCommand.cs | 2 +- .../Accounts/Utilities/HttpRequestMessageExtension.cs | 4 ++-- src/Accounts/Accounts/Utilities/SupportedResourceNames.cs | 2 +- .../Authentication.ResourceManager/AzureRmProfile.cs | 6 +++--- .../Common/PSObjectExtensions.cs | 6 +++--- .../Models/PSAzureEnvironment.cs | 6 +++--- .../Models/PSAzureRmAccount.cs | 2 +- .../Models/PSAzureSubscription.cs | 2 +- .../Models/PSAzureTenant.cs | 4 ++-- .../Authentication.Test/ConfigTests/UpdateConfigTests.cs | 2 +- src/Accounts/Authentication.Test/LoginTests.cs | 2 +- src/Accounts/Authentication.Test/Mocks/MockDataStore.cs | 2 +- .../Authentication/Authentication/IAuthenticator.cs | 2 +- .../Authentication/IClaimsChallengeProcessor.cs | 6 +++--- .../TokenCache/PowerShellTokenCacheProvider.cs | 2 +- src/Accounts/Authentication/AzureSessionInitializer.cs | 2 +- src/Accounts/Authentication/ClaimsChallengeHandler.cs | 2 +- .../Authentication/Config/Helper/AppliesToHelper.cs | 2 +- src/Accounts/Authentication/ContextAutosaveSettings.cs | 2 +- .../Authentication/Extensions/ServiceClientExtension.cs | 4 ++-- .../Authentication/Factories/CancelRetryHandler.cs | 2 +- src/Accounts/Authentication/Factories/ClientFactory.cs | 2 +- .../Authentication/HttpClientOperationsFactory.cs | 2 +- src/Accounts/Authentication/KeyStore/AzKeyStore.cs | 6 +++--- src/Accounts/Authentication/Models/MemoryDataStore.cs | 2 +- .../Sanitizer/Providers/SanitizerProviderBase.cs | 2 +- .../Authentication/Utilities/IHttpRetryAlgorithm.cs | 2 +- .../Authentication/Utilities/PSNamingUtilities.cs | 2 +- src/Accounts/AuthenticationAssemblyLoadContext/README.MD | 6 +++--- src/Accounts/Authenticators/AuthenticationHelpers.cs | 2 +- 54 files changed, 93 insertions(+), 93 deletions(-) diff --git a/src/Accounts/Accounts.Test/AzureRMProfileTests.cs b/src/Accounts/Accounts.Test/AzureRMProfileTests.cs index 36d0f84dd850..a14e2e74d862 100644 --- a/src/Accounts/Accounts.Test/AzureRMProfileTests.cs +++ b/src/Accounts/Accounts.Test/AzureRMProfileTests.cs @@ -108,11 +108,11 @@ private static RMProfileClient SetupTestEnvironment(List tenants, List { - throw new CloudException("Subscription is not in the tenenat."); + throw new CloudException("Subscription is not in the tenant."); }); subscriptionGetQueue.Enqueue(() => { - throw new CloudException("Subscription is not in the tenenat."); + throw new CloudException("Subscription is not in the tenant."); }); } } diff --git a/src/Accounts/Accounts.Test/ConnectAzAccountScenarioTests.ps1 b/src/Accounts/Accounts.Test/ConnectAzAccountScenarioTests.ps1 index cb141bf4d452..7fd00bccfcd7 100644 --- a/src/Accounts/Accounts.Test/ConnectAzAccountScenarioTests.ps1 +++ b/src/Accounts/Accounts.Test/ConnectAzAccountScenarioTests.ps1 @@ -38,7 +38,7 @@ function Test-MaxContextPopulationWithSpecifiedValue } Else { - # subtract 1 only for test freamwork + # subtract 1 only for test framework Assert-AreEqual $maxContextPopulation ((Get-AzContext -ListAvailable).count-1) } @@ -69,7 +69,7 @@ function Test-MaxContextPopulationWithDefaultValue } Else { - # subtract 1 only for test freamwork + # subtract 1 only for test framework Assert-AreEqual $defaultContextPopulation ((Get-AzContext -ListAvailable).count-1) } } diff --git a/src/Accounts/Accounts.Test/DefaultCmdletTests.ps1 b/src/Accounts/Accounts.Test/DefaultCmdletTests.ps1 index 2bdb4eb6be0b..ba71fe92cbbc 100644 --- a/src/Accounts/Accounts.Test/DefaultCmdletTests.ps1 +++ b/src/Accounts/Accounts.Test/DefaultCmdletTests.ps1 @@ -32,7 +32,7 @@ function Test-DefaultResourceGroup $storedValue = (Get-AzContext).ExtendedProperties["Default Resource Group"] Assert-Null($storedValue) - # Test Resoure Group created when it doesn't exist + # Test Resource Group created when it doesn't exist $output = Set-AzDefault -ResourceGroupName $rgname -Force $resourcegroup = Get-AzResourceGroup -Name $rgname Assert-AreEqual $output.Name $resourcegroup.ResourceGroupName diff --git a/src/Accounts/Accounts.Test/Mocks/MockDataStore.cs b/src/Accounts/Accounts.Test/Mocks/MockDataStore.cs index e3aea6655c50..b1650d6aa314 100644 --- a/src/Accounts/Accounts.Test/Mocks/MockDataStore.cs +++ b/src/Accounts/Accounts.Test/Mocks/MockDataStore.cs @@ -303,7 +303,7 @@ public void RemoveCertificate(string thumbprint) /// Converts unix asterisk based file pattern to regex /// /// Asterisk based pattern - /// Regeular expression of null is empty + /// Regular expression of null is empty private static string WildcardToRegex(string wildcard) { if (wildcard == null || wildcard == "") return wildcard; diff --git a/src/Accounts/Accounts.Test/Mocks/MockSubscriptionClientFactoryVersion2019.cs b/src/Accounts/Accounts.Test/Mocks/MockSubscriptionClientFactoryVersion2019.cs index ec4d266e97af..6789697737d8 100644 --- a/src/Accounts/Accounts.Test/Mocks/MockSubscriptionClientFactoryVersion2019.cs +++ b/src/Accounts/Accounts.Test/Mocks/MockSubscriptionClientFactoryVersion2019.cs @@ -195,7 +195,7 @@ private ISubscriptionsOperations GetSubscriptionMock(List subscrip } if (subscriptionGetList == null || !subscriptionGetList.Any()) { - throw new CloudException("Subscripiton is not in the tenant."); + throw new CloudException("Subscription is not in the tenant."); } var result = new AzureOperationResponse() { diff --git a/src/Accounts/Accounts.Test/SubscriptionCmdletTests.ps1 b/src/Accounts/Accounts.Test/SubscriptionCmdletTests.ps1 index f924c9017c33..c63d17f31476 100644 --- a/src/Accounts/Accounts.Test/SubscriptionCmdletTests.ps1 +++ b/src/Accounts/Accounts.Test/SubscriptionCmdletTests.ps1 @@ -86,7 +86,7 @@ Tests each of the major parts of retrieving subscriptions in ARM mode #> function Test-SetAzureRmContextEndToEnd { - # This test requires that the tenant contains atleast two subscriptions + # This test requires that the tenant contains at least two subscriptions $allSubscriptions = Get-AzSubscription $secondSubscription = $allSubscriptions[1] Assert-True { $allSubscriptions[0] -ne $null } @@ -123,7 +123,7 @@ function Test-SetAzureRmContextWithoutSubscription <# .SYNOPSIS -Check whether tags works with subscripiton +Check whether tags works with subscription .DESCRIPTION SmokeTest #> @@ -135,7 +135,7 @@ function Test-GetSubscriptionsWithTags <# .SYNOPSIS -Tests whether subscripitions before and after context rename and set are equal. +Tests whether subscriptions before and after context rename and set are equal. .DESCRIPTION SmokeTest #> @@ -156,7 +156,7 @@ function Test-GetSubscriptionsAfterContextRenameAndSet <# .SYNOPSIS -Tests whether subscripitions is successfully when default profile is set to the context without a ServicePrincipalSecret. +Tests whether subscriptions is successfully when default profile is set to the context without a ServicePrincipalSecret. .DESCRIPTION SmokeTest #> diff --git a/src/Accounts/Accounts/Account/ConnectAzureRmAccount.cs b/src/Accounts/Accounts/Account/ConnectAzureRmAccount.cs index 0f24d7939d06..eefe650615be 100644 --- a/src/Accounts/Accounts/Account/ConnectAzureRmAccount.cs +++ b/src/Accounts/Accounts/Account/ConnectAzureRmAccount.cs @@ -226,7 +226,7 @@ public class ConnectAzureRmAccountCommand : AzureContextModificationCmdlet, IMod public SwitchParameter SendCertificateChain { get; set; } - [Parameter(ParameterSetName = ServicePrincipalCertificateFileParameterSet, Mandatory = true, HelpMessage = "The path of certficate file in pkcs#12 format.")] + [Parameter(ParameterSetName = ServicePrincipalCertificateFileParameterSet, Mandatory = true, HelpMessage = "The path of certificate file in pkcs#12 format.")] public String CertificatePath { get; set; } [Parameter(ParameterSetName = ServicePrincipalCertificateFileParameterSet, HelpMessage = "The password required to access the pkcs#12 certificate file.")] @@ -296,7 +296,7 @@ protected override void BeginProcessing() // todo: ideally cancellation token should be passed to authentication factory as a parameter // however AuthenticationFactory.Authenticate does not support it // so I store it in AzureSession.Instance as a global variable - // todo: CancellationTokenSource should be visiable only in cmdlet class + // todo: CancellationTokenSource should be visible only in cmdlet class // CancellationTokenSource.Token should be passed to other classes AzureSession.Instance.RegisterComponent("LoginCancellationToken", () => new CancellationTokenSource(), true); } @@ -901,7 +901,7 @@ private void AddConfigTelemetry() } catch (Exception ex) { - WriteDebug(string.Format("Failed to add telemtry for config as {0}", ex.Message)); + WriteDebug(string.Format("Failed to add telemetry for config as {0}", ex.Message)); } } diff --git a/src/Accounts/Accounts/AutoSave/DisableAzureRmContextAutosave.cs b/src/Accounts/Accounts/AutoSave/DisableAzureRmContextAutosave.cs index 2ebbf188d7c3..2c1fb36c493f 100644 --- a/src/Accounts/Accounts/AutoSave/DisableAzureRmContextAutosave.cs +++ b/src/Accounts/Accounts/AutoSave/DisableAzureRmContextAutosave.cs @@ -77,7 +77,7 @@ void DisableAutosave(IAzureSession session, bool writeAutoSaveFile, out ContextA if(originalTokenCacheProvider is SharedTokenCacheProvider) { var token = originalTokenCacheProvider.ReadTokenData(); - //must explicitely use type PowerShellTokenCacheProvider + //must explicitly use type PowerShellTokenCacheProvider PowerShellTokenCacheProvider cacheProvider = new InMemoryTokenCacheProvider(token); AzureSession.Instance.RegisterComponent(PowerShellTokenCacheProvider.PowerShellTokenCacheProviderKey, () => cacheProvider, true); } diff --git a/src/Accounts/Accounts/ChangeLog.md b/src/Accounts/Accounts/ChangeLog.md index c60f8da94385..11b6cb34740e 100644 --- a/src/Accounts/Accounts/ChangeLog.md +++ b/src/Accounts/Accounts/ChangeLog.md @@ -104,7 +104,7 @@ ## Version 2.19.0 > [!IMPORTANT] -> Preannouncement: The default interactive login experience will change from browser based to `Web Account Manager` (WAM) based on supported platforms, [learn more](https://learn.microsoft.com/en-us/entra/msal/dotnet/acquiring-tokens/desktop-mobile/wam). Only interactive login flow is influeced by WAM. This will take effect from the release of **May 21st**. +> Preannouncement: The default interactive login experience will change from browser based to `Web Account Manager` (WAM) based on supported platforms, [learn more](https://learn.microsoft.com/en-us/entra/msal/dotnet/acquiring-tokens/desktop-mobile/wam). Only interactive login flow is influenced by WAM. This will take effect from the release of **May 21st**. * Fixed secrets detection issues. ## Version 2.17.0 @@ -259,7 +259,7 @@ * Removed legacy assembly System.Private.ServiceModel and System.ServiceModel.Primitives [#16063] ## Version 2.7.1 -* Copied `ServicePrincipalSecret` and `CertificatePassword` from Az.Accounts buildin profile to customer set profile. [#16617] +* Copied `ServicePrincipalSecret` and `CertificatePassword` from Az.Accounts builtin profile to customer set profile. [#16617] * Updated help message and help markdown for parameter `Tenant` of the cmdlet `Set-AzContext`. [#16515] * Fixed the issue that Azure PowerShell could not work in a workflow. [#16408] * Fixed the doubled Api Version in the URI of the underlying request issued by `Invoke-AzRestMethod`. [#16615] @@ -301,7 +301,7 @@ * Updated Azure.Core to 1.16.0 ## Version 2.5.1 -* Fixed access error when subscripiton has no `Tags` property [#15425]. +* Fixed access error when subscription has no `Tags` property [#15425]. ## Version 2.5.0 * Added Tags, AuthorizationSource to PSAzureSusbscripiton and added TenantType, DefaultDomain, TenantBrandingLogoUrl, CountryCode to PSAzureTenant [#15220] @@ -368,7 +368,7 @@ ## Version 2.1.1 * Fixed the issue that token is not renewed after expiring for LRO [#13367] * Fixed the issue that AccountId is not respected in MSI [#13376] -* Fixed the issue that error message is unclear if browser is not avaialable for Interactive auth [#13340] +* Fixed the issue that error message is unclear if browser is not available for Interactive auth [#13340] ## Version 2.1.0 * [Breaking Change] Removed `Get-AzProfile` and `Select-AzProfile` diff --git a/src/Accounts/Accounts/CommonModule/AzModule.cs b/src/Accounts/Accounts/CommonModule/AzModule.cs index 97170d2f35b2..08bfc35f036b 100644 --- a/src/Accounts/Accounts/CommonModule/AzModule.cs +++ b/src/Accounts/Accounts/CommonModule/AzModule.cs @@ -296,7 +296,7 @@ internal async Task OnFinally(string id, CancellationToken cancellationToken, Ge { if(!response.IsSuccessStatusCode && qos.Exception == null) { - // add "InternalException" as message because it is just for telemtry tracking. + // add "InternalException" as message because it is just for telemetry tracking. AzPSCloudException ex = (response.StatusCode == HttpStatusCode.NotFound) ? new AzPSResourceNotFoundCloudException("InternalException") : new AzPSCloudException("InternalException"); try diff --git a/src/Accounts/Accounts/CommonModule/EnvironmentExtensions.cs b/src/Accounts/Accounts/CommonModule/EnvironmentExtensions.cs index c9cc7f47df09..bed49c17b4f1 100644 --- a/src/Accounts/Accounts/CommonModule/EnvironmentExtensions.cs +++ b/src/Accounts/Accounts/CommonModule/EnvironmentExtensions.cs @@ -28,7 +28,7 @@ internal static class EnvironmentExtensions /// /// The current Azure Environment /// The Uri to transform - /// The Uri, with naseUri appropriately altered for the current Azure environment + /// The Uri, with baseUri appropriately altered for the current Azure environment public static Uri GetUriFromBaseRequestUri(this IAzureEnvironment environment, Uri baseEndpoint) { if (null == environment) @@ -117,7 +117,7 @@ public static Uri GetUriFromBaseRequestUri(this IAzureEnvironment environment, U ////TODO: Update to support all data plane audience /// - /// Determien the inteneded audience of a request + /// Determine the intended audience of a request /// /// The environment to use as a source of audiences /// The Uri to try to find the audience for @@ -195,11 +195,11 @@ internal static Regex GetMatcher(this string baseProperty) } /// - /// Determines if the given Uri contaisn the given endpoint or endpoint suffix + /// Determines if the given Uri contains the given endpoint or endpoint suffix /// /// The endpoint or suffix to match /// The Uri to compare to the given endpoint or suffix. - /// True if the Uri matches the given endpoint or siffix, otherwise false + /// True if the Uri matches the given endpoint or suffix, otherwise false internal static bool IsMatch(this string endpointOrSuffix, Uri compare) { var matcher = endpointOrSuffix.GetMatcher(); diff --git a/src/Accounts/Accounts/CommonModule/EventData.cs b/src/Accounts/Accounts/CommonModule/EventData.cs index a7cae6449ec9..0c1f96df4809 100644 --- a/src/Accounts/Accounts/CommonModule/EventData.cs +++ b/src/Accounts/Accounts/CommonModule/EventData.cs @@ -28,7 +28,7 @@ namespace Microsoft.Azure.Commands.Common /// /// In PowerShell, we add on the EventDataConverter to support sending events between modules. - /// Obviously, this code would need to be duplcated on both modules. + /// Obviously, this code would need to be duplicated on both modules. /// This is preferable to sharing a common library, as versioning makes that problematic. /// [TypeConverter(typeof(EventDataConverter))] @@ -66,7 +66,7 @@ public partial class EventData : EventArgs /// /// Typically you'd cast this to the expected type to use it: /// - /// if(eventData.RequestMessgae is HttpRequestMessage httpRequest) + /// if(eventData.RequestMessage is HttpRequestMessage httpRequest) /// { /// httpRequest.Headers.Add("x-request-flavor", "vanilla"); /// } diff --git a/src/Accounts/Accounts/CommonModule/EventHelper.cs b/src/Accounts/Accounts/CommonModule/EventHelper.cs index eb34f938b782..4fc819a64f6e 100644 --- a/src/Accounts/Accounts/CommonModule/EventHelper.cs +++ b/src/Accounts/Accounts/CommonModule/EventHelper.cs @@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.Common using SignalDelegate = Func, Task>; /// - /// Internal helpers and extensaions for EventData manipulation + /// Internal helpers and extensions for EventData manipulation /// internal static class EventHelper { @@ -31,7 +31,7 @@ internal static class EventHelper /// Create a tracing event containing a string message /// /// The string message to include in event data - /// Valid EventData containign the message + /// Valid EventData containing the message public static EventData CreateLogEvent(string message) { return new EventData @@ -45,7 +45,7 @@ public static EventData CreateLogEvent(string message) /// Create a new debug message event /// /// The message - /// An event cotnainng the debug message + /// An event containing the debug message public static EventData CreateDebugEvent(string message) { return new EventData @@ -59,7 +59,7 @@ public static EventData CreateDebugEvent(string message) /// Create a new debug message event /// /// The message - /// An event cotnainng the debug message + /// An event containing the debug message public static EventData CreateWarningEvent(string message) { return new EventData diff --git a/src/Accounts/Accounts/CommonModule/Events.cs b/src/Accounts/Accounts/CommonModule/Events.cs index 46cb49bdfeaf..0970417ad062 100644 --- a/src/Accounts/Accounts/CommonModule/Events.cs +++ b/src/Accounts/Accounts/CommonModule/Events.cs @@ -166,7 +166,7 @@ public static class Events public const string Validation = nameof(Validation); /// - /// Event indicating a parameter validatio9n warning + /// Event indicating a parameter validation warning /// public const string ValidationWarning = nameof(ValidationWarning); diff --git a/src/Accounts/Accounts/CommonModule/IEventStore.cs b/src/Accounts/Accounts/CommonModule/IEventStore.cs index fbd4ff8612d4..9b2526f90522 100644 --- a/src/Accounts/Accounts/CommonModule/IEventStore.cs +++ b/src/Accounts/Accounts/CommonModule/IEventStore.cs @@ -33,7 +33,7 @@ public interface IEventStore : IEnumerable, IDisposable /// Try to get the next event from the store /// /// The next event in the store - /// True if there is an event remainign in the store, otherwise false + /// True if there is an event remaining in the store, otherwise false bool TryGetEvent(out EventData data); } } diff --git a/src/Accounts/Accounts/CommonModule/PSAzureServiceProfile.cs b/src/Accounts/Accounts/CommonModule/PSAzureServiceProfile.cs index 9f97347e3586..6ea989d57e24 100644 --- a/src/Accounts/Accounts/CommonModule/PSAzureServiceProfile.cs +++ b/src/Accounts/Accounts/CommonModule/PSAzureServiceProfile.cs @@ -44,7 +44,7 @@ internal static PSAzureServiceProfile Create( string name) } /// - /// Get a descriptin of the profile based on the format of the profile name + /// Get a description of the profile based on the format of the profile name /// /// The name of the profile /// A textual description of the given profile diff --git a/src/Accounts/Accounts/CommonModule/PSModuleExtensions.cs b/src/Accounts/Accounts/CommonModule/PSModuleExtensions.cs index 21a855c804f1..b3247f794cec 100644 --- a/src/Accounts/Accounts/CommonModule/PSModuleExtensions.cs +++ b/src/Accounts/Accounts/CommonModule/PSModuleExtensions.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.Commands.Common { /// - /// Extnesion methods for PSCmdlet + /// Extension methods for PSCmdlet /// internal static class PSModuleExtensions { diff --git a/src/Accounts/Accounts/CommonModule/TelemetryProvider.cs b/src/Accounts/Accounts/CommonModule/TelemetryProvider.cs index 91cb630f8e55..e025fe0660f9 100644 --- a/src/Accounts/Accounts/CommonModule/TelemetryProvider.cs +++ b/src/Accounts/Accounts/CommonModule/TelemetryProvider.cs @@ -65,7 +65,7 @@ protected TelemetryProvider(AzurePSDataCollectionProfile profile, MetricHelper h /// /// Create a Telemetry Provider using the given event listener /// - /// The event listenet + /// The event listener /// A telemetry provider that send data over the given event listener public static TelemetryProvider Create(IEventListener listener) { @@ -80,7 +80,7 @@ public static TelemetryProvider Create(IEventListener listener) /// /// Factory method for TelemetryProvider /// - /// A logger for warnign messages (conditionally used for data collection warning) + /// A logger for warning messages (conditionally used for data collection warning) /// A logger for debugging traces /// public static TelemetryProvider Create(Action warningLogger, Action debugLogger) @@ -91,7 +91,7 @@ public static TelemetryProvider Create(Action warningLogger, Action - /// Create a telemtry provider, using the given profile settings and event store + /// Create a telemetry provider, using the given profile settings and event store /// /// Whether ot not to collect data /// The store for events generated during telemetry @@ -131,7 +131,7 @@ public virtual void Flush() } /// - /// Create a telmetry record + /// Create a telemetry record /// /// /// diff --git a/src/Accounts/Accounts/CommonModule/UniqueId.cs b/src/Accounts/Accounts/CommonModule/UniqueId.cs index 8e8b8ef88a36..ccf561172e4b 100644 --- a/src/Accounts/Accounts/CommonModule/UniqueId.cs +++ b/src/Accounts/Accounts/CommonModule/UniqueId.cs @@ -35,7 +35,7 @@ public class UniqueId /// /// Pipeline delegate to add a unique id header to an outgoing request /// - /// The outgpoing request + /// The outgoing request /// The cancellation token /// Additional cancellation action if the operation is cancelled /// Signal delegate for logging events diff --git a/src/Accounts/Accounts/CommonModule/UserAgent.cs b/src/Accounts/Accounts/CommonModule/UserAgent.cs index 7ed533363c6d..c8fef8650fad 100644 --- a/src/Accounts/Accounts/CommonModule/UserAgent.cs +++ b/src/Accounts/Accounts/CommonModule/UserAgent.cs @@ -68,7 +68,7 @@ public UserAgent(InvocationInfo invocation) /// /// Pipeline delegate to add a unique id header to an outgoing request /// - /// The outgpoing request + /// The outgoing request /// The cancellation token /// Additional cancellation action if the operation is cancelled /// Signal delegate for logging events diff --git a/src/Accounts/Accounts/Models/RMProfileClient.cs b/src/Accounts/Accounts/Models/RMProfileClient.cs index a59195b45542..46f2f0f836c9 100644 --- a/src/Accounts/Accounts/Models/RMProfileClient.cs +++ b/src/Accounts/Accounts/Models/RMProfileClient.cs @@ -87,7 +87,7 @@ public bool TrySetDefaultContext(string contextName) /// /// The name of the context to change /// The enw name for the context - /// true if the rename was successful, otherwise falkse + /// true if the rename was successful, otherwise false public bool TryRenameContext(string sourceContext, string targetContext) { return _profile.TryRenameContext(sourceContext, targetContext); @@ -325,7 +325,7 @@ public AzureRmProfile Login( TryGetTenantSubscription(token, account, environment, subscriptionId, subscriptionName, false, out tempSubscription, out tempTenant, out tempSubscriptions)) { // If no subscription found for the given token/tenant,discard tempTenant value. - // Continue to look for matched subscripitons until one subscription retrived by its home tenant is found. + // Continue to look for matched subscriptions until one subscription retrieved by its home tenant is found. if (defaultTenant == null && tempSubscription != null) { defaultSubscription = tempSubscription; diff --git a/src/Accounts/Accounts/Models/SubscriptionClientProxy.cs b/src/Accounts/Accounts/Models/SubscriptionClientProxy.cs index 1f32028530e1..d34099ac48a4 100644 --- a/src/Accounts/Accounts/Models/SubscriptionClientProxy.cs +++ b/src/Accounts/Accounts/Models/SubscriptionClientProxy.cs @@ -117,7 +117,7 @@ public SubscriptionClientProxy(LoggerWriter logWriter) } while (!popQueueSuccess && retryCount-- > 0); if (!popQueueSuccess) { - throw new Exception("Conncrrent issue. Please try again."); + throw new Exception("Concurrent issue. Please try again."); } subscriptionClientAction(subscriptionclient); return; @@ -140,7 +140,7 @@ public SubscriptionClientProxy(LoggerWriter logWriter) } while (!popQueueSuccess && retryCount-- > 0); if (!popQueueSuccess) { - throw new Exception("Conncrrent issue. Please try again."); + throw new Exception("Concurrent issue. Please try again."); } } } diff --git a/src/Accounts/Accounts/Properties/Resources.Designer.cs b/src/Accounts/Accounts/Properties/Resources.Designer.cs index 30d6d13cf542..1df0d0516c42 100644 --- a/src/Accounts/Accounts/Properties/Resources.Designer.cs +++ b/src/Accounts/Accounts/Properties/Resources.Designer.cs @@ -727,7 +727,7 @@ internal static string InvalidSubscriptionId { } /// - /// Looks up a localized string similar to KeyStore cannot be loaded from storage. Please check the keystore file integrity or system compablity. The functions relate to context autosaving may be affected.. + /// Looks up a localized string similar to KeyStore cannot be loaded from storage. Please check the keystore file integrity or system compatibility. The functions relate to context autosaving may be affected.. /// internal static string KeyStoreLoadingError { get { @@ -1267,7 +1267,7 @@ internal static string ServicePrincipalTenantDomainNotFound { } /// - /// Looks up a localized string similar to The provided service principal secret or certifcate password will be included in the '{0}' file found in the user profile ( {1} ). Please ensure that this directory has appropriate protections.. + /// Looks up a localized string similar to The provided service principal secret or certificate password will be included in the '{0}' file found in the user profile ( {1} ). Please ensure that this directory has appropriate protections.. /// internal static string ServicePrincipalWarning { get { diff --git a/src/Accounts/Accounts/Properties/Resources.resx b/src/Accounts/Accounts/Properties/Resources.resx index 402c810feb0a..a1945294bf90 100644 --- a/src/Accounts/Accounts/Properties/Resources.resx +++ b/src/Accounts/Accounts/Properties/Resources.resx @@ -424,7 +424,7 @@ Unable to set profile because environment variable '${0}' is null. - The provided service principal secret or certifcate password will be included in the '{0}' file found in the user profile ( {1} ). Please ensure that this directory has appropriate protections. + The provided service principal secret or certificate password will be included in the '{0}' file found in the user profile ( {1} ). Please ensure that this directory has appropriate protections. The provided client id and assertion will be included in the '{0}' file found in the user profile ( {1} ). Please ensure that this directory has appropriate protections. @@ -572,7 +572,7 @@ 0: command being not found; 1: its module - KeyStore cannot be loaded from storage. Please check the keystore file integrity or system compablity. The functions relate to context autosaving may be affected. + KeyStore cannot be loaded from storage. Please check the keystore file integrity or system compatibility. The functions relate to context autosaving may be affected. The uri is invalid: {0} diff --git a/src/Accounts/Accounts/Rest/InvokeAzRestMethodCommand.cs b/src/Accounts/Accounts/Rest/InvokeAzRestMethodCommand.cs index 80bff4663d76..7fff064dc4d2 100644 --- a/src/Accounts/Accounts/Rest/InvokeAzRestMethodCommand.cs +++ b/src/Accounts/Accounts/Rest/InvokeAzRestMethodCommand.cs @@ -320,7 +320,7 @@ public string DeterminePollingUri(AzureOperationResponse response) { /* * Priority of Polling Uri: - * 1. `PollFrom` (User Ovrride) + * 1. `PollFrom` (User Override) * 2. "Azure-AsyncOperation" * 3. "Location" * 4. originalUri (Resource Uri) diff --git a/src/Accounts/Accounts/Utilities/HttpRequestMessageExtension.cs b/src/Accounts/Accounts/Utilities/HttpRequestMessageExtension.cs index 0dfd72579838..e6715ffbca4e 100644 --- a/src/Accounts/Accounts/Utilities/HttpRequestMessageExtension.cs +++ b/src/Accounts/Accounts/Utilities/HttpRequestMessageExtension.cs @@ -39,7 +39,7 @@ internal static Task CloneWithContentAndDispose(this HttpReq /// /// Clones an HttpRequestMessage (without the content) /// - /// Original HttpRequestMessage (Will be diposed before returning) + /// Original HttpRequestMessage (Will be disposed before returning) /// /// /// A clone of the HttpRequestMessage @@ -75,7 +75,7 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste /// /// Clones an HttpRequestMessage (including the content stream and content headers) /// - /// Original HttpRequestMessage (Will be diposed before returning) + /// Original HttpRequestMessage (Will be disposed before returning) /// /// /// A clone of the HttpRequestMessage diff --git a/src/Accounts/Accounts/Utilities/SupportedResourceNames.cs b/src/Accounts/Accounts/Utilities/SupportedResourceNames.cs index 8d88552018ae..06fa67afeb2a 100644 --- a/src/Accounts/Accounts/Utilities/SupportedResourceNames.cs +++ b/src/Accounts/Accounts/Utilities/SupportedResourceNames.cs @@ -54,7 +54,7 @@ static SupportedResourceNames() { AnalysisServices, AzureEnvironment.ExtendedEndpoint.AnalysisServicesEndpointResourceId }, { Attestation, AzureEnvironment.ExtendedEndpoint.AzureAttestationServiceEndpointResourceId }, { OperationalInsights, AzureEnvironment.ExtendedEndpoint.OperationalInsightsEndpointResourceId }, - { Storage, "https://storage.azure.com/" }, //OAuth scope/resource id for Storage, does not add it to ExtenedEndpoint to avoid confusion with StorageEndpointSuffix + { Storage, "https://storage.azure.com/" }, //OAuth scope/resource id for Storage, does not add it to ExtendedEndpoint to avoid confusion with StorageEndpointSuffix { Synapse, AzureEnvironment.ExtendedEndpoint.AzureSynapseAnalyticsEndpointResourceId }, { ManagedHsm, AzureEnvironment.ExtendedEndpoint.ManagedHsmServiceEndpointResourceId }, { AppConfiguration, AzureEnvironment.ExtendedEndpoint.AzureAppConfigurationEndpointResourceId }, diff --git a/src/Accounts/Authentication.ResourceManager/AzureRmProfile.cs b/src/Accounts/Authentication.ResourceManager/AzureRmProfile.cs index 53a58ab8603b..3c9ee568d92f 100644 --- a/src/Accounts/Authentication.ResourceManager/AzureRmProfile.cs +++ b/src/Accounts/Authentication.ResourceManager/AzureRmProfile.cs @@ -75,7 +75,7 @@ public virtual IAzureContext DefaultContext IAzureContext result = null; if (DefaultContextKey == Constants.DefaultValue && Contexts.Any(c => c.Key != Constants.DefaultValue)) { - // If the default context is "Default", but there are other contexts set, remove the "Default" context and select first avaiable context as default + // If the default context is "Default", but there are other contexts set, remove the "Default" context and select first available context as default EnqueueDebugMessage($"Incorrect default context key '{DefaultContextKey}' found. Trying to remove it and falling back to the first available context."); TryRemoveContext(Constants.DefaultValue); } @@ -418,7 +418,7 @@ public string ToString(bool serializeCache) } /// - /// Set the contaienr to its default state + /// Set the container to its default state /// public void Clear() { @@ -570,7 +570,7 @@ public bool TryRenameContext(string sourceName, string targetName) /// /// Add the input context with the specified name. /// If the context with the same tenant, subscription, accountId does not exist, add the input into context list. - /// If the context with the same tenant, subscription, accountId already exist, merge 2 contexes and add the merged context to the context list. + /// If the context with the same tenant, subscription, accountId already exist, merge 2 contexts and add the merged context to the context list. /// /// The specified new name of the context. /// The new context to set as default. diff --git a/src/Accounts/Authentication.ResourceManager/Common/PSObjectExtensions.cs b/src/Accounts/Authentication.ResourceManager/Common/PSObjectExtensions.cs index 5af26b7cfbc1..25c2abd57201 100644 --- a/src/Accounts/Authentication.ResourceManager/Common/PSObjectExtensions.cs +++ b/src/Accounts/Authentication.ResourceManager/Common/PSObjectExtensions.cs @@ -123,7 +123,7 @@ public static bool TryGetProperty(this PSObject source, string name, out T pr /// The expected type of the property /// The PSObject to retrieve the property from /// The name of the property to retrieve - /// he property if found, otherwise the deefault value for T + /// he property if found, otherwise the default value for T public static T GetProperty(this PSObject source, string name) { T propertyValue = default(T); @@ -208,10 +208,10 @@ public static void Populate(this IDictionary dictionary, string } /// - /// Populate a list from a proprty of the given PSObject + /// Populate a list from a property of the given PSObject /// /// The list to populate - /// The name of the property contiaing the list + /// The name of the property containing the list /// The PSObject to populate the list from public static void Populate(this IList list, string name, PSObject other) { diff --git a/src/Accounts/Authentication.ResourceManager/Models/PSAzureEnvironment.cs b/src/Accounts/Authentication.ResourceManager/Models/PSAzureEnvironment.cs index 54c3e009d121..b239df2bd1c5 100644 --- a/src/Accounts/Authentication.ResourceManager/Models/PSAzureEnvironment.cs +++ b/src/Accounts/Authentication.ResourceManager/Models/PSAzureEnvironment.cs @@ -218,7 +218,7 @@ public bool OnPremise public string GraphEndpointResourceId { get; set; } /// - /// Gets or sets the domain name suffix for traffig manager services. + /// Gets or sets the domain name suffix for traffic manager services. /// public string TrafficManagerDnsSuffix { get; set; } @@ -343,7 +343,7 @@ public string AzureAttestationServiceEndpointResourceId } /// - /// The domain name suffix for Azure Synapse Analyticss + /// The domain name suffix for Azure Synapse Analytics /// public string AzureSynapseAnalyticsEndpointSuffix { @@ -358,7 +358,7 @@ public string AzureSynapseAnalyticsEndpointSuffix } /// - /// Gets or sets the resource Id to use for contacting the Synapse Analyticss endpoint + /// Gets or sets the resource Id to use for contacting the Synapse Analytics endpoint /// public string AzureSynapseAnalyticsEndpointResourceId { diff --git a/src/Accounts/Authentication.ResourceManager/Models/PSAzureRmAccount.cs b/src/Accounts/Authentication.ResourceManager/Models/PSAzureRmAccount.cs index d0f079a3b75a..2a945984518c 100644 --- a/src/Accounts/Authentication.ResourceManager/Models/PSAzureRmAccount.cs +++ b/src/Accounts/Authentication.ResourceManager/Models/PSAzureRmAccount.cs @@ -69,7 +69,7 @@ public PSAzureRmAccount() public PSAzureRmAccount(IAzureAccount other) { this.CopyFrom(other); - /* We remove the sceret attributes from display as they are stored in plain text. + /* We remove the secret attributes from display as they are stored in plain text. * At the same time to keep the secrets in AzureRmContext.json. * It only takes effect when Az.Accounts converts AzureAccount to PSAzureRmAccount. * When the user stores the PSAzureRmAccount object (usually in a PSAzureContext) and sets it back as the current context, diff --git a/src/Accounts/Authentication.ResourceManager/Models/PSAzureSubscription.cs b/src/Accounts/Authentication.ResourceManager/Models/PSAzureSubscription.cs index ea8413c107a1..e98c6ae49168 100644 --- a/src/Accounts/Authentication.ResourceManager/Models/PSAzureSubscription.cs +++ b/src/Accounts/Authentication.ResourceManager/Models/PSAzureSubscription.cs @@ -78,7 +78,7 @@ public PSAzureSubscription(IAzureSubscription other) /// /// Convert a subscription from a PSObject /// - /// ThePSObject to poulate this subscription from + /// ThePSObject to populate this subscription from public PSAzureSubscription(PSObject other) { this.Id = other.GetProperty(nameof(Id)); diff --git a/src/Accounts/Authentication.ResourceManager/Models/PSAzureTenant.cs b/src/Accounts/Authentication.ResourceManager/Models/PSAzureTenant.cs index e383a9a1049d..0e91c002d80d 100644 --- a/src/Accounts/Authentication.ResourceManager/Models/PSAzureTenant.cs +++ b/src/Accounts/Authentication.ResourceManager/Models/PSAzureTenant.cs @@ -68,7 +68,7 @@ public PSAzureTenant() /// /// Copy Constructor /// - /// The tenanht to copy + /// The tenant to copy public PSAzureTenant(IAzureTenant other) { this.CopyFrom(other); @@ -96,7 +96,7 @@ public PSAzureTenant(PSObject other) public string TenantId { get { return Id; } } /// - /// Extended proeprties of the tenant + /// Extended properties of the tenant /// public IDictionary ExtendedProperties { get; } = new Dictionary(StringComparer.OrdinalIgnoreCase); diff --git a/src/Accounts/Authentication.Test/ConfigTests/UpdateConfigTests.cs b/src/Accounts/Authentication.Test/ConfigTests/UpdateConfigTests.cs index 829280dc7096..dfb603c2e105 100644 --- a/src/Accounts/Authentication.Test/ConfigTests/UpdateConfigTests.cs +++ b/src/Accounts/Authentication.Test/ConfigTests/UpdateConfigTests.cs @@ -73,7 +73,7 @@ public void CanUpdateJsonFile() [Trait(TestTraits.AcceptanceType, TestTraits.CheckIn)] public void CanUpdateConfigForCmdlet() { - const string warningKey = "DisalbeWarning"; + const string warningKey = "DisableWarning"; var warningConfig = new SimpleTypedConfig(warningKey, "", false); IConfigManager icm = GetConfigManager(warningConfig); diff --git a/src/Accounts/Authentication.Test/LoginTests.cs b/src/Accounts/Authentication.Test/LoginTests.cs index e9acbd798117..c5ede9799750 100644 --- a/src/Accounts/Authentication.Test/LoginTests.cs +++ b/src/Accounts/Authentication.Test/LoginTests.cs @@ -83,7 +83,7 @@ public void LoginWithUsernameAndPassword() public void LoginWithServicePrincipal() { // REQUIRED: - // _tenantId --> Id of the tenant that the service princinpal is registered to + // _tenantId --> Id of the tenant that the service principal is registered to // _userName --> Application id of the service principal // _password --> Secret of the service principal _account = new AzureAccount() { Type = AzureAccount.AccountType.ServicePrincipal }; diff --git a/src/Accounts/Authentication.Test/Mocks/MockDataStore.cs b/src/Accounts/Authentication.Test/Mocks/MockDataStore.cs index dc50edc336c0..ea3d64a81cc1 100644 --- a/src/Accounts/Authentication.Test/Mocks/MockDataStore.cs +++ b/src/Accounts/Authentication.Test/Mocks/MockDataStore.cs @@ -297,7 +297,7 @@ public void RemoveCertificate(string thumbprint) /// Converts unix asterisk based file pattern to regex /// /// Asterisk based pattern - /// Regeular expression of null is empty + /// Regular expression of null is empty private static string WildcardToRegex(string wildcard) { if (wildcard == null || wildcard == "") return wildcard; diff --git a/src/Accounts/Authentication/Authentication/IAuthenticator.cs b/src/Accounts/Authentication/Authentication/IAuthenticator.cs index be631b53424e..2462186735cb 100644 --- a/src/Accounts/Authentication/Authentication/IAuthenticator.cs +++ b/src/Accounts/Authentication/Authentication/IAuthenticator.cs @@ -69,7 +69,7 @@ public interface IAuthenticator bool TryAuthenticate(AuthenticationParameters parameters, CancellationToken cancellationToken, out Task token); /// - /// Get authentication recrod for telemetry + /// Get authentication record for telemetry /// AuthTelemetryRecord GetDataForTelemetry(); } diff --git a/src/Accounts/Authentication/Authentication/IClaimsChallengeProcessor.cs b/src/Accounts/Authentication/Authentication/IClaimsChallengeProcessor.cs index b331fd9dfeb2..635adffb5a47 100644 --- a/src/Accounts/Authentication/Authentication/IClaimsChallengeProcessor.cs +++ b/src/Accounts/Authentication/Authentication/IClaimsChallengeProcessor.cs @@ -19,16 +19,16 @@ namespace Microsoft.Azure.Commands.Common.Authentication { /// - /// Processor to handle claims changllenge + /// Processor to handle claims challenge /// public interface IClaimsChallengeProcessor { /// - /// Handle the clamin challenge + /// Handle the claims challenge /// /// The origin request that responds with a claim challenge /// Claims challenge string - /// Cancelation token + /// Cancellation token /// Successful or not ValueTask OnClaimsChallenageAsync(HttpRequestMessage request, string claimsChallenge, CancellationToken cancellationToken); } diff --git a/src/Accounts/Authentication/Authentication/TokenCache/PowerShellTokenCacheProvider.cs b/src/Accounts/Authentication/Authentication/TokenCache/PowerShellTokenCacheProvider.cs index 1717a80cc644..32fc3486320a 100644 --- a/src/Accounts/Authentication/Authentication/TokenCache/PowerShellTokenCacheProvider.cs +++ b/src/Accounts/Authentication/Authentication/TokenCache/PowerShellTokenCacheProvider.cs @@ -36,7 +36,7 @@ namespace Microsoft.Azure.Commands.Common.Authentication public abstract class PowerShellTokenCacheProvider { public const string PowerShellTokenCacheProviderKey = "PowerShellTokenCacheProviderKey"; - //Reanme CommonTenant to OrganizationTenant with reference to + //Rename CommonTenant to OrganizationTenant with reference to //https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.client.abstractapplicationbuilder-1.withauthority?view=msal-dotnet-latest#microsoft-identity-client-abstractapplicationbuilder-1-withauthority(system-string-system-boolean //From MSAL, we shall always use "organizations" for both work and school and MSA accounts private const string organizationTenant = "organizations"; diff --git a/src/Accounts/Authentication/AzureSessionInitializer.cs b/src/Accounts/Authentication/AzureSessionInitializer.cs index 70fb77409ce2..83ad97e73419 100644 --- a/src/Accounts/Authentication/AzureSessionInitializer.cs +++ b/src/Accounts/Authentication/AzureSessionInitializer.cs @@ -410,7 +410,7 @@ private void WriteToTraceListeners(string message) } catch { - // ignroe any exception + // ignore any exception } } } diff --git a/src/Accounts/Authentication/ClaimsChallengeHandler.cs b/src/Accounts/Authentication/ClaimsChallengeHandler.cs index fea07455f112..5f2c93d3150d 100644 --- a/src/Accounts/Authentication/ClaimsChallengeHandler.cs +++ b/src/Accounts/Authentication/ClaimsChallengeHandler.cs @@ -60,7 +60,7 @@ public virtual object Clone() /// /// This implementation handles common authentication challenges such as claims challenges. Service client libraries may derive from this and extend to handle service specific authentication challenges. /// The HttpMessage to be authenticated. - /// Cancelation token + /// Cancellation token /// /// A boolean indicated whether the request should be retried protected virtual async Task OnChallengeAsync(HttpRequestMessage requestMessage, HttpResponseMessage responseMessage, CancellationToken cancellationToken) diff --git a/src/Accounts/Authentication/Config/Helper/AppliesToHelper.cs b/src/Accounts/Authentication/Config/Helper/AppliesToHelper.cs index b336d19076ff..c4ae31258225 100644 --- a/src/Accounts/Authentication/Config/Helper/AppliesToHelper.cs +++ b/src/Accounts/Authentication/Config/Helper/AppliesToHelper.cs @@ -60,7 +60,7 @@ public static bool TryParseAppliesTo(string text, out AppliesTo appliesTo) /// Gets a comma-divided string for human-readable description of the AppliesTo options. /// /// Options of AppliesTo. - /// The formated string. + /// The formatted string. internal static string FormatOptions(IReadOnlyCollection options) { if (options == null || !options.Any()) diff --git a/src/Accounts/Authentication/ContextAutosaveSettings.cs b/src/Accounts/Authentication/ContextAutosaveSettings.cs index 5eff56bce711..a05fd279ec80 100644 --- a/src/Accounts/Authentication/ContextAutosaveSettings.cs +++ b/src/Accounts/Authentication/ContextAutosaveSettings.cs @@ -37,7 +37,7 @@ public class ContextAutosaveSettings : IExtensibleSettings public string ContextDirectory { get; set; } /// - /// Fiel name for the context file + /// File name for the context file /// public string ContextFile { get; set; } diff --git a/src/Accounts/Authentication/Extensions/ServiceClientExtension.cs b/src/Accounts/Authentication/Extensions/ServiceClientExtension.cs index 013b4b323129..f26fd38dcd33 100644 --- a/src/Accounts/Authentication/Extensions/ServiceClientExtension.cs +++ b/src/Accounts/Authentication/Extensions/ServiceClientExtension.cs @@ -82,7 +82,7 @@ private static bool SetMaxTimesForRetryAfterHandler(this Microsoft.Rest /// /// Set max retry times of retry after handler that is used to handle the response with retry-after header - /// from environement variable AZURE_PS_HTTP_MAX_RETRIES_FOR_429 + /// from environment variable AZURE_PS_HTTP_MAX_RETRIES_FOR_429 /// /// Whether succeed to set max retry times or not public static bool TrySetMaxTimesForRetryAfterHandler(this Microsoft.Rest.ServiceClient serviceClient) where TClient : Microsoft.Rest.ServiceClient @@ -96,7 +96,7 @@ public static bool TrySetMaxTimesForRetryAfterHandler(this Microsoft.Re } /// - /// Set retry count of retry policy using ExponentialBackoffRetryStrategy from environement variable AZURE_PS_HTTP_MAX_RETRIES + /// Set retry count of retry policy using ExponentialBackoffRetryStrategy from environment variable AZURE_PS_HTTP_MAX_RETRIES /// /// Whether succeed to set retry count or not public static bool TrySetRetryCountofRetryPolicy(this Microsoft.Rest.ServiceClient serviceClient) where TClient : Microsoft.Rest.ServiceClient diff --git a/src/Accounts/Authentication/Factories/CancelRetryHandler.cs b/src/Accounts/Authentication/Factories/CancelRetryHandler.cs index eb5e54c61645..60b61b4ffbf1 100644 --- a/src/Accounts/Authentication/Factories/CancelRetryHandler.cs +++ b/src/Accounts/Authentication/Factories/CancelRetryHandler.cs @@ -21,7 +21,7 @@ namespace Microsoft.Azure.Commands.Common.Authentication.Factories { /// - /// Class to enable automatic retry of TaskCanceledExsceptions. + /// Class to enable automatic retry of TaskCanceledExceptions. /// Note that this follows the calling pattern in PowerShell, which does not pass cancellation tokens from /// the base cmdlet /// diff --git a/src/Accounts/Authentication/Factories/ClientFactory.cs b/src/Accounts/Authentication/Factories/ClientFactory.cs index a159a14e7f05..fa114f29e322 100644 --- a/src/Accounts/Authentication/Factories/ClientFactory.cs +++ b/src/Accounts/Authentication/Factories/ClientFactory.cs @@ -384,7 +384,7 @@ public void RemoveHandler(Type handlerType) } /// - /// AddUserAgent is method from ClientFactory singleten. When user terminate cmdlet execution on Console, the module name in + /// AddUserAgent is method from ClientFactory singleton. When user terminate cmdlet execution on Console, the module name in /// useragent cannot be removed. It leads multiple module names in useragent if user execute cmdlet of another module after /// previous terminated cmdlet. The solution here is to share the same key to all modules which name leads "Az.". It is not accurate /// but can cover the majority of cases. diff --git a/src/Accounts/Authentication/HttpClientOperationsFactory.cs b/src/Accounts/Authentication/HttpClientOperationsFactory.cs index 97290a9cbd3a..10fc502a788e 100644 --- a/src/Accounts/Authentication/HttpClientOperationsFactory.cs +++ b/src/Accounts/Authentication/HttpClientOperationsFactory.cs @@ -118,7 +118,7 @@ public IHttpOperations WithHeader(string name, IEnumerable value) } /// - /// Invalidate a cache value due to an event (for example, the cache value was aritten) + /// Invalidate a cache value due to an event (for example, the cache value was written) /// /// The uri of the entity to cache protected virtual void InvalidateCache(string requestUri) diff --git a/src/Accounts/Authentication/KeyStore/AzKeyStore.cs b/src/Accounts/Authentication/KeyStore/AzKeyStore.cs index 6d878ec8caec..7e305224f7c5 100644 --- a/src/Accounts/Authentication/KeyStore/AzKeyStore.cs +++ b/src/Accounts/Authentication/KeyStore/AzKeyStore.cs @@ -97,9 +97,9 @@ public virtual bool RemoveSecureString(IKeyStoreKey key) return InMemoryKeyCache.DeleteKey(key); } - /* Case1: enable --> disable; The methold just unbind the StorageHelper, no influence to InMemoryKeyCache. - * Case2: disable (not enabled before) --> enable; The methold will have the storage data loaded before any access to InMemoryKeyCache; - * InMemoryKeyCache data during the time of disabling will be discarded, which is consistant with the behaviour before AzKeyStore. + /* Case1: enable --> disable; The method just unbind the StorageHelper, no influence to InMemoryKeyCache. + * Case2: disable (not enabled before) --> enable; The method will have the storage data loaded before any access to InMemoryKeyCache; + * InMemoryKeyCache data during the time of disabling will be discarded, which is consistent with the behaviour before AzKeyStore. * Case3: disable (enabled before) --> enable; The data from storage is already loaded and won't be loaded again. * Both storage data and InMemoryKeyCache data can be preserved. */ diff --git a/src/Accounts/Authentication/Models/MemoryDataStore.cs b/src/Accounts/Authentication/Models/MemoryDataStore.cs index 8bb039415477..fa8421c7c568 100644 --- a/src/Accounts/Authentication/Models/MemoryDataStore.cs +++ b/src/Accounts/Authentication/Models/MemoryDataStore.cs @@ -296,7 +296,7 @@ public void RemoveCertificate(string thumbprint) /// Converts unix asterisk based file pattern to regex /// /// Asterisk based pattern - /// Regeular expression of null is empty + /// Regular expression of null is empty private static string WildcardToRegex(string wildcard) { if (wildcard == null || wildcard == "") return wildcard; diff --git a/src/Accounts/Authentication/Sanitizer/Providers/SanitizerProviderBase.cs b/src/Accounts/Authentication/Sanitizer/Providers/SanitizerProviderBase.cs index 6a9b39a18841..223a6dc2a052 100644 --- a/src/Accounts/Authentication/Sanitizer/Providers/SanitizerProviderBase.cs +++ b/src/Accounts/Authentication/Sanitizer/Providers/SanitizerProviderBase.cs @@ -66,7 +66,7 @@ protected bool ShouldProcessProperty(SanitizerProperty property, SanitizerTeleme } telemetry.HasErrorInDetection = true; - telemetry.DetectionError = new Exception($"Potential stack overflow exception may occurr on property: '{property.PropertyName}' declared in the object '{property.ValueSupplier.DeclaringType.FullName}' with type '{property.PropertyType.FullName}'"); + telemetry.DetectionError = new Exception($"Potential stack overflow exception may occur on property: '{property.PropertyName}' declared in the object '{property.ValueSupplier.DeclaringType.FullName}' with type '{property.PropertyType.FullName}'"); return false; } diff --git a/src/Accounts/Authentication/Utilities/IHttpRetryAlgorithm.cs b/src/Accounts/Authentication/Utilities/IHttpRetryAlgorithm.cs index 92e79307084f..5289617a5892 100644 --- a/src/Accounts/Authentication/Utilities/IHttpRetryAlgorithm.cs +++ b/src/Accounts/Authentication/Utilities/IHttpRetryAlgorithm.cs @@ -36,7 +36,7 @@ public interface IHttpRetryAlgorithm /// /// Wait for the appropriate retry interval /// - /// A Task that dealys for the appropriate interval + /// A Task that delays for the appropriate interval Task WaitForRetry(); } } diff --git a/src/Accounts/Authentication/Utilities/PSNamingUtilities.cs b/src/Accounts/Authentication/Utilities/PSNamingUtilities.cs index e4136f753937..91f69f9d4ed5 100644 --- a/src/Accounts/Authentication/Utilities/PSNamingUtilities.cs +++ b/src/Accounts/Authentication/Utilities/PSNamingUtilities.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.Common.Authentication.Utilities /// Utility class about PowerShell naming (cmdlet name, module name). /// /// - /// All the mothods are within Azure PowerShell context, for example, module name should start with "Az.". + /// All the methods are within Azure PowerShell context, for example, module name should start with "Az.". /// public static class PSNamingUtilities { diff --git a/src/Accounts/AuthenticationAssemblyLoadContext/README.MD b/src/Accounts/AuthenticationAssemblyLoadContext/README.MD index c6aebbcfc3dc..93ddc5465e0f 100644 --- a/src/Accounts/AuthenticationAssemblyLoadContext/README.MD +++ b/src/Accounts/AuthenticationAssemblyLoadContext/README.MD @@ -1,10 +1,10 @@ # How to define AssemblyLoadContext for module -We'll use Compute module as example to explain how to define its own AssemlbyLoadContext. +We'll use Compute module as example to explain how to define its own AssemblyLoadContext. ## Create ALC Wrapper Project -Create one ALC wrapper project named Compute.AlcWrapper.csproj which wraps the usaged of Azure.Storage.Blobs +Create one ALC wrapper project named Compute.AlcWrapper.csproj which wraps the usage of Azure.Storage.Blobs ```xml @@ -46,7 +46,7 @@ As Compute.csproj project must not reference to storage SDK, the types of parame public PSBlobDownloadInfo DownloadBlob() { - //TODO: Please repalce with your real account + //TODO: Please replace with your real account BlobClient client = new BlobClient("", "", ""); BlobDownloadInfo info = client.Download().Value; return new PSBlobDownloadInfo(info); diff --git a/src/Accounts/Authenticators/AuthenticationHelpers.cs b/src/Accounts/Authenticators/AuthenticationHelpers.cs index a02b536e6c19..e2cbdaf8e7c8 100644 --- a/src/Accounts/Authenticators/AuthenticationHelpers.cs +++ b/src/Accounts/Authenticators/AuthenticationHelpers.cs @@ -27,7 +27,7 @@ internal static class AuthenticationHelpers /// /// The Azure environment /// The tenant Id - /// The authrotity string, from the AAD endpoint and tenant ID + /// The authority string, from the AAD endpoint and tenant ID internal static string GetAuthority(IAzureEnvironment environment, string tenant) { var tenantString = tenant ?? environment?.AdTenant ?? "organizations";