Skip to content

Commit 0a15e8a

Browse files
ritwik8119Ritwik RajendraVeryEarly
authored
Bug fix for missing parameter in SetActionGroup command (#12109)
* Bug fix for missing parameter is SetActionGroupCommand * updated formatting * Update ChangeLog.md Co-authored-by: Ritwik Rajendra <[email protected]> Co-authored-by: Yabo Hu <[email protected]>
1 parent a2ddd01 commit 0a15e8a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Monitor/Monitor/ActionGroups/SetAzureRmActionGroupCommand.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ protected override void ProcessRecordInternal()
114114
if (ParameterSetName == ByInputObject)
115115
{
116116
this.ResourceGroupName = this.InputObject.ResourceGroupName;
117+
if (this.Name == null)
118+
{
119+
this.Name = this.InputObject.Name;
120+
}
117121
if (this.ShortName == null)
118122
{
119123
this.ShortName = this.InputObject.GroupShortName;

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+
* Fixed bug for `Set-AzActionGroup`
2223

2324
## Version 2.0.0
2425
* Fixed bug for `Set-AzDiagnosticSettings`, retention policy won't apply to all categories [#11589]

0 commit comments

Comments
 (0)