Skip to content

Commit 57579ce

Browse files
Maddie Claytonazdevxps
authored andcommitted
Add ResourceCompleter to Compute
1 parent 8b93d18 commit 57579ce

File tree

86 files changed

+165
-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.

86 files changed

+165
-0
lines changed

src/ResourceManager/Compute/Commands.Compute/AvailabilitySets/GetAzureAvailabilitySetCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using AutoMapper;
1616
using Microsoft.Azure.Commands.Compute.Common;
1717
using Microsoft.Azure.Commands.Compute.Models;
18+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1819
using System.Collections.Generic;
1920
using System.Management.Automation;
2021

@@ -29,6 +30,7 @@ public class GetAzureAvailabilitySetCommand : AvailabilitySetBaseCmdlet
2930
Position = 0,
3031
ValueFromPipelineByPropertyName = true,
3132
HelpMessage = "The resource group name.")]
33+
[ResourceGroupCompleter()]
3234
[ValidateNotNullOrEmpty]
3335
public string ResourceGroupName { get; set; }
3436

src/ResourceManager/Compute/Commands.Compute/AvailabilitySets/NewAzureAvailabilitySetCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public class NewAzureAvailabilitySetCommand : AvailabilitySetBaseCmdlet
3131
Position = 0,
3232
ValueFromPipelineByPropertyName = true,
3333
HelpMessage = "The resource group name.")]
34+
[ResourceGroupCompleter()]
3435
[ValidateNotNullOrEmpty]
3536
public string ResourceGroupName { get; set; }
3637

src/ResourceManager/Compute/Commands.Compute/AvailabilitySets/RemoveAzureAvailabilitySetCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using AutoMapper;
1616
using Microsoft.Azure.Commands.Compute.Common;
1717
using Microsoft.Azure.Commands.Compute.Models;
18+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1819
using System.Management.Automation;
1920

2021

@@ -29,6 +30,7 @@ public class RemoveAzureAvailabilitySetCommand : AvailabilitySetBaseCmdlet
2930
Position = 0,
3031
ValueFromPipelineByPropertyName = true,
3132
HelpMessage = "The resource group name.")]
33+
[ResourceGroupCompleter()]
3234
[ValidateNotNullOrEmpty]
3335
public string ResourceGroupName { get; set; }
3436

src/ResourceManager/Compute/Commands.Compute/Extension/ADDomain/GetAzureVMADDomainExtensionCommand.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.Compute.Common;
1616
using Microsoft.Azure.Commands.Compute.Models;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using Microsoft.Azure.Management.Compute;
1819
using System;
1920
using System.Management.Automation;
@@ -32,6 +33,7 @@ public class GetAzureVMADDomainExtensionCommand : VirtualMachineExtensionBaseCmd
3233
Position = 0,
3334
ValueFromPipelineByPropertyName = true,
3435
HelpMessage = "The resource group name.")]
36+
[ResourceGroupCompleter()]
3537
[ValidateNotNullOrEmpty]
3638
public string ResourceGroupName { get; set; }
3739

src/ResourceManager/Compute/Commands.Compute/Extension/AEM/GetAzureRmVMAEMExtension.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.Compute.Common;
1616
using Microsoft.Azure.Commands.Compute.Models;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using Microsoft.Azure.Management.Compute;
1819
using Microsoft.Azure.Management.Compute.Models;
1920
using Microsoft.Rest.Azure;
@@ -35,6 +36,7 @@ public class GetAzureRmVMAEMExtension : VirtualMachineExtensionBaseCmdlet
3536
Position = 0,
3637
ValueFromPipelineByPropertyName = true,
3738
HelpMessage = "The resource group name.")]
39+
[ResourceGroupCompleter()]
3840
[ValidateNotNullOrEmpty]
3941
public string ResourceGroupName { get; set; }
4042

src/ResourceManager/Compute/Commands.Compute/Extension/AEM/RemoveAzureRmVMAEMExtension.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using Microsoft.Azure.Commands.Compute.Common;
2020
using Microsoft.Azure.Commands.Compute.Extension.AEM;
2121
using Microsoft.Azure.Commands.Compute.Models;
22+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2223
using Microsoft.Azure.Management.Compute;
2324
using Microsoft.Azure.Management.Compute.Models;
2425
using Microsoft.Azure.Management.Storage;
@@ -41,6 +42,7 @@ public class RemoveAzureRmVMAEMExtension : VirtualMachineExtensionBaseCmdlet
4142
Position = 0,
4243
ValueFromPipelineByPropertyName = true,
4344
HelpMessage = "The resource group name.")]
45+
[ResourceGroupCompleter()]
4446
[ValidateNotNullOrEmpty]
4547
public string ResourceGroupName { get; set; }
4648

src/ResourceManager/Compute/Commands.Compute/Extension/AEM/SetAzureRmVMAEMExtension.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using Microsoft.Azure.Commands.Compute.Common;
2020
using Microsoft.Azure.Commands.Compute.Extension.AEM;
2121
using Microsoft.Azure.Commands.Compute.Models;
22+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2223
using Microsoft.Azure.Management.Compute;
2324
using Microsoft.Azure.Management.Compute.Models;
2425
using Microsoft.Azure.Management.Storage;
@@ -46,6 +47,7 @@ public class SetAzureRmVMAEMExtension : VirtualMachineExtensionBaseCmdlet
4647
Position = 0,
4748
ValueFromPipelineByPropertyName = true,
4849
HelpMessage = "The resource group name.")]
50+
[ResourceGroupCompleter()]
4951
[ValidateNotNullOrEmpty]
5052
public string ResourceGroupName { get; set; }
5153

src/ResourceManager/Compute/Commands.Compute/Extension/AEM/TestAzureRmVMAEMExtension.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
using Microsoft.Azure.Commands.Common.Authentication.Models;
1919
using Microsoft.Azure.Commands.Compute.Common;
2020
using Microsoft.Azure.Commands.Compute.Extension.AEM;
21+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2122
using Microsoft.Azure.Management.Compute;
2223
using Microsoft.Azure.Management.Compute.Models;
2324
using Microsoft.Azure.Management.Storage;
@@ -46,6 +47,7 @@ public class TestAzureRmVMAEMExtension : VirtualMachineExtensionBaseCmdlet
4647
Position = 0,
4748
ValueFromPipelineByPropertyName = true,
4849
HelpMessage = "The resource group name.")]
50+
[ResourceGroupCompleter()]
4951
[ValidateNotNullOrEmpty]
5052
public string ResourceGroupName { get; set; }
5153

src/ResourceManager/Compute/Commands.Compute/Extension/AzureDiskEncryption/DisableAzureDiskEncryption.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using AutoMapper;
1616
using Microsoft.Azure.Commands.Compute.Common;
1717
using Microsoft.Azure.Commands.Compute.Models;
18+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1819
using Microsoft.Azure.Management.Compute;
1920
using Microsoft.Azure.Management.Compute.Models;
2021
using Microsoft.Rest.Azure;
@@ -37,6 +38,7 @@ public class DisableAzureDiskEncryptionCommand : VirtualMachineExtensionBaseCmdl
3738
Position = 0,
3839
ValueFromPipelineByPropertyName = true,
3940
HelpMessage = "The resource group name to which the VM belongs to")]
41+
[ResourceGroupCompleter()]
4042
[ValidateNotNullOrEmpty]
4143
public string ResourceGroupName { get; set; }
4244

src/ResourceManager/Compute/Commands.Compute/Extension/AzureDiskEncryption/GetAzureDiskEncryptionStatus.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.Compute.Common;
1616
using Microsoft.Azure.Commands.Compute.Models;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using Microsoft.Azure.Management.Compute;
1819
using Microsoft.Azure.Management.Compute.Models;
1920
using Microsoft.Rest.Azure;
@@ -37,6 +38,7 @@ public class GetAzureDiskEncryptionStatusCommand : VirtualMachineExtensionBaseCm
3738
Position = 0,
3839
ValueFromPipelineByPropertyName = true,
3940
HelpMessage = "Resource group name of the virtual machine")]
41+
[ResourceGroupCompleter()]
4042
[ValidateNotNullOrEmpty]
4143
public string ResourceGroupName { get; set; }
4244

src/ResourceManager/Compute/Commands.Compute/Extension/AzureDiskEncryption/RemoveAzureDiskEncryptionExtension.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using AutoMapper;
1616
using Microsoft.Azure.Commands.Compute.Common;
1717
using Microsoft.Azure.Commands.Compute.Models;
18+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1819
using Microsoft.Azure.Management.Compute;
1920
using Microsoft.Azure.Management.Compute.Models;
2021
using System.Management.Automation;
@@ -33,6 +34,7 @@ public class RemoveAzureDiskEncryptionExtensionCommand : VirtualMachineExtension
3334
Position = 0,
3435
ValueFromPipelineByPropertyName = true,
3536
HelpMessage = "The resource group name.")]
37+
[ResourceGroupCompleter()]
3638
[ValidateNotNullOrEmpty]
3739
public string ResourceGroupName { get; set; }
3840

src/ResourceManager/Compute/Commands.Compute/Extension/AzureDiskEncryption/SetAzureDiskEncryptionExtension.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
using Microsoft.Azure.Commands.Compute.Common;
1717
using Microsoft.Azure.Commands.Compute.Extension.AzureVMBackup;
1818
using Microsoft.Azure.Commands.Compute.Models;
19+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1920
using Microsoft.Azure.Management.Compute;
2021
using Microsoft.Azure.Management.Compute.Models;
2122
using Microsoft.Rest.Azure;
@@ -39,6 +40,7 @@ public class SetAzureDiskEncryptionExtensionCommand : VirtualMachineExtensionBas
3940
Position = 0,
4041
ValueFromPipelineByPropertyName = true,
4142
HelpMessage = "The resource group name to which the VM belongs to")]
43+
[ResourceGroupCompleter()]
4244
[ValidateNotNullOrEmpty]
4345
public string ResourceGroupName { get; set; }
4446

src/ResourceManager/Compute/Commands.Compute/Extension/AzureVMBackup/RemoveAzureVMBackup.cs

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

1616
using Microsoft.Azure.Commands.Compute.Common;
1717
using Microsoft.Azure.Commands.Compute.Models;
18+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1819
using Microsoft.Azure.Management.Compute.Models;
1920
using System;
2021
using System.Globalization;
@@ -33,6 +34,7 @@ public class RemoveAzureVMBackup : VirtualMachineExtensionBaseCmdlet
3334
Position = 0,
3435
ValueFromPipelineByPropertyName = true,
3536
HelpMessage = "The resource group name.")]
37+
[ResourceGroupCompleter()]
3638
[ValidateNotNullOrEmpty]
3739
public string ResourceGroupName { get; set; }
3840

src/ResourceManager/Compute/Commands.Compute/Extension/AzureVMBackup/SetAzureVMBackupExtension.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
using Microsoft.Azure.Commands.Compute.Common;
1717
using Microsoft.Azure.Commands.Compute.Extension.AzureVMBackup;
1818
using Microsoft.Azure.Commands.Compute.Models;
19+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1920
using System.Management.Automation;
2021

2122
namespace Microsoft.Azure.Commands.Compute.Extension.AzureDiskEncryption
@@ -31,6 +32,7 @@ public class SetAzureVMBackupExtension : VirtualMachineExtensionBaseCmdlet
3132
Position = 0,
3233
ValueFromPipelineByPropertyName = true,
3334
HelpMessage = "The resource group name.")]
35+
[ResourceGroupCompleter()]
3436
[ValidateNotNullOrEmpty]
3537
public string ResourceGroupName { get; set; }
3638

src/ResourceManager/Compute/Commands.Compute/Extension/Chef/GetAzureRmVMChefExtension.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
using Microsoft.Azure.Management.Compute;
2121
using Microsoft.Azure.Management.Compute.Models;
2222
using Microsoft.Rest.Azure;
23+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2324

2425
namespace Microsoft.Azure.Commands.Compute.Extension.Chef
2526
{
@@ -42,6 +43,7 @@ public class GetAzureRmVMChefExtension : VirtualMachineExtensionBaseCmdlet
4243
Position = 0,
4344
ValueFromPipelineByPropertyName = true,
4445
HelpMessage = "The resource group name.")]
46+
[ResourceGroupCompleter()]
4547
[ValidateNotNullOrEmpty]
4648
public string ResourceGroupName { get; set; }
4749

src/ResourceManager/Compute/Commands.Compute/Extension/Chef/RemoveAzureRmVMChefExtension.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
using AutoMapper;
2222
using Microsoft.Azure.Commands.Compute.Models;
2323
using Microsoft.Azure.Management.Compute.Models;
24+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2425

2526
namespace Microsoft.Azure.Commands.Compute.Extension.Chef
2627
{
@@ -41,6 +42,7 @@ public class RemoveAzureRmVMChefExtension : VirtualMachineExtensionBaseCmdlet
4142
Position = 0,
4243
ValueFromPipelineByPropertyName = true,
4344
HelpMessage = "The resource group name.")]
45+
[ResourceGroupCompleter()]
4446
[ValidateNotNullOrEmpty]
4547
public string ResourceGroupName { get; set; }
4648

src/ResourceManager/Compute/Commands.Compute/Extension/Chef/SetAzureVMChefExtension.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using AutoMapper;
1616
using Microsoft.Azure.Commands.Compute.Common;
1717
using Microsoft.Azure.Commands.Compute.Models;
18+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1819
using Microsoft.Azure.Management.Compute.Models;
1920
using System;
2021
using System.Collections;
@@ -56,6 +57,7 @@ public class SetAzureVMChefExtensionCommand : VirtualMachineExtensionBaseCmdlet
5657
Position = 0,
5758
ValueFromPipelineByPropertyName = true,
5859
HelpMessage = "The resource group name.")]
60+
[ResourceGroupCompleter()]
5961
[ValidateNotNullOrEmpty]
6062
public string ResourceGroupName { get; set; }
6163

src/ResourceManager/Compute/Commands.Compute/Extension/CustomScript/GetAzureVMCustomScriptExtensionCommand.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.Compute.Common;
1616
using Microsoft.Azure.Commands.Compute.Models;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using Microsoft.Azure.Management.Compute;
1819
using System;
1920
using System.Management.Automation;
@@ -32,6 +33,7 @@ public class GetAzureVMCustomScriptExtensionCommand : VirtualMachineExtensionBas
3233
Position = 0,
3334
ValueFromPipelineByPropertyName = true,
3435
HelpMessage = "The resource group name.")]
36+
[ResourceGroupCompleter()]
3537
[ValidateNotNullOrEmpty]
3638
public string ResourceGroupName { get; set; }
3739

src/ResourceManager/Compute/Commands.Compute/Extension/CustomScript/RemoveAzureVMCustomScriptExtensionCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using AutoMapper;
1616
using Microsoft.Azure.Commands.Compute.Common;
1717
using Microsoft.Azure.Commands.Compute.Models;
18+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1819
using System.Management.Automation;
1920

2021
namespace Microsoft.Azure.Commands.Compute
@@ -31,6 +32,7 @@ public class RemoveAzureVMCustomScriptExtensionCommand : VirtualMachineExtension
3132
Position = 0,
3233
ValueFromPipelineByPropertyName = true,
3334
HelpMessage = "The resource group name.")]
35+
[ResourceGroupCompleter()]
3436
[ValidateNotNullOrEmpty]
3537
public string ResourceGroupName { get; set; }
3638

src/ResourceManager/Compute/Commands.Compute/Extension/DSC/GetAzureVMDscExtensionCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Microsoft.Azure.Commands.Compute.Common;
22
using Microsoft.Azure.Commands.Compute.Models;
3+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
34
using Microsoft.Azure.Management.Compute;
45
using Microsoft.WindowsAzure.Commands.Common.Extensions.DSC;
56
using Newtonsoft.Json;
@@ -26,6 +27,7 @@ public class GetAzureVMDscExtensionCommand : VirtualMachineExtensionBaseCmdlet
2627
Position = 0,
2728
ValueFromPipelineByPropertyName = true,
2829
HelpMessage = "The resource group name.")]
30+
[ResourceGroupCompleter()]
2931
[ValidateNotNullOrEmpty]
3032
public string ResourceGroupName { get; set; }
3133

src/ResourceManager/Compute/Commands.Compute/Extension/DSC/GetAzureVMDscExtensionStatusCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Microsoft.Azure.Commands.Compute.Common;
22
using Microsoft.Azure.Commands.Compute.Models;
3+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
34
using Microsoft.Azure.Management.Compute.Models;
45
using Microsoft.WindowsAzure.Commands.Common.Extensions.DSC;
56
using System;
@@ -31,6 +32,7 @@ public class GetAzureVMDscExtensionStatusCommand : VirtualMachineExtensionBaseCm
3132
Position = 0,
3233
ValueFromPipelineByPropertyName = true,
3334
HelpMessage = "The resource group name.")]
35+
[ResourceGroupCompleter()]
3436
[ValidateNotNullOrEmpty]
3537
public string ResourceGroupName { get; set; }
3638

src/ResourceManager/Compute/Commands.Compute/Extension/DSC/PublishAzureVMDscConfigurationCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
22
using Microsoft.Azure.Commands.Common.Authentication.Models;
33
using Microsoft.Azure.Commands.Compute.Common;
4+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
45
using Microsoft.WindowsAzure.Commands.Common.Extensions.DSC;
56
using Microsoft.WindowsAzure.Commands.Common.Extensions.DSC.Publish;
67
using Microsoft.WindowsAzure.Storage.Auth;
@@ -32,6 +33,7 @@ public class PublishAzureVMDscConfigurationCommand : DscExtensionPublishCmdletCo
3233
ParameterSetName = UploadArchiveParameterSetName,
3334
ValueFromPipelineByPropertyName = true,
3435
HelpMessage = "The name of the resource group that contains the storage account.")]
36+
[ResourceGroupCompleter()]
3537
[ValidateNotNullOrEmpty]
3638
public string ResourceGroupName { get; set; }
3739

src/ResourceManager/Compute/Commands.Compute/Extension/DSC/RemoveAzureVMDscExtensionCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using System;
99
using System.Globalization;
1010
using System.Management.Automation;
11+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1112

1213
namespace Microsoft.Azure.Commands.Compute.Extension.DSC
1314
{
@@ -26,6 +27,7 @@ public class RemoveAzureVMDscExtensionCommand : VirtualMachineExtensionBaseCmdle
2627
Position = 0,
2728
ValueFromPipelineByPropertyName = true,
2829
HelpMessage = "The name of the resource group.")]
30+
[ResourceGroupCompleter()]
2931
[ValidateNotNullOrEmpty]
3032
public string ResourceGroupName { get; set; }
3133

src/ResourceManager/Compute/Commands.Compute/Extension/DSC/SetAzureVMDscExtensionCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public class SetAzureVMDscExtensionCommand : VirtualMachineExtensionBaseCmdlet
3434
Position = 2,
3535
ValueFromPipelineByPropertyName = true,
3636
HelpMessage = "The name of the resource group that contains the virtual machine.")]
37+
[ResourceGroupCompleter()]
3738
[ValidateNotNullOrEmpty]
3839
public string ResourceGroupName { get; set; }
3940

src/ResourceManager/Compute/Commands.Compute/Extension/Diagnostics/GetAzureRmVMDiagnosticsExtension.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.Compute.Common;
1616
using Microsoft.Azure.Commands.Compute.Models;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using Microsoft.Azure.Management.Compute;
1819
using Microsoft.Azure.Management.Compute.Models;
1920
using Microsoft.Rest.Azure;
@@ -35,6 +36,7 @@ public class GetAzureRmVMDiagnosticsExtensionCommand : VirtualMachineExtensionBa
3536
Position = 0,
3637
ValueFromPipelineByPropertyName = true,
3738
HelpMessage = "The resource group name.")]
39+
[ResourceGroupCompleter()]
3840
[ValidateNotNullOrEmpty]
3941
public string ResourceGroupName { get; set; }
4042

src/ResourceManager/Compute/Commands.Compute/Extension/Diagnostics/RemoveAzureRmVMDiagnosticsExtension.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using AutoMapper;
1616
using Microsoft.Azure.Commands.Compute.Common;
1717
using Microsoft.Azure.Commands.Compute.Models;
18+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1819
using Microsoft.Azure.Management.Compute;
1920
using Microsoft.Azure.Management.Compute.Models;
2021
using System;
@@ -35,6 +36,7 @@ public class RemoveAzureRmVMDiagnosticsExtensionCommand : VirtualMachineExtensio
3536
Position = 0,
3637
ValueFromPipelineByPropertyName = true,
3738
HelpMessage = "The resource group name.")]
39+
[ResourceGroupCompleter()]
3840
[ValidateNotNullOrEmpty]
3941
public string ResourceGroupName { get; set; }
4042

0 commit comments

Comments
 (0)