Skip to content

Commit 46774fc

Browse files
committed
[Insights] Fixing invalid name of a parameter: New-AzureRmActivityLogAlertCondition
1 parent 774a9eb commit 46774fc

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/ResourceManager/Insights/Commands.Insights.Test/ActivityLogAlerts/NewAzureRmActivityLogAlertConditionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public NewAzureRmActivityLogAlertConditionTests(Xunit.Abstractions.ITestOutputHe
4141
public void NewAzureRmActivityLogAlertConditionCommandParametersProcessing()
4242
{
4343
Cmdlet.Field = "field1";
44-
Cmdlet.Equals = "equals1";
44+
Cmdlet.Equal = "equals1";
4545
Cmdlet.ExecuteCmdlet();
4646
}
4747
}

src/ResourceManager/Insights/Commands.Insights.Test/ScenarioTests/ActivityLogAlertsTests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ function Test-SetGetListUpdateRemoveActivityLogAlert
2828
try
2929
{
3030
Write-Verbose " ****** Creating a new LeafCondition object"
31-
$condition1 = New-AzureRmActivityLogAlertCondition -Field 'field1' -Equals 'equals1'
31+
$condition1 = New-AzureRmActivityLogAlertCondition -Field 'field1' -Equal 'equals1'
3232

3333
Assert-NotNull $condition1
3434
Assert-AreEqual 'field1' $condition1.Field
3535
Assert-AreEqual 'equals1' $condition1.Equals
3636

37-
$condition2 = New-AzureRmActivityLogAlertCondition -Field 'field2' -Equals 'equals2'
37+
$condition2 = New-AzureRmActivityLogAlertCondition -Field 'field2' -Equal 'equals2'
3838

3939
Assert-NotNull $condition1
4040
Assert-AreEqual 'field1' $condition1.Field

src/ResourceManager/Insights/Commands.Insights/ActivityLogAlert/NewAzureRmActivityLogAlertConditionCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class NewAzureRmActivityLogAlertConditionCommand : AzureRMCmdlet
3838
/// </summary>
3939
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The equals field of the leaf condition")]
4040
[ValidateNotNullOrEmpty]
41-
public new string Equals { get; set; }
41+
public string Equal { get; set; }
4242

4343
#endregion
4444

@@ -50,7 +50,7 @@ public override void ExecuteCmdlet()
5050
WriteObject(
5151
new ActivityLogAlertLeafCondition(
5252
field: this.Field,
53-
equals: this.Equals));
53+
equals: this.Equal));
5454
}
5555
}
5656
}

src/ResourceManager/Insights/Commands.Insights/help/New-AzureRmActivityLogAlertCondition.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Creates an new activity log alert condition object in memory.
1313
## SYNTAX
1414

1515
```
16-
New-AzureRmActivityLogAlertCondition -Field <String> -Equals <String> [<CommonParameters>]
16+
New-AzureRmActivityLogAlertCondition -Field <String> -Equal <String> [<CommonParameters>]
1717
```
1818

1919
## DESCRIPTION
@@ -23,7 +23,7 @@ The **New-AzureRmActivityLogAlertCondition** cmdlet creates new activity log ale
2323

2424
### Example 1: Create a new activity log alert condition object in memory.
2525
```
26-
PS C:\>$condition = New-AzureRmActivityLogAlertCondition -Field "Requests" -Equals "OtherField"
26+
PS C:\>$condition = New-AzureRmActivityLogAlertCondition -Field "Requests" -Equal "OtherField"
2727
```
2828

2929
This command creates a new activity log alert condition object in memory.
@@ -45,7 +45,7 @@ Accept pipeline input: True (ByPropertyName)
4545
Accept wildcard characters: False
4646
```
4747
48-
### -Equals
48+
### -Equal
4949
Specifies the equals property for the leaf condition.
5050
5151
```yaml

0 commit comments

Comments
 (0)