Skip to content

Spelling Fixes #27960

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
Jun 14, 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
4 changes: 2 additions & 2 deletions src/Accounts/Accounts.Test/AzureRMProfileTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ private static RMProfileClient SetupTestEnvironment(List<string> tenants, List<s
{
MockSubscriptionClientFactory.SubGetQueueVerLatest.Enqueue(() =>
{
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.");
});
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Accounts/Accounts.Test/ConnectAzAccountScenarioTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down Expand Up @@ -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)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Accounts/Accounts.Test/DefaultCmdletTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Accounts/Accounts.Test/Mocks/MockDataStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public void RemoveCertificate(string thumbprint)
/// Converts unix asterisk based file pattern to regex
/// </summary>
/// <param name="wildcard">Asterisk based pattern</param>
/// <returns>Regeular expression of null is empty</returns>
/// <returns>Regular expression of null is empty</returns>
private static string WildcardToRegex(string wildcard)
{
if (wildcard == null || wildcard == "") return wildcard;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private ISubscriptionsOperations GetSubscriptionMock(List<Subscription> 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<Subscription>()
{
Expand Down
8 changes: 4 additions & 4 deletions src/Accounts/Accounts.Test/SubscriptionCmdletTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down Expand Up @@ -123,7 +123,7 @@ function Test-SetAzureRmContextWithoutSubscription

<#
.SYNOPSIS
Check whether tags works with subscripiton
Check whether tags works with subscription
.DESCRIPTION
SmokeTest
#>
Expand All @@ -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
#>
Expand All @@ -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
#>
Expand Down
6 changes: 3 additions & 3 deletions src/Accounts/Accounts/Account/ConnectAzureRmAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.")]
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
8 changes: 4 additions & 4 deletions src/Accounts/Accounts/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion src/Accounts/Accounts/CommonModule/AzModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/Accounts/Accounts/CommonModule/EnvironmentExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ internal static class EnvironmentExtensions
/// </summary>
/// <param name="environment">The current Azure Environment</param>
/// <param name="baseEndpoint">The Uri to transform</param>
/// <returns>The Uri, with naseUri appropriately altered for the current Azure environment</returns>
/// <returns>The Uri, with baseUri appropriately altered for the current Azure environment</returns>
public static Uri GetUriFromBaseRequestUri(this IAzureEnvironment environment, Uri baseEndpoint)
{
if (null == environment)
Expand Down Expand Up @@ -117,7 +117,7 @@ public static Uri GetUriFromBaseRequestUri(this IAzureEnvironment environment, U

////TODO: Update to support all data plane audience
/// <summary>
/// Determien the inteneded audience of a request
/// Determine the intended audience of a request
/// </summary>
/// <param name="environment">The environment to use as a source of audiences</param>
/// <param name="baseEndpoint">The Uri to try to find the audience for</param>
Expand Down Expand Up @@ -195,11 +195,11 @@ internal static Regex GetMatcher(this string baseProperty)
}

/// <summary>
/// Determines if the given Uri contaisn the given endpoint or endpoint suffix
/// Determines if the given Uri contains the given endpoint or endpoint suffix
/// </summary>
/// <param name="endpointOrSuffix">The endpoint or suffix to match</param>
/// <param name="compare">The Uri to compare to the given endpoint or suffix.</param>
/// <returns>True if the Uri matches the given endpoint or siffix, otherwise false</returns>
/// <returns>True if the Uri matches the given endpoint or suffix, otherwise false</returns>
internal static bool IsMatch(this string endpointOrSuffix, Uri compare)
{
var matcher = endpointOrSuffix.GetMatcher();
Expand Down
4 changes: 2 additions & 2 deletions src/Accounts/Accounts/CommonModule/EventData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace Microsoft.Azure.Commands.Common

/// <remarks>
/// 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.
/// </remarks>
[TypeConverter(typeof(EventDataConverter))]
Expand Down Expand Up @@ -66,7 +66,7 @@ public partial class EventData : EventArgs
///
/// Typically you'd cast this to the expected type to use it:
/// <code>
/// if(eventData.RequestMessgae is HttpRequestMessage httpRequest)
/// if(eventData.RequestMessage is HttpRequestMessage httpRequest)
/// {
/// httpRequest.Headers.Add("x-request-flavor", "vanilla");
/// }
Expand Down
8 changes: 4 additions & 4 deletions src/Accounts/Accounts/CommonModule/EventHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ namespace Microsoft.Azure.Commands.Common
using SignalDelegate = Func<string, CancellationToken, Func<EventArgs>, Task>;

/// <summary>
/// Internal helpers and extensaions for EventData manipulation
/// Internal helpers and extensions for EventData manipulation
/// </summary>
internal static class EventHelper
{
/// <summary>
/// Create a tracing event containing a string message
/// </summary>
/// <param name="message">The string message to include in event data</param>
/// <returns>Valid EventData containign the message</returns>
/// <returns>Valid EventData containing the message</returns>
public static EventData CreateLogEvent(string message)
{
return new EventData
Expand All @@ -45,7 +45,7 @@ public static EventData CreateLogEvent(string message)
/// Create a new debug message event
/// </summary>
/// <param name="message">The message</param>
/// <returns>An event cotnainng the debug message</returns>
/// <returns>An event containing the debug message</returns>
public static EventData CreateDebugEvent(string message)
{
return new EventData
Expand All @@ -59,7 +59,7 @@ public static EventData CreateDebugEvent(string message)
/// Create a new debug message event
/// </summary>
/// <param name="message">The message</param>
/// <returns>An event cotnainng the debug message</returns>
/// <returns>An event containing the debug message</returns>
public static EventData CreateWarningEvent(string message)
{
return new EventData
Expand Down
2 changes: 1 addition & 1 deletion src/Accounts/Accounts/CommonModule/Events.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public static class Events
public const string Validation = nameof(Validation);

/// <summary>
/// Event indicating a parameter validatio9n warning
/// Event indicating a parameter validation warning
/// </summary>
public const string ValidationWarning = nameof(ValidationWarning);

Expand Down
2 changes: 1 addition & 1 deletion src/Accounts/Accounts/CommonModule/IEventStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public interface IEventStore : IEnumerable<EventData>, IDisposable
/// Try to get the next event from the store
/// </summary>
/// <param name="data">The next event in the store</param>
/// <returns>True if there is an event remainign in the store, otherwise false</returns>
/// <returns>True if there is an event remaining in the store, otherwise false</returns>
bool TryGetEvent(out EventData data);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ internal static PSAzureServiceProfile Create( string name)
}

/// <summary>
/// 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
/// </summary>
/// <param name="name">The name of the profile</param>
/// <returns>A textual description of the given profile</returns>
Expand Down
2 changes: 1 addition & 1 deletion src/Accounts/Accounts/CommonModule/PSModuleExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
namespace Microsoft.Azure.Commands.Common
{
/// <summary>
/// Extnesion methods for PSCmdlet
/// Extension methods for PSCmdlet
/// </summary>
internal static class PSModuleExtensions
{
Expand Down
8 changes: 4 additions & 4 deletions src/Accounts/Accounts/CommonModule/TelemetryProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected TelemetryProvider(AzurePSDataCollectionProfile profile, MetricHelper h
/// <summary>
/// Create a Telemetry Provider using the given event listener
/// </summary>
/// <param name="listener">The event listenet</param>
/// <param name="listener">The event listener</param>
/// <returns>A telemetry provider that send data over the given event listener</returns>
public static TelemetryProvider Create(IEventListener listener)
{
Expand All @@ -80,7 +80,7 @@ public static TelemetryProvider Create(IEventListener listener)
/// <summary>
/// Factory method for TelemetryProvider
/// </summary>
/// <param name="warningLogger">A logger for warnign messages (conditionally used for data collection warning)</param>
/// <param name="warningLogger">A logger for warning messages (conditionally used for data collection warning)</param>
/// <param name="debugLogger">A logger for debugging traces</param>
/// <returns></returns>
public static TelemetryProvider Create(Action<string> warningLogger, Action<string> debugLogger)
Expand All @@ -91,7 +91,7 @@ public static TelemetryProvider Create(Action<string> warningLogger, Action<stri
}

/// <summary>
/// Create a telemtry provider, using the given profile settings and event store
/// Create a telemetry provider, using the given profile settings and event store
/// </summary>
/// <param name="collect">Whether ot not to collect data</param>
/// <param name="store">The store for events generated during telemetry</param>
Expand Down Expand Up @@ -131,7 +131,7 @@ public virtual void Flush()
}

/// <summary>
/// Create a telmetry record
/// Create a telemetry record
/// </summary>
/// <param name="invocationInfo"></param>
/// <param name="parameterSetName"></param>
Expand Down
2 changes: 1 addition & 1 deletion src/Accounts/Accounts/CommonModule/UniqueId.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class UniqueId
/// <summary>
/// Pipeline delegate to add a unique id header to an outgoing request
/// </summary>
/// <param name="request">The outgpoing request</param>
/// <param name="request">The outgoing request</param>
/// <param name="token">The cancellation token</param>
/// <param name="cancel">Additional cancellation action if the operation is cancelled</param>
/// <param name="signal">Signal delegate for logging events</param>
Expand Down
2 changes: 1 addition & 1 deletion src/Accounts/Accounts/CommonModule/UserAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public UserAgent(InvocationInfo invocation)
/// <summary>
/// Pipeline delegate to add a unique id header to an outgoing request
/// </summary>
/// <param name="request">The outgpoing request</param>
/// <param name="request">The outgoing request</param>
/// <param name="token">The cancellation token</param>
/// <param name="cancel">Additional cancellation action if the operation is cancelled</param>
/// <param name="signal">Signal delegate for logging events</param>
Expand Down
4 changes: 2 additions & 2 deletions src/Accounts/Accounts/Models/RMProfileClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public bool TrySetDefaultContext(string contextName)
/// </summary>
/// <param name="sourceContext">The name of the context to change</param>
/// <param name="targetContext">The enw name for the context</param>
/// <returns>true if the rename was successful, otherwise falkse</returns>
/// <returns>true if the rename was successful, otherwise false</returns>
public bool TryRenameContext(string sourceContext, string targetContext)
{
return _profile.TryRenameContext(sourceContext, targetContext);
Expand Down Expand Up @@ -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;
Expand Down
Loading