Skip to content

Commit 746e529

Browse files
author
maddieclayton
authored
Merge pull request Azure#4988 from maddieclayton/addRC2
Add ResourceGroupCompleter (Part 2)
2 parents aabec7e + eab90b6 commit 746e529

File tree

194 files changed

+389
-0
lines changed

Some content is hidden

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

194 files changed

+389
-0
lines changed

src/ResourceManager/AzureBatch/Commands.Batch/ApplicationPackages/GetBatchApplicationPackageCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
using Microsoft.Azure.Commands.Batch.Models;
1818
using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
19+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1920

2021
namespace Microsoft.Azure.Commands.Batch
2122
{
@@ -27,6 +28,7 @@ public class GetBatchApplicationPackageCommand : BatchCmdletBase
2728
public string AccountName { get; set; }
2829

2930
[Parameter(Position = 1, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the name of the resource group that contains the Batch account.")]
31+
[ResourceGroupCompleter]
3032
[ValidateNotNullOrEmpty]
3133
public string ResourceGroupName { get; set; }
3234

src/ResourceManager/AzureBatch/Commands.Batch/ApplicationPackages/NewBatchApplicationPackageCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
using Microsoft.Azure.Commands.Batch.Models;
1818
using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
19+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1920

2021
namespace Microsoft.Azure.Commands.Batch
2122
{
@@ -32,6 +33,7 @@ public class NewBatchApplicationPackageCommand : BatchCmdletBase
3233

3334
[Parameter(Position = 1, ParameterSetName = UploadAndActivateSet, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the name of the resource group that contains the Batch account.")]
3435
[Parameter(Position = 1, ParameterSetName = ActivateOnlySet, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the name of the resource group that contains the Batch account.")]
36+
[ResourceGroupCompleter]
3537
[ValidateNotNullOrEmpty]
3638
public string ResourceGroupName { get; set; }
3739

src/ResourceManager/AzureBatch/Commands.Batch/ApplicationPackages/RemoveBatchApplicationPackageCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using Microsoft.Azure.Commands.Batch.Properties;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System.Management.Automation;
1718
using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
1819

@@ -29,6 +30,7 @@ public class RemoveBatchApplicationPackageCommand : BatchCmdletBase
2930
public string AccountName { get; set; }
3031

3132
[Parameter(Position = 1, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the name of the resource group that contains the Batch account.")]
33+
[ResourceGroupCompleter]
3234
[ValidateNotNullOrEmpty]
3335
public string ResourceGroupName { get; set; }
3436

src/ResourceManager/AzureBatch/Commands.Batch/Applications/GetBatchApplicationCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
using Microsoft.Azure.Commands.Batch.Models;
1818

1919
using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
20+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2021

2122
namespace Microsoft.Azure.Commands.Batch
2223
{
@@ -28,6 +29,7 @@ public class GetBatchApplicationCommand : BatchCmdletBase
2829
public string AccountName { get; set; }
2930

3031
[Parameter(Position = 1, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the name of the resource group that contains the Batch account.")]
32+
[ResourceGroupCompleter]
3133
[ValidateNotNullOrEmpty]
3234
public string ResourceGroupName { get; set; }
3335

src/ResourceManager/AzureBatch/Commands.Batch/Applications/NewBatchApplicationCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
using Microsoft.Azure.Commands.Batch.Models;
1919

2020
using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
21+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2122

2223
namespace Microsoft.Azure.Commands.Batch
2324
{
@@ -31,6 +32,7 @@ public class NewBatchApplicationCommand : BatchCmdletBase
3132
public string AccountName { get; set; }
3233

3334
[Parameter(Position = 1, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the name of the resource group that contains the Batch account.")]
35+
[ResourceGroupCompleter]
3436
[ValidateNotNullOrEmpty]
3537
public string ResourceGroupName { get; set; }
3638

src/ResourceManager/AzureBatch/Commands.Batch/Applications/RemoveBatchApplicationCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using Microsoft.Azure.Commands.Batch.Properties;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System.Management.Automation;
1718
using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
1819

@@ -28,6 +29,7 @@ public class RemoveBatchApplicationCommand : BatchCmdletBase
2829
public string AccountName { get; set; }
2930

3031
[Parameter(Position = 1, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the name of the resource group that contains the Batch account.")]
32+
[ResourceGroupCompleter]
3133
[ValidateNotNullOrEmpty]
3234
public string ResourceGroupName { get; set; }
3335

src/ResourceManager/AzureBatch/Commands.Batch/Applications/SetBatchApplicationCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using Microsoft.Azure.Commands.Batch.Properties;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System.Management.Automation;
1718
using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
1819

@@ -28,6 +29,7 @@ public class SetBatchApplicationCommand : BatchCmdletBase
2829
public string AccountName { get; set; }
2930

3031
[Parameter(Position = 1, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the name of the resource group that contains the Batch account.")]
32+
[ResourceGroupCompleter]
3133
[ValidateNotNullOrEmpty]
3234
public string ResourceGroupName { get; set; }
3335

src/ResourceManager/AzureBatch/Commands.Batch/BatchAccounts/GetBatchAccountCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1516
using System.Collections;
1617
using System.Management.Automation;
1718
using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
@@ -27,6 +28,7 @@ public class GetBatchAccountCommand : BatchCmdletBase
2728
public string AccountName { get; set; }
2829

2930
[Parameter(Position = 1, ValueFromPipelineByPropertyName = true)]
31+
[ResourceGroupCompleter]
3032
[ValidateNotNullOrEmpty]
3133
public string ResourceGroupName { get; set; }
3234

src/ResourceManager/AzureBatch/Commands.Batch/BatchAccounts/GetBatchAccountKeysCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1516
using System.Management.Automation;
1617
using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
1718

@@ -27,6 +28,7 @@ public class GetBatchAccountKeysCommand : BatchCmdletBase
2728
public string AccountName { get; set; }
2829

2930
[Parameter(ValueFromPipelineByPropertyName = true)]
31+
[ResourceGroupCompleter]
3032
[ValidateNotNullOrEmpty]
3133
public string ResourceGroupName { get; set; }
3234

src/ResourceManager/AzureBatch/Commands.Batch/BatchAccounts/NewBatchAccountCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using Microsoft.Azure.Commands.Batch.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using Microsoft.Azure.Management.Batch.Models;
1718
using System.Collections;
1819
using System.Management.Automation;
@@ -36,6 +37,7 @@ public class NewBatchAccountCommand : BatchCmdletBase
3637

3738
[Parameter(Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true,
3839
HelpMessage = "The name of the resource group where the account will be created.")]
40+
[ResourceGroupCompleter]
3941
[ValidateNotNullOrEmpty]
4042
public string ResourceGroupName { get; set; }
4143

src/ResourceManager/AzureBatch/Commands.Batch/BatchAccounts/NewBatchAccountKeyCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1516
using Microsoft.Azure.Management.Batch.Models;
1617
using System.Management.Automation;
1718
using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
@@ -28,6 +29,7 @@ public class RegenBatchAccountKeyCommand : BatchCmdletBase
2829
public string AccountName { get; set; }
2930

3031
[Parameter(ValueFromPipelineByPropertyName = true)]
32+
[ResourceGroupCompleter]
3133
public string ResourceGroupName { get; set; }
3234

3335
private AccountKeyType keyType;

src/ResourceManager/AzureBatch/Commands.Batch/BatchAccounts/RemoveBatchAccountCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using Microsoft.Azure.Commands.Batch.Properties;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System.Management.Automation;
1718
using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
1819

@@ -30,6 +31,7 @@ public class RemoveBatchAccountCommand : BatchCmdletBase
3031
public string AccountName { get; set; }
3132

3233
[Parameter(Position = 1, ValueFromPipelineByPropertyName = true)]
34+
[ResourceGroupCompleter]
3335
[ValidateNotNullOrEmpty]
3436
public string ResourceGroupName { get; set; }
3537

src/ResourceManager/AzureBatch/Commands.Batch/BatchAccounts/SetBatchAccountCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1516
using System.Collections;
1617
using System.Management.Automation;
1718
using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
@@ -33,6 +34,7 @@ public class SetBatchAccountCommand : BatchCmdletBase
3334
public Hashtable Tag { get; set; }
3435

3536
[Parameter(ValueFromPipelineByPropertyName = true)]
37+
[ResourceGroupCompleter]
3638
public string ResourceGroupName { get; set; }
3739

3840
[Parameter(ValueFromPipelineByPropertyName = true)]

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Commands/AddAzureRmDataLakeAnalyticsDataSource.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using Microsoft.Azure.Commands.DataLakeAnalytics.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using Microsoft.Azure.Management.DataLake.Analytics.Models;
1718
using System;
1819
using System.Management.Automation;
@@ -61,6 +62,7 @@ public class AddAzureDataLakeAnalyticsDataSource : DataLakeAnalyticsCmdletBase
6162
ParameterSetName = BlobParameterSetName,
6263
HelpMessage =
6364
"Name of resource group under which the Data Lake Analytics account exists to add a data source to.")]
65+
[ResourceGroupCompleter()]
6466
[ValidateNotNullOrEmpty]
6567
public string ResourceGroupName { get; set; }
6668

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Commands/AddAzureRmDataLakeAnalyticsFirewallRule.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
using Microsoft.Azure.Commands.DataLakeAnalytics.Models;
1616
using Microsoft.Azure.Commands.DataLakeAnalytics.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using System.Management.Automation;
1819

1920
namespace Microsoft.Azure.Commands.DataLakeAnalytics
@@ -45,6 +46,7 @@ public class AddAzureRmDataLakeAnalyticsFirewallRule : DataLakeAnalyticsCmdletBa
4546

4647
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = false,
4748
HelpMessage = "Name of resource group under which want to retrieve the account.")]
49+
[ResourceGroupCompleter()]
4850
[ValidateNotNullOrEmpty]
4951
public string ResourceGroupName { get; set; }
5052

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Commands/GetAzureRmDataLakeAnalyticsAccount.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
using Microsoft.Azure.Commands.DataLakeAnalytics.Models;
1616
using Microsoft.Azure.Commands.DataLakeAnalytics.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using Microsoft.Azure.Management.DataLake.Analytics.Models;
1819
using System.Collections.Generic;
1920
using System.Linq;
@@ -35,6 +36,7 @@ public class GetAzureDataLakeAnalyticsAccount : DataLakeAnalyticsCmdletBase
3536
HelpMessage = "Name of resource group under which want to retrieve the account.")]
3637
[Parameter(ParameterSetName = AccountParameterSetName, ValueFromPipelineByPropertyName = true, Position = 1,
3738
Mandatory = false, HelpMessage = "Name of resource group under which want to retrieve the account.")]
39+
[ResourceGroupCompleter()]
3840
[ValidateNotNullOrEmpty]
3941
public string ResourceGroupName { get; set; }
4042

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Commands/GetAzureRmDataLakeAnalyticsComputePolicy.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
using Microsoft.Azure.Commands.DataLakeAnalytics.Models;
1616
using Microsoft.Azure.Commands.DataLakeAnalytics.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using Microsoft.Azure.Management.DataLake.Analytics.Models;
1819
using Microsoft.Rest.Azure;
1920
using System;
@@ -29,6 +30,7 @@ public class GetAzureDataLakeAnalyticsComputePolicy : DataLakeAnalyticsCmdletBas
2930
{
3031
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = false,
3132
HelpMessage = "Name of resource group under which you the account exists. Optional and will attempt to discover if not provided.")]
33+
[ResourceGroupCompleter()]
3234
[ValidateNotNullOrEmpty]
3335
public string ResourceGroupName { get; set; }
3436

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Commands/GetAzureRmDataLakeAnalyticsDataSource.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using Microsoft.Azure.Commands.DataLakeAnalytics.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using Microsoft.Azure.Management.DataLake.Analytics.Models;
1718
using System;
1819
using System.Collections.Generic;
@@ -63,6 +64,7 @@ public class GetAzureDataLakeAnalyticsDataSource : DataLakeAnalyticsCmdletBase
6364
ParameterSetName = ListStorageParameterSetName,
6465
HelpMessage =
6566
"Name of resource group under which the Data Lake Analytics account exists to add a data source to.")]
67+
[ResourceGroupCompleter()]
6668
[ValidateNotNullOrEmpty]
6769
public string ResourceGroupName { get; set; }
6870

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Commands/GetAzureRmDataLakeAnalyticsFirewallRule.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using Microsoft.Azure.Commands.DataLakeAnalytics.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System.Collections.Generic;
1718
using System.Linq;
1819
using System.Management.Automation;
@@ -37,6 +38,7 @@ public class GetAzureRmDataLakeAnalyticsFirewallRule : DataLakeAnalyticsCmdletBa
3738
[Parameter(Position = 2,
3839
ValueFromPipelineByPropertyName = true, Mandatory = false,
3940
HelpMessage = "Name of resource group under which want to retrieve the account.")]
41+
[ResourceGroupCompleter()]
4042
[ValidateNotNullOrEmpty]
4143
public string ResourceGroupName { get; set; }
4244

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Commands/NewAzureRmDataLakeAnalyticsAccount.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
using Microsoft.Azure.Commands.DataLakeAnalytics.Models;
1616
using Microsoft.Azure.Commands.DataLakeAnalytics.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using Microsoft.Azure.Management.DataLake.Analytics.Models;
1819
using Microsoft.Rest.Azure;
1920
using System.Collections;
@@ -27,6 +28,7 @@ public class NewAzureDataLakeAnalyticsAccount : DataLakeAnalyticsCmdletBase
2728
{
2829
[Parameter(ValueFromPipelineByPropertyName = true, Position = 0, Mandatory = true,
2930
HelpMessage = "Name of resource group under which you want to create the account.")]
31+
[ResourceGroupCompleter()]
3032
[ValidateNotNullOrEmpty]
3133
public string ResourceGroupName { get; set; }
3234

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Commands/NewAzureRmDataLakeAnalyticsComputePolicy.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
using Microsoft.Azure.Commands.DataLakeAnalytics.Models;
1616
using Microsoft.Azure.Commands.DataLakeAnalytics.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using Microsoft.Azure.Management.DataLake.Analytics.Models;
1819
using Microsoft.Rest.Azure;
1920
using System;
@@ -28,6 +29,7 @@ public class NewAzureDataLakeAnalyticsComputePolicy : DataLakeAnalyticsCmdletBas
2829
{
2930
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = false,
3031
HelpMessage = "Name of resource group under which you the account exists. Optional and will attempt to discover if not provided.")]
32+
[ResourceGroupCompleter()]
3133
[ValidateNotNullOrEmpty]
3234
public string ResourceGroupName { get; set; }
3335

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Commands/RemoveAzureRmDataLakeAnalyticsAccount.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
using Microsoft.Azure.Commands.DataLakeAnalytics.Models;
1616
using Microsoft.Azure.Commands.DataLakeAnalytics.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using System.Management.Automation;
1819

1920
namespace Microsoft.Azure.Commands.DataLakeAnalytics
@@ -29,6 +30,7 @@ public class RemoveAzureDataLakeAnalyticsAccount : DataLakeAnalyticsCmdletBase
2930

3031
[Parameter(ValueFromPipelineByPropertyName = true, Position = 1, Mandatory = false,
3132
HelpMessage = "Name of resource group under which the account exists.")]
33+
[ResourceGroupCompleter()]
3234
[ValidateNotNullOrEmpty]
3335
public string ResourceGroupName { get; set; }
3436

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Commands/RemoveAzureRmDataLakeAnalyticsComputePolicy.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
using Microsoft.Azure.Commands.DataLakeAnalytics.Models;
1616
using Microsoft.Azure.Commands.DataLakeAnalytics.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using Microsoft.Azure.Management.DataLake.Analytics.Models;
1819
using Microsoft.Rest.Azure;
1920
using System;
@@ -29,6 +30,7 @@ public class RemoveAzureDataLakeAnalyticsComputePolicy : DataLakeAnalyticsCmdlet
2930
{
3031
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = false,
3132
HelpMessage = "Name of resource group under which you the account exists. Optional and will attempt to discover if not provided.")]
33+
[ResourceGroupCompleter()]
3234
[ValidateNotNullOrEmpty]
3335
public string ResourceGroupName { get; set; }
3436

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Commands/RemoveAzureRmDataLakeAnalyticsDataSource.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
using Microsoft.Azure.Commands.DataLakeAnalytics.Models;
1616
using Microsoft.Azure.Commands.DataLakeAnalytics.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using System;
1819
using System.Management.Automation;
1920

@@ -64,6 +65,7 @@ public class RemoveAzureDataLakeAnalyticsDataSource : DataLakeAnalyticsCmdletBas
6465
ParameterSetName = BlobParameterSetName,
6566
HelpMessage =
6667
"Name of resource group under which the Data Lake Analytics account exists to add a data source to.")]
68+
[ResourceGroupCompleter()]
6769
[ValidateNotNullOrEmpty]
6870
public string ResourceGroupName { get; set; }
6971

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Commands/RemoveAzureRmDataLakeAnalyticsFirewallRule.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
using Microsoft.Azure.Commands.DataLakeAnalytics.Models;
1616
using Microsoft.Azure.Commands.DataLakeAnalytics.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using System.Management.Automation;
1819

1920
namespace Microsoft.Azure.Commands.DataLakeAnalytics
@@ -41,6 +42,7 @@ public class RemoveAzureRmDataLakeAnalyticsFirewallRule : DataLakeAnalyticsCmdle
4142

4243
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = false,
4344
HelpMessage = "Name of resource group under which want to retrieve the account.")]
45+
[ResourceGroupCompleter()]
4446
[ValidateNotNullOrEmpty]
4547
public string ResourceGroupName { get; set; }
4648

0 commit comments

Comments
 (0)