Skip to content

Commit 52e9b00

Browse files
authored
Added default parameter set for command Get-AzAlertRule (#16388)
* Added default parameter set for command Get-AzAlertRule * Fixed bug (#16356) Co-authored-by: Vincent Dai <[email protected]>
1 parent eec4df5 commit 52e9b00

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/Monitor/Monitor.sln

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Microsoft Visual Studio Solution File, Format Version 12.00
2-
# Visual Studio 15
3-
VisualStudioVersion = 15.0.27130.2027
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.0.31903.59
44
MinimumVisualStudioVersion = 10.0.40219.1
55
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Monitor", "Monitor\Monitor.csproj", "{DEA446A1-84E2-46CC-B780-EB4AFDE2460E}"
66
EndProject
@@ -44,6 +44,10 @@ Global
4444
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
4545
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
4646
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
47+
{6BD6B80A-06AF-4B5B-9230-69CCFC6C8D64}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
48+
{6BD6B80A-06AF-4B5B-9230-69CCFC6C8D64}.Debug|Any CPU.Build.0 = Debug|Any CPU
49+
{6BD6B80A-06AF-4B5B-9230-69CCFC6C8D64}.Release|Any CPU.ActiveCfg = Release|Any CPU
50+
{6BD6B80A-06AF-4B5B-9230-69CCFC6C8D64}.Release|Any CPU.Build.0 = Release|Any CPU
4751
{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
4852
{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
4953
{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Release|Any CPU.ActiveCfg = Release|Any CPU

src/Monitor/Monitor/Alerts/GetAzureRmAlertRuleCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Insights.Alerts
2626
/// <summary>
2727
/// Get an Alert rule
2828
/// </summary>
29-
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AlertRule"), OutputType(typeof(PSAlertRule))]
29+
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AlertRule", DefaultParameterSetName = GetAzureRmAlertRuleParamGroup), OutputType(typeof(PSAlertRule))]
3030
public class GetAzureRmAlertRuleCommand : ManagementCmdletBase
3131
{
3232
internal const string GetAzureRmAlertRuleParamGroup = "GetByResourceGroup";

src/Monitor/Monitor/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
-->
2020

2121
## Upcoming Release
22+
* Added default parameter set `GetByResourceGroup` for the command `Get-AzAlertRule` [#16356]
2223

2324
## Version 2.7.0
2425
* Added parameter `ResourceGroupName` back for `Add-AzAutoscaleSetting` parameter set `AddAzureRmAutoscaleSettingUpdateParamGroup` and made it optional [#15491]

0 commit comments

Comments
 (0)