Skip to content

Commit 101ac87

Browse files
committed
added DefaultParameterSetName for all cmdlets
1 parent 0092fd4 commit 101ac87

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ResourceManager/Insights/Commands.Insights/ActionGroups/GetAzureRmActionGroupCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.Insights.ActionGroups
2525
/// <summary>
2626
/// Gets an Azure Action Group.
2727
/// </summary>
28-
[Cmdlet(VerbsCommon.Get, "AzureRmActionGroup"), OutputType(typeof(PSActionGroupResource))]
28+
[Cmdlet(VerbsCommon.Get, "AzureRmActionGroup"), OutputType(typeof(PSActionGroupResource)), CmdletBinding(DefaultParameterSetName = BySubscriptionOrResourceGroup)]
2929
public class GetAzureRmActionGroupCommand : ManagementCmdletBase
3030
{
3131
private const string ByName = "ByName";

src/ResourceManager/Insights/Commands.Insights/ActionGroups/RemoveAzureRmActionGroupCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Insights.ActionGroups
2626
/// <summary>
2727
/// Gets an Azure Action Group.
2828
/// </summary>
29-
[Cmdlet(VerbsCommon.Remove, "AzureRmActionGroup", SupportsShouldProcess = true), OutputType(typeof(AzureOperationResponse))]
29+
[Cmdlet(VerbsCommon.Remove, "AzureRmActionGroup", SupportsShouldProcess = true), OutputType(typeof(AzureOperationResponse)), CmdletBinding(DefaultParameterSetName = ByPropertyName)]
3030
public class RemoveAzureRmActionGroupCommand : ManagementCmdletBase
3131
{
3232
private const string ByPropertyName = "ByPropertyName";

src/ResourceManager/Insights/Commands.Insights/ActionGroups/SetAzureRmActionGroupCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace Microsoft.Azure.Commands.Insights.ActionGroups
2929
/// <summary>
3030
/// Gets an Azure Action Group.
3131
/// </summary>
32-
[Cmdlet(VerbsCommon.Set, "AzureRmActionGroup", SupportsShouldProcess = true), OutputType(typeof(PSActionGroupResource))]
32+
[Cmdlet(VerbsCommon.Set, "AzureRmActionGroup", SupportsShouldProcess = true), OutputType(typeof(PSActionGroupResource)), CmdletBinding(DefaultParameterSetName = ByPropertyName)]
3333
public class SetAzureRmActionGroupCommand : ManagementCmdletBase
3434
{
3535
private const string ByPropertyName = "ByPropertyName";

0 commit comments

Comments
 (0)