Skip to content

Commit ac49f76

Browse files
committed
fix two issues
1 parent 79aecb8 commit ac49f76

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/ResourceManager/Resources/Commands.Resources/Providers/GetAzureProviderOperationCmdlet.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ public class GetAzureProviderOperationCommand : ResourcesBaseCmdlet
3737
/// <summary>
3838
/// Gets or sets the provider namespace
3939
/// </summary>
40-
[Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = false, ValueFromPipeline = true, HelpMessage = "The action string.")]
40+
[Parameter(Position = 0, Mandatory = false, ValueFromPipelineByPropertyName = false, ValueFromPipeline = true, HelpMessage = "The action string.")]
41+
[Alias("Name")]
4142
[ValidateNotNullOrEmpty]
4243
public string OperationSearchString { get; set; }
4344

@@ -46,6 +47,11 @@ public class GetAzureProviderOperationCommand : ResourcesBaseCmdlet
4647
/// </summary>
4748
public override void ExecuteCmdlet()
4849
{
50+
if (OperationSearchString == null)
51+
{
52+
OperationSearchString = "*";
53+
}
54+
4955
// remove leading and trailing whitespaces
5056
this.OperationSearchString = this.OperationSearchString.Trim();
5157

0 commit comments

Comments
 (0)