Skip to content

Commit 1447d70

Browse files
committed
Add default ParameterSet to Add/Remove NetworkACL Rule cmdlets
1 parent 635032e commit 1447d70

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ResourceManager/Storage/Commands.Management.Storage/StorageAccount/AddAzureStorageAccountNetworkACLRule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Microsoft.Azure.Commands.Management.Storage
2525
{
26-
[Cmdlet(VerbsCommon.Add, StorageAccountACLRuleNounStr, SupportsShouldProcess = true)]
26+
[Cmdlet(VerbsCommon.Add, StorageAccountACLRuleNounStr, SupportsShouldProcess = true, DefaultParameterSetName = NetWorkRuleStringParameterSet)]
2727
[OutputType(typeof(PSVirtualNetworkRule), ParameterSetName = new string[] { NetWorkRuleStringParameterSet, NetworkRuleObjectParameterSet })]
2828
[OutputType(typeof(PSIpRule), ParameterSetName = new string[] { IpRuleStringParameterSet, IpRuleObjectParameterSet})]
2929
public class AddAzureStorageAccountNetworkACLRuleCommand : StorageAccountBaseCmdlet

src/ResourceManager/Storage/Commands.Management.Storage/StorageAccount/RemoveAzureStorageAccountNetworkACLRule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
namespace Microsoft.Azure.Commands.Management.Storage
2626
{
27-
[Cmdlet(VerbsCommon.Remove, StorageAccountACLRuleNounStr, SupportsShouldProcess = true)]
27+
[Cmdlet(VerbsCommon.Remove, StorageAccountACLRuleNounStr, SupportsShouldProcess = true, DefaultParameterSetName = NetWorkRuleStringParameterSet)]
2828
[OutputType(typeof(PSVirtualNetworkRule), ParameterSetName = new string[] { NetWorkRuleStringParameterSet, NetworkRuleObjectParameterSet })]
2929
[OutputType(typeof(PSIpRule), ParameterSetName = new string[] { IpRuleStringParameterSet, IpRuleObjectParameterSet })]
3030
public class RemoveAzureStorageAccountNetworkACLRuleCommand : StorageAccountBaseCmdlet

0 commit comments

Comments
 (0)