Skip to content

Spelling Fixes #28058

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 30, 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 @@ -22,12 +22,12 @@ Create an in-memory object for WebhookNotification.

## EXAMPLES

### Example 1: Create webhook nofitication object
### Example 1: Create webhook notification object
```powershell
New-AzAutoscaleWebhookNotificationObject -Property @{} -ServiceUri "http://myservice.com"
```

Create webhook nofitication object
Create webhook notification object

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
### Example 1: Create webhook nofitication object
### Example 1: Create webhook notification object
```powershell
New-AzAutoscaleWebhookNotificationObject -Property @{} -ServiceUri "http://myservice.com"
```

Create webhook nofitication object
Create webhook notification object

Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ Tag : {
Type : Microsoft.Insights/dataCollectionEndpoints
```

This command creates the endpiont with given values.
This command creates the endpoint with given values.

### Example 2: Create enpoint with json file
### Example 2: Create endpoint with json file
```powershell
New-AzDataCollectionEndpoint -Name myCollectionEndpoint2 -ResourceGroupName AMCS-TEST -JsonFilePath .\test\jsonfile\endpointTest1.json
# Note: content of .\test\jsonfile\endpointTest1.json
Expand Down Expand Up @@ -128,7 +128,7 @@ Tag : {
Type : Microsoft.Insights/dataCollectionEndpoints
```

This command creates enpoint with given json file path.
This command creates endpoint with given json file path.

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ Tag : {
Type : Microsoft.Insights/dataCollectionEndpoints
```

This command creates the endpiont with given values.
This command creates the endpoint with given values.

### Example 2: Create enpoint with json file
### Example 2: Create endpoint with json file
```powershell
New-AzDataCollectionEndpoint -Name myCollectionEndpoint2 -ResourceGroupName AMCS-TEST -JsonFilePath .\test\jsonfile\endpointTest1.json
# Note: content of .\test\jsonfile\endpointTest1.json
Expand Down Expand Up @@ -89,4 +89,4 @@ Tag : {
Type : Microsoft.Insights/dataCollectionEndpoints
```

This command creates enpoint with given json file path.
This command creates endpoint with given json file path.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public GetAzureRmMetricDefinitionTests(Xunit.Abstractions.ITestOutputHelper outp
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void GetMetricDefinitionsCommandParametersProcessing()
{
// Testting defaults and required parameters
// Testing defaults and required parameters
cmdlet.ResourceId = Utilities.ResourceUri;

cmdlet.ExecuteCmdlet();
Expand Down
2 changes: 1 addition & 1 deletion src/Monitor/Monitor.Test/Metrics/GetAzureRmMetricTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public GetAzureRmMetricTests(Xunit.Abstractions.ITestOutputHelper output)
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void GetMetricsCommandParametersProcessing()
{
// Testting defaults and required parameters
// Testing defaults and required parameters
cmdlet.ResourceId = Utilities.ResourceUri;

cmdlet.ExecuteCmdlet();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function Test-GetAzureLogAllParameters

try
{
Write-Verbose " ****** Get ActivityLog records by corrrelationId "
Write-Verbose " ****** Get ActivityLog records by correlationId "
$actual = Get-AzActivityLog -CorrelationId $correlation -starttime 2015-03-02T18:00:00Z -endtime 2015-03-02T20:00:00Z -detailedOutput

# Assert TODO add more asserts
Expand Down
2 changes: 1 addition & 1 deletion src/Monitor/Monitor.Test/ScenarioTests/AlertsTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ function Test-DisableAzureRmMetricAlertRuleV2WithActionGroups

<#
.SYNOPSIS
Tests adding a GenV2 dyanmic metric alert rule.
Tests adding a GenV2 dynamic metric alert rule.
#>
function Test-AddAzureRmMetricAlertRuleV2-DynamicThreshold
{
Expand Down
4 changes: 2 additions & 2 deletions src/Monitor/Monitor.Test/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public static List<EventData> CreateListOfFakeEvents(int numEvents = 1)

public static AzureOperationResponse<IPage<EventData>> InitializeResponse(int numRecords = 10)
{
// 200 is the default page lenght of the backend, but these are tests -> using 10 as page length
// 200 is the default page length of the backend, but these are tests -> using 10 as page length
if (numRecords < 10)
{
return InitializeFinalResponse(numRecords);
Expand Down Expand Up @@ -408,7 +408,7 @@ public static void ExecuteVerifications(ManagementCmdletBase cmdlet, string expe
Assert.Equal(expectedResourceGroup, resourceGroup);
// Assert.Equal(ResourceUri, nameOrTargetUri);

// Calling with Detailed ouput and resourceuri
// Calling with Detailed output and resourceuri
VerifyDetailedOutput(cmdlet: typedCmdlet, expectedResourceGroup: expectedResourceGroup, resourceGroup: ref resourceGroup, nameOrTargetUri: ref nameOrTargetUri);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ protected override void ProcessRecordInternal()
}

/// <summary>
/// When overriden by a descendant class this method creates the set of parameters for the call to the sdk
/// When overridden by a descendant class this method creates the set of parameters for the call to the sdk
/// </summary>
/// <returns>The set of parameters for the call to the sdk</returns>
protected abstract AlertRuleResource CreateSdkCallParameters();
Expand Down
4 changes: 2 additions & 2 deletions src/Monitor/Monitor/Alerts/GetAzureRmAlertHistoryCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected override TimeSpan GetDefaultQueryTimeRange()
/// A predicate to filter in/out the records from original list of records obtained from the SDK.
/// <para>This method is intended to allow descendants of this class to further filter the results.</para>
/// <para>An example of this is when the filtering is needed based on EventSource and ResourceUri at the same time.
/// The SDK does not allow these two fields to be in the query filter togheter. So the call should filter by one and then use this function to filter by the second one.</para>
/// The SDK does not allow these two fields to be in the query filter together. So the call should filter by one and then use this function to filter by the second one.</para>
/// </summary>
/// <param name="record">A record from the original list of records obtained from the sdk</param>
/// <returns>true if the record should kept in the result, false if it should be filtered out</returns>
Expand All @@ -65,7 +65,7 @@ protected override bool KeepTheRecord(EventData record)

/// <summary>
/// Processes the particular parameters if this cmdlet.
/// <para>In this case it adds the condition for eventSource to be of a particular value in order to retrive only alert-related events</para>
/// <para>In this case it adds the condition for eventSource to be of a particular value in order to retrieve only alert-related events</para>
/// </summary>
/// <param name="currentQueryFilter">The current query filter</param>
/// <returns>Modified query filter including the condition for eventSource</returns>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class GetAzureRmAutoscaleHistoryCommand : LogsCmdletBase
/// <summary>
/// Gets or sets the ResourceId (Uri) parameter of the cmdlet
/// </summary>
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The resouceId (Uri) name of the query")]
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The resourceId (Uri) name of the query")]
[ValidateNotNullOrEmpty]
public string ResourceId { get; set; }

Expand All @@ -54,7 +54,7 @@ protected override TimeSpan GetDefaultQueryTimeRange()
/// A predicate to filter in/out the records from original list of records obtained from the SDK.
/// <para>This method is intended to allow descendants of this class to further filter the results.</para>
/// <para>An example of this is when the filtering is needed based on EventSource and ResourceUri at the same time.
/// The SDK does not allow these two fields to be in the query filter togheter. So the call should filter by one and then use this function to filter by the second one.</para>
/// The SDK does not allow these two fields to be in the query filter together. So the call should filter by one and then use this function to filter by the second one.</para>
/// </summary>
/// <param name="record">A record from the original list of records obtained from the sdk</param>
/// <returns>true if the record should kept in the result, false if it should be filtered out</returns>
Expand All @@ -65,7 +65,7 @@ protected override bool KeepTheRecord(EventData record)

/// <summary>
/// Processes the particular parameters if this cmdlet.
/// <para>In this case it adds the condition for eventSource to be of a particular value in order to retrive only autoscale-related events</para>
/// <para>In this case it adds the condition for eventSource to be of a particular value in order to retrieve only autoscale-related events</para>
/// </summary>
/// <param name="currentQueryFilter">The current query filter</param>
/// <returns>Modified query filter including the condition for eventSource</returns>
Expand Down
10 changes: 5 additions & 5 deletions src/Monitor/Monitor/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
- `New-AzMetricAlertRuleV2Criteria`: an option to create webtest availability criteria was added
- `Add-AzMetricAlertRuleV2`: supports the new webtest availability criteria
* Removed redundant definition for RetentionPolicy in PSLogProfile [#7608]
* Removed redundant properties difined in PSEventData [#11353]
* Removed redundant properties defined in PSEventData [#11353]
* Renamed `Get-AzLog` to `Get-AzActivityLog`

## Version 1.7.0
Expand All @@ -256,7 +256,7 @@
## Version 1.6.0
* Fixed description of the Get-AzLog cmdlet.
* A new parameter called ActionGroupId was added to `New-AzMetricAlertRuleV2` command.
- The user can provide either ActionGroupId(string) or ActionGorup(ActivityLogAlertActionGroup).
- The user can provide either ActionGroupId(string) or ActionGroup(ActivityLogAlertActionGroup).

## Version 1.5.0
* Update references in .psd1 to use relative path
Expand All @@ -271,7 +271,7 @@
-LogicAppReceiver
-AutomationRunbookReceiver
-AzureAppPushReceiver
* Use common alert schema enabled for the receivers. This is not applicable for SMS, Azure App push , ITSM and Voice recievers
* Use common alert schema enabled for the receivers. This is not applicable for SMS, Azure App push , ITSM and Voice receivers
* Webhooks now supports Azure active directory authentication .

## Version 1.3.0
Expand All @@ -282,10 +282,10 @@
- The order of the arguments for the constructor of the class **Source** (related to the **ScheduledQueryRuleSource** class) changed from the previous SDK. This change required two unit tests to the be fixed: they compiled, but failed to pass the tests.
- The order of the arguments for the constructor of the class **AlertingAction** (related to the **ScheduledQueryRuleSource** class) changed from the previous SDK. This change required two unit tests to the be fixed: they compiled, but failed to pass the tests.
* Support Dynamic Threshold criteria for metric alert V2
- New-AzMetricAlertRuleV2Criteria: now creats dynamic threshold criteria also
- New-AzMetricAlertRuleV2Criteria: now creates dynamic threshold criteria also
- Add-AzMetricAlertRuleV2: now accept dynamic threshold criteria also
* Improvements in Scheduled Query Rule cmdlets (SQR)
- Cmdlets will accept `Location` paramater in both formats, either the location (e.g. eastus) or the location display name (e.g. East US)
- Cmdlets will accept `Location` parameter in both formats, either the location (e.g. eastus) or the location display name (e.g. East US)
- Illustrated `Enabled` parameter in help files properly
- Added examples for `ActionGroup` optional parameter
- Overall improved help files
Expand Down
6 changes: 3 additions & 3 deletions src/Monitor/Monitor/LogsCmdletBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ protected virtual void SetMaxEventsIfPresent(string currentQueryFilter, int valu
}

/// <summary>
/// Validates that the range of dates (start / end) makes sense, it is not to great (less 15 days), and adds the defaul values if needed
/// Validates that the range of dates (start / end) makes sense, it is not to great (less 15 days), and adds the default values if needed
/// </summary>
/// <returns>A query filter string with the time conditions</returns>
private string ValidateDateTimeRangeAndAddDefaults()
Expand Down Expand Up @@ -181,13 +181,13 @@ protected string ProcessParameters()
/// A predicate to filter in/out the records from original list of records obtained from the SDK.
/// <para>This method is intended to allow descendants of this class to further filter the results.</para>
/// <para>An example of this is when the filtering is needed based on Category and ResourceUri at the same time.
/// The SDK does not allow these two fields to be in the query filter togheter. So the call should filter by one and then use this function to filter by the second one.</para>
/// The SDK does not allow these two fields to be in the query filter together. So the call should filter by one and then use this function to filter by the second one.</para>
/// </summary>
/// <param name="record">A record from the original list of records obtained from the sdk</param>
/// <returns>true if the record should kept in the result, false if it should be filtered out</returns>
protected virtual bool KeepTheRecord(EventData record)
{
// Do not filter in this funtion, use a filter in the descendants only
// Do not filter in this function, use a filter in the descendants only
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected override void ProcessRecordInternal()

bool fullDetails = this.DetailedOutput.IsPresent;

// Get metricDefintions and filter the response to return metricDefinitions for only the specified metric names
// Get metricDefinitions and filter the response to return metricDefinitions for only the specified metric names
var records = this.MonitorManagementClient.MetricDefinitions.List(resourceUri: this.ResourceId, metricnamespace: this.MetricNamespace);

if (this.MetricName != null && this.MetricName.Count() > 0)
Expand Down
2 changes: 1 addition & 1 deletion src/Monitor/Monitor/OutputClasses/IPSRuleCondition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
namespace Microsoft.Azure.Commands.Insights.OutputClasses
{
/// <summary>
/// Wrapps around the RuleCondition and exposes all the localized strings as invariant/localized properties
/// Wraps around the RuleCondition and exposes all the localized strings as invariant/localized properties
/// <para>It is an empty interface to allow for different types of outputs for the cmdlets, i.e. all the specific output types will implement this interface and the base cmdlet always returns lists of this type.</para>
/// </summary>
public interface IPSRuleCondition
Expand Down
18 changes: 9 additions & 9 deletions src/Monitor/Monitor/OutputClasses/PSActionGroupProperty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,47 +47,47 @@ public class PSActionGroupProperty : PSManagementPropertyDescriptor
public IList<PSSmsReceiver> SmsReceivers { get; set; }

/// <summary>
/// Gets or sets the list of webhook receviers.
/// Gets or sets the list of webhook receivers.
/// </summary>
public IList<PSWebhookReceiver> WebhookReceivers { get; set; }

/// <summary>
/// Gets or sets the list of event hub receviers.
/// Gets or sets the list of event hub receivers.
/// </summary>
public IList<PSEventHubReceiver> EventHubReceivers { get; set; }

/// <summary>
/// Gets or sets the list of itsm receviers.
/// Gets or sets the list of itsm receivers.
/// </summary>
public IList<PSItsmReceiver> ItsmReceivers { get; set; }

/// <summary>
/// Gets or sets the list of voice receviers.
/// Gets or sets the list of voice receivers.
/// </summary>
public IList<PSVoiceReceiver> VoiceReceivers { get; set; }

/// <summary>
/// Gets or sets the list of armrole receviers.
/// Gets or sets the list of armrole receivers.
/// </summary>
public IList<PSArmRoleReceiver> ArmRoleReceivers { get; set; }

/// <summary>
/// Gets or sets the list of azure function receviers.
/// Gets or sets the list of azure function receivers.
/// </summary>
public IList<PSAzureFunctionReceiver> AzureFunctionReceivers { get; set; }

/// <summary>
/// Gets or sets the list of logic app receviers.
/// Gets or sets the list of logic app receivers.
/// </summary>
public IList<PSLogicAppReceiver> LogicAppReceivers { get; set; }

/// <summary>
/// Gets or sets the list of automation runbook receviers.
/// Gets or sets the list of automation runbook receivers.
/// </summary>
public IList<PSAutomationRunbookReceiver> AutomationRunbookReceivers { get; set; }

/// <summary>
/// Gets or sets the list of azure app push receviers.
/// Gets or sets the list of azure app push receivers.
/// </summary>
public IList<PSAzureAppPushReceiver> AzureAppPushReceivers { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion src/Monitor/Monitor/OutputClasses/PSActionGroupResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class PSActionGroupResource : Resource

/// <summary>
/// Gets or sets indicates whether this action group is enabled. If an
/// action group is not enabled, then none of its receviers will
/// action group is not enabled, then none of its receivers will
/// receive communications.
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Monitor/Monitor/OutputClasses/PSAlertRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
namespace Microsoft.Azure.Commands.Insights.OutputClasses
{
/// <summary>
/// Wrapps around the RuleGetResponse
/// Wraps around the RuleGetResponse
/// </summary>
public class PSAlertRule : Management.Monitor.Management.Models.AlertRuleResource
{
Expand Down
2 changes: 1 addition & 1 deletion src/Monitor/Monitor/OutputClasses/PSAlertRuleNoDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
namespace Microsoft.Azure.Commands.Insights.OutputClasses
{
/// <summary>
/// Wrapps around the RuleGetResponse
/// Wraps around the RuleGetResponse
/// </summary>
public class PSAlertRuleNoDetails : PSAlertRule
{
Expand Down
2 changes: 1 addition & 1 deletion src/Monitor/Monitor/OutputClasses/PSAlertRuleResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
namespace Microsoft.Azure.Commands.Insights.OutputClasses
{
/// <summary>
/// Wrapps around the AlertRuleResource
/// Wraps around the AlertRuleResource
/// </summary>
public class PSAlertRuleResource : AlertRuleResource
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
namespace Microsoft.Azure.Commands.Insights.OutputClasses
{
/// <summary>
/// Wrapps around a list of AutoscaleProfile
/// Wraps around a list of AutoscaleProfile
/// </summary>
public class PSAutoscaleProfilesList : List<AutoscaleProfile>
{
Expand Down
2 changes: 1 addition & 1 deletion src/Monitor/Monitor/OutputClasses/PSAutoscaleSetting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
namespace Microsoft.Azure.Commands.Insights.OutputClasses
{
/// <summary>
/// Wrapps around the AutoscaleSettingGetResponse and AutoscaleSettingResource
/// Wraps around the AutoscaleSettingGetResponse and AutoscaleSettingResource
/// </summary>
public class PSAutoscaleSetting : Management.Monitor.Management.Models.AutoscaleSettingResource
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
namespace Microsoft.Azure.Commands.Insights.OutputClasses
{
/// <summary>
/// Wrapps around the AutoscaleSettingGetResponse and AutoscaleSettingResource
/// Wraps around the AutoscaleSettingGetResponse and AutoscaleSettingResource
/// </summary>
public sealed class PSAutoscaleSettingNoDetails : PSAutoscaleSetting
{
Expand Down
2 changes: 1 addition & 1 deletion src/Monitor/Monitor/OutputClasses/PSDictionaryElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
namespace Microsoft.Azure.Commands.Insights.OutputClasses
{
/// <summary>
/// Wrapps around the IDictionary to provide a better output format for the PS command lets.
/// Wraps around the IDictionary to provide a better output format for the PS command lets.
/// </summary>
public class PSDictionaryElement
{
Expand Down
Loading