Skip to content

Commit 724782d

Browse files
committed
Merge pull request #88 from huangpf/clu
Clu
2 parents 9fe3cca + 4305c9b commit 724782d

File tree

92 files changed

+270
-97
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+270
-97
lines changed

build.proj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,11 @@
182182
Dnx uses dynamic compilation, 'clean' is unnecessary -->
183183
<Target
184184
Name="Full"
185-
DependsOnTargets="Build;Test" />
185+
DependsOnTargets="Build;Test" >
186+
<Exec Command="$(LibraryToolsFolder)\CLU\BuildAndInstallClu.bat" />
187+
<!--do a simple verification-->
188+
<Exec Command="$(LibraryRoot)drop\clurun\win7-x64\azure.bat help" />
189+
</Target>
186190

187191
<Target Name="BuildMsBuildTask" DependsOnTargets="RestoreNugetPackages">
188192
<MSBuild Projects="$(LibraryToolsFolder)\BuildPackagesTask\Microsoft.Azure.Build.Tasks.csproj"

src/CLU/Commands.Common.Storage/project.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"Microsoft.CLU": "1.0.0",
2020
"Commands.Common": "",
2121
"Commands.Common.Authentication": "",
22-
"Microsoft.IdentityModel.Clients.ActiveDirectory": "3.6.210231457-alpha",
23-
"Microsoft.Rest.ClientRuntime": "1.5.0",
22+
"Microsoft.IdentityModel.Clients.ActiveDirectory": "3.6.212041202-alpha",
23+
"Microsoft.Rest.ClientRuntime": "1.8.0",
2424
"Newtonsoft.Json": "7.0.1",
2525
"System.Collections": "4.0.11-beta-23516",
2626
"System.Collections.Concurrent": "4.0.11-beta-23516",

src/CLU/Commands.Common/project.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"System.Linq": "4.0.1-beta-23516",
1919
"Microsoft.CLU": "1.0.0",
2020
"Commands.Common.Authentication": "",
21-
"Microsoft.IdentityModel.Clients.ActiveDirectory": "3.6.210231457-alpha",
22-
"Microsoft.Rest.ClientRuntime": "1.5.0",
21+
"Microsoft.IdentityModel.Clients.ActiveDirectory": "3.6.212041202-alpha",
22+
"Microsoft.Rest.ClientRuntime": "1.8.0",
2323
"Newtonsoft.Json": "7.0.1",
2424
"System.Collections": "4.0.11-beta-23516",
2525
"System.Collections.Concurrent": "4.0.11-beta-23516",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
new: create
2+
ResourceGroup: group

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/FindAzureResourceGroupCmdlet.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
2929
public class FindAzureResourceGroupCmdlet : ResourceManagerCmdletBase
3030
{
3131
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The tag filter for the OData query. The expected format is @{Name = 'tagName'} or @{Name = 'tagName'; Value = 'tagValue'}.")]
32+
[Alias("t")]
3233
public Hashtable Tag { get; set; }
3334

3435
/// <summary>

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/GetAzureResourceGroupDeploymentOperationCmdlet.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,25 @@ public class GetAzureResourceGroupDeploymentOperationCmdlet : ResourceManagerCmd
3131
/// <summary>
3232
/// Gets or sets the resource group name parameter.
3333
/// </summary>
34-
[Alias("Name")]
3534
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The deployment name.")]
3635
[ValidateNotNullOrEmpty]
36+
[Alias("Name","n")]
3737
public string DeploymentName { get; set; }
3838

3939
/// <summary>
4040
/// Gets or sets the subscription id parameter.
4141
/// </summary>
4242
[Parameter(Mandatory = false, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The subscription to use.")]
4343
[ValidateNotNullOrEmpty]
44+
[Alias("s", "id")]
4445
public Guid? SubscriptionId { get; set; }
4546

4647
/// <summary>
4748
/// Gets or sets the resource group name parameter.
4849
/// </summary>
4950
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The resource group name.")]
5051
[ValidateNotNullOrEmpty]
52+
[Alias("group", "g")]
5153
public string ResourceGroupName { get; set; }
5254

5355
/// <summary>

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/InvokeAzureResourceActionCmdlet.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ public sealed class InvokAzureResourceActionCmdlet : ResourceManipulationCmdletB
2828
/// <summary>
2929
/// Gets or sets the property object.
3030
/// </summary>
31-
[Alias("Object")]
3231
[Parameter(Mandatory = false, HelpMessage = "A hash table which represents resource properties.")]
3332
[ValidateNotNullOrEmpty]
33+
[Alias("Object")]
3434
public Hashtable Parameters { get; set; }
3535

3636
/// <summary>
3737
/// Gets or sets the property object.
3838
/// </summary>
39-
[Alias("ActionName")]
4039
[Parameter(Mandatory = true, HelpMessage = "The name of the action to invoke.")]
4140
[ValidateNotNullOrEmpty]
41+
[Alias("ActionName","a")]
4242
public string Action { get; set; }
4343

4444
/// <summary>

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/Lock/GetAzureResourceLockCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ public class GetAzureResourceLockCmdlet : ResourceLockManagementCmdletBase
2929
/// <summary>
3030
/// Gets or sets the extension resource name parameter.
3131
/// </summary>
32-
[Alias("ExtensionResourceName")]
3332
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.ResourceGroupLevelLock, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the lock.")]
3433
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.ResourceGroupResourceLevelLock, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the lock.")]
3534
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.ScopeLevelLock, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the lock.")]
3635
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.SubscriptionLevelLock, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the lock.")]
3736
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.SubscriptionResourceLevelLock, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the lock.")]
3837
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.TenantResourceLevelLock, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the lock.")]
3938
[ValidateNotNullOrEmpty]
39+
[Alias("ExtensionResourceName", "name", "n")]
4040
public string LockName { get; set; }
4141

4242
/// <summary>

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/Lock/NewAzureResourceLockCmdlet.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ public class NewAzureResourceLockCmdlet : ResourceLockManagementCmdletBase
2828
/// <summary>
2929
/// Gets or sets the extension resource name parameter.
3030
/// </summary>
31-
[Alias("ExtensionResourceName")]
3231
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.ResourceGroupLevelLock, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the lock.")]
3332
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.ResourceGroupResourceLevelLock, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the lock.")]
3433
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.ScopeLevelLock, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the lock.")]
3534
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.SubscriptionLevelLock, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the lock.")]
3635
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.SubscriptionResourceLevelLock, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the lock.")]
3736
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.TenantResourceLevelLock, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the lock.")]
3837
[ValidateNotNullOrEmpty]
38+
[Alias("ExtensionResourceName", "name", "n")]
3939
public string LockName { get; set; }
4040

4141
/// <summary>
@@ -58,6 +58,7 @@ public class NewAzureResourceLockCmdlet : ResourceLockManagementCmdletBase
5858
/// Gets or sets the force parameter.
5959
/// </summary>
6060
[Parameter(Mandatory = false, HelpMessage = "Do not ask for confirmation.")]
61+
[Alias("f")]
6162
public SwitchParameter Force { get; set; }
6263

6364
/// <summary>

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/Lock/RemoveAzureResourceLockCmdlet.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,21 @@ public class RemoveAzureResourceLockCmdlet : ResourceLockManagementCmdletBase
2626
/// <summary>
2727
/// Gets or sets the extension resource name parameter.
2828
/// </summary>
29-
[Alias("ExtensionResourceName")]
3029
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.ResourceGroupLevelLock, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the lock.")]
3130
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.ResourceGroupResourceLevelLock, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the lock.")]
3231
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.ScopeLevelLock, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the lock.")]
3332
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.SubscriptionLevelLock, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the lock.")]
3433
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.SubscriptionResourceLevelLock, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the lock.")]
3534
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.TenantResourceLevelLock, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the lock.")]
3635
[ValidateNotNullOrEmpty]
36+
[Alias("ExtensionResourceName", "name", "n")]
3737
public string LockName { get; set; }
3838

3939
/// <summary>
4040
/// Gets or sets the force parameter.
4141
/// </summary>
4242
[Parameter(Mandatory = false, HelpMessage = "Do not ask for confirmation.")]
43+
[Alias("f")]
4344
public SwitchParameter Force { get; set; }
4445

4546
/// <summary>

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/Lock/ResourceLockManagementCmdletBase.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public abstract class ResourceLockManagementCmdletBase : ResourceManagerCmdletBa
7777
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.SubscriptionResourceLevelLock, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The resource name. e.g. to specify a database MyServer/MyDatabase.")]
7878
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.TenantResourceLevelLock, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The resource name. e.g. to specify a database MyServer/MyDatabase.")]
7979
[ValidateNotNullOrEmpty]
80+
[Alias("name", "n")]
8081
public string ResourceName { get; set; }
8182

8283
/// <summary>
@@ -86,6 +87,7 @@ public abstract class ResourceLockManagementCmdletBase : ResourceManagerCmdletBa
8687
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.SubscriptionResourceLevelLock, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The resource type. e.g. Microsoft.Sql/Servers/Databases.")]
8788
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.TenantResourceLevelLock, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The resource type. e.g. Microsoft.Sql/Servers/Databases.")]
8889
[ValidateNotNullOrEmpty]
90+
[Alias("type", "t")]
8991
public string ResourceType { get; set; }
9092

9193
/// <summary>
@@ -94,6 +96,7 @@ public abstract class ResourceLockManagementCmdletBase : ResourceManagerCmdletBa
9496
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.ResourceGroupResourceLevelLock, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The resource group name.")]
9597
[Parameter(ParameterSetName = ResourceLockManagementCmdletBase.ResourceGroupLevelLock, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The resource group name.")]
9698
[ValidateNotNullOrEmpty]
99+
[Alias("group", "g")]
97100
public string ResourceGroupName { get; set; }
98101

99102
/// <summary>

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/Policy/GetAzurePolicyAssignment.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public class GetAzurePolicyAssignmentCmdlet : PolicyAssignmentCmdletBase
4646
/// </summary>
4747
[Parameter(ParameterSetName = GetAzurePolicyAssignmentCmdlet.PolicyAssignmentNameParameterSet, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The policy assignment name.")]
4848
[ValidateNotNullOrEmpty]
49+
[Alias("n")]
4950
public string Name { get; set; }
5051

5152
/// <summary>

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/Policy/GetAzurePolicyDefinition.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public class GetAzurePolicyDefinitionCmdlet : PolicyDefinitionCmdletBase
4646
/// </summary>
4747
[Parameter(ParameterSetName = GetAzurePolicyDefinitionCmdlet.PolicyDefinitionNameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The policy definition name.")]
4848
[ValidateNotNullOrEmpty]
49+
[Alias("n")]
4950
public string Name { get; set; }
5051

5152
/// <summary>

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/Policy/NewAzurePolicyAssignment.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public class NewAzurePolicyAssignmentCmdlet : PolicyAssignmentCmdletBase
3131
/// </summary>
3232
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The policy assignment name.")]
3333
[ValidateNotNullOrEmpty]
34+
[Alias("n")]
3435
public string Name { get; set; }
3536

3637
/// <summary>

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/Policy/NewAzurePolicyDefinition.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public class NewAzurePolicyDefinitionCmdlet : PolicyDefinitionCmdletBase
3333
/// </summary>
3434
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The policy definition name.")]
3535
[ValidateNotNullOrEmpty]
36+
[Alias("n")]
3637
public string Name { get; set; }
3738

3839
/// <summary>

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/Policy/RemoveAzurePolicyAssignment.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public class RemoveAzurePolicyAssignmentCmdlet : PolicyAssignmentCmdletBase
3838
/// </summary>
3939
[Parameter(ParameterSetName = RemoveAzurePolicyAssignmentCmdlet.PolicyAssignmentNameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The policy assignment name.")]
4040
[ValidateNotNullOrEmpty]
41+
[Alias("n")]
4142
public string Name { get; set; }
4243

4344
/// <summary>
@@ -59,6 +60,7 @@ public class RemoveAzurePolicyAssignmentCmdlet : PolicyAssignmentCmdletBase
5960
/// Gets or sets the force parameter.
6061
/// </summary>
6162
[Parameter(Mandatory = false, HelpMessage = "Do not ask for confirmation.")]
63+
[Alias("f")]
6264
public SwitchParameter Force { get; set; }
6365

6466
/// <summary>

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/Policy/RemoveAzurePolicyDefinition.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public class RemoveAzurePolicyDefinitionCmdlet : PolicyDefinitionCmdletBase
3838
/// </summary>
3939
[Parameter(ParameterSetName = RemoveAzurePolicyDefinitionCmdlet.PolicyDefinitionNameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The policy definition name.")]
4040
[ValidateNotNullOrEmpty]
41+
[Alias("n")]
4142
public string Name { get; set; }
4243

4344
/// <summary>
@@ -52,6 +53,7 @@ public class RemoveAzurePolicyDefinitionCmdlet : PolicyDefinitionCmdletBase
5253
/// Gets or sets the force parameter.
5354
/// </summary>
5455
[Parameter(Mandatory = false, HelpMessage = "Do not ask for confirmation.")]
56+
[Alias("f")]
5557
public SwitchParameter Force { get; set; }
5658

5759
/// <summary>

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/Policy/SetAzurePolicyAssignment.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public class SetAzurePolicyAssignmentCmdlet : PolicyAssignmentCmdletBase
4242
/// </summary>
4343
[Parameter(ParameterSetName = SetAzurePolicyAssignmentCmdlet.PolicyAssignmentNameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The policy assignment name.")]
4444
[ValidateNotNullOrEmpty]
45+
[Alias("n")]
4546
public string Name { get; set; }
4647

4748
/// <summary>

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/Policy/SetAzurePolicyDefinition.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public class SetAzurePolicyDefinitionCmdlet : PolicyDefinitionCmdletBase
4444
/// </summary>
4545
[Parameter(ParameterSetName = GetAzurePolicyDefinitionCmdlet.PolicyDefinitionNameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The policy definition name.")]
4646
[ValidateNotNullOrEmpty]
47+
[Alias("n")]
4748
public string Name { get; set; }
4849

4950
/// <summary>

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/Resource/FindAzureResourceCmdlet.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ public sealed class FindAzureResourceCmdlet : ResourceManagerCmdletBase
6060
/// <summary>
6161
/// Gets or sets the resource name parameter.
6262
/// </summary>
63-
[Alias("Name")]
6463
[Parameter(ParameterSetName = FindAzureResourceCmdlet.ListResourcesParameterSet, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The resource name substring. e.g. if your resource name is testResource, you can specify test.")]
6564
[Parameter(ParameterSetName = FindAzureResourceCmdlet.ListTenantResourcesParameterSet, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The resource name substring. e.g. if your resource name is testResource, you can specify test.")]
6665
[Parameter(ParameterSetName = FindAzureResourceCmdlet.MultiSubscriptionListResourcesParameterSet, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The resource name substring. e.g. if your resource name is testResource, you can specify test.")]
6766
[ValidateNotNullOrEmpty]
67+
[Alias("Name", "n")]
6868
public string ResourceNameContains { get; set; }
6969

7070
/// <summary>
@@ -74,6 +74,7 @@ public sealed class FindAzureResourceCmdlet : ResourceManagerCmdletBase
7474
[Parameter(ParameterSetName = FindAzureResourceCmdlet.ListTenantResourcesParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The resource type. e.g. Microsoft.Sql/Servers/Databases.")]
7575
[Parameter(ParameterSetName = FindAzureResourceCmdlet.MultiSubscriptionListResourcesParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The resource type. e.g. Microsoft.Sql/Servers/Databases.")]
7676
[ValidateNotNullOrEmpty]
77+
[Alias("type","t")]
7778
public string ResourceType { get; set; }
7879

7980
/// <summary>
@@ -120,10 +121,10 @@ public sealed class FindAzureResourceCmdlet : ResourceManagerCmdletBase
120121
/// <summary>
121122
/// Gets or sets the resource group name.
122123
/// </summary>
123-
[Alias("ResourceGroupName")]
124124
[Parameter(Mandatory = false, ParameterSetName = FindAzureResourceCmdlet.ListResourcesParameterSet, ValueFromPipelineByPropertyName = true, HelpMessage = "The resource group name substring.")]
125125
[Parameter(Mandatory = false, ParameterSetName = FindAzureResourceCmdlet.MultiSubscriptionListResourcesParameterSet, ValueFromPipelineByPropertyName = true, HelpMessage = "The resource group name substring.")]
126126
[ValidateNotNullOrEmpty]
127+
[Alias("ResourceGroupName", "group", "g")]
127128
public string ResourceGroupNameContains { get; set; }
128129

129130
/// <summary>

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/Resource/GetAzureResourceCmdlet.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ public sealed class GetAzureResourceCmdlet : ResourceManagerCmdletBase
105105
[Parameter(ParameterSetName = GetAzureResourceCmdlet.GetResourceByNameTypeParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The resource type. e.g. Microsoft.Sql/Servers/Databases.")]
106106
[Parameter(ParameterSetName = GetAzureResourceCmdlet.GetResourceByNameGroupTypeParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The resource type. e.g. Microsoft.Sql/Servers/Databases.")]
107107
[ValidateNotNullOrEmpty]
108+
[Alias("type", "t")]
108109
public string ResourceType { get; set; }
109110

110111
/// <summary>
@@ -165,6 +166,7 @@ public sealed class GetAzureResourceCmdlet : ResourceManagerCmdletBase
165166
[Parameter(ParameterSetName = GetAzureResourceCmdlet.GetResourceByNameGroupParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The resource group name.")]
166167
[Parameter(ParameterSetName = GetAzureResourceCmdlet.GetResourceByNameGroupTypeParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The resource group name.")]
167168
[ValidateNotNullOrEmpty]
169+
[Alias("group", "g")]
168170
public string ResourceGroupName { get; set; }
169171

170172
/// <summary>

0 commit comments

Comments
 (0)