Skip to content

Commit 0beade3

Browse files
committed
Add RGC to OperationalInsights
1 parent 5a9e2dc commit 0beade3

File tree

37 files changed

+74
-0
lines changed

37 files changed

+74
-0
lines changed

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/DataSources/GetAzureOperationalInsightsDataSourceCommand.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.OperationalInsights.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System.Collections.Generic;
1718
using System.Management.Automation;
1819
using System.Net;
@@ -36,6 +37,7 @@ public class GetAzureOperationalInsightsDataSourceCommand : OperationalInsightsB
3637
[Parameter(Position = 1, ParameterSetName = ByWorkspaceNameByName, Mandatory = true, ValueFromPipelineByPropertyName = true,
3738
HelpMessage = "The resource group name.")]
3839
[Parameter(ParameterSetName = ByWorkspaceNameByKind)]
40+
[ResourceGroupCompleter]
3941
[ValidateNotNullOrEmpty]
4042
public string ResourceGroupName { get; set; }
4143

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/DataSources/NewDataSourceCmdletsPerKind/NewAzureOperationalInsightsAzureActivityLogDataSourceCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
using System.Management.Automation;
2424
using Microsoft.WindowsAzure.Commands.Common;
2525
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
26+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2627

2728
namespace Microsoft.Azure.Commands.OperationalInsights
2829
{
@@ -38,6 +39,7 @@ public class NewAzureOperationalInsightsAzureActivityLogDataSourceCommand : NewA
3839

3940
[Parameter(Position = 1, ParameterSetName = ByWorkspaceName, Mandatory = true, ValueFromPipelineByPropertyName = true,
4041
HelpMessage = "The resource group name.")]
42+
[ResourceGroupCompleter]
4143
[ValidateNotNullOrEmpty]
4244
public override string ResourceGroupName { get; set; }
4345

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/DataSources/NewDataSourceCmdletsPerKind/NewAzureOperationalInsightsCustomLogDataSourceCommand.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.OperationalInsights.Models;
1616
using Microsoft.Azure.Commands.OperationalInsights.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using Newtonsoft.Json;
1819
using Newtonsoft.Json.Linq;
1920
using System;
@@ -33,6 +34,7 @@ public class NewAzureOperationalInsightsCustomLogDataSourceCommand : NewAzureOpe
3334

3435
[Parameter(Position = 1, ParameterSetName = ByWorkspaceName, Mandatory = true, ValueFromPipelineByPropertyName = true,
3536
HelpMessage = "The resource group name.")]
37+
[ResourceGroupCompleter]
3638
[ValidateNotNullOrEmpty]
3739
public override string ResourceGroupName { get; set; }
3840

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/DataSources/NewDataSourceCmdletsPerKind/NewAzureOperationalInsightsLinuxPerformanceObjectDataSourceCommand.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.OperationalInsights.Models;
1616
using Microsoft.Azure.Commands.OperationalInsights.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using System;
1819
using System.Collections.Generic;
1920
using System.Linq;
@@ -32,6 +33,7 @@ public class NewAzureOperationalInsightsLinuxPerformanceObjectDataSourceCommand
3233

3334
[Parameter(Position = 1, ParameterSetName = ByWorkspaceName, Mandatory = true, ValueFromPipelineByPropertyName = true,
3435
HelpMessage = "The resource group name.")]
36+
[ResourceGroupCompleter]
3537
[ValidateNotNullOrEmpty]
3638
public override string ResourceGroupName { get; set; }
3739

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/DataSources/NewDataSourceCmdletsPerKind/NewAzureOperationalInsightsLinuxSyslogDataSourceCommand.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.OperationalInsights.Models;
1616
using Microsoft.Azure.Commands.OperationalInsights.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using System;
1819
using System.Collections.Generic;
1920
using System.Linq;
@@ -32,6 +33,7 @@ public class NewAzureOperationalInsightsLinuxSyslogDataSourceCommand : NewAzureO
3233

3334
[Parameter(Position = 1, ParameterSetName = ByWorkspaceName, Mandatory = true, ValueFromPipelineByPropertyName = true,
3435
HelpMessage = "The resource group name.")]
36+
[ResourceGroupCompleter]
3537
[ValidateNotNullOrEmpty]
3638
public override string ResourceGroupName { get; set; }
3739

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/DataSources/NewDataSourceCmdletsPerKind/NewAzureOperationalInsightsWindowsEventDataSourceCommand.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.OperationalInsights.Models;
1616
using Microsoft.Azure.Commands.OperationalInsights.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using System;
1819
using System.Collections.Generic;
1920
using System.Linq;
@@ -32,6 +33,7 @@ public class NewAzureOperationalInsightsWindowsEventDataSourceCommand : NewAzure
3233

3334
[Parameter(Position = 1, ParameterSetName = ByWorkspaceName, Mandatory = true, ValueFromPipelineByPropertyName = true,
3435
HelpMessage = "The resource group name.")]
36+
[ResourceGroupCompleter]
3537
[ValidateNotNullOrEmpty]
3638
public override string ResourceGroupName { get; set; }
3739

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/DataSources/NewDataSourceCmdletsPerKind/NewAzureOperationalInsightsWindowsPerformanceObjectDataSourceCommand.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.OperationalInsights.Models;
1616
using Microsoft.Azure.Commands.OperationalInsights.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using System;
1819
using System.Collections.Generic;
1920
using System.Linq;
@@ -32,6 +33,7 @@ public class NewAzureOperationalInsightsWindowsPerformanceCounterDataSourceComma
3233

3334
[Parameter(Position = 1, ParameterSetName = ByWorkspaceName, Mandatory = true, ValueFromPipelineByPropertyName = true,
3435
HelpMessage = "The resource group name.")]
36+
[ResourceGroupCompleter]
3537
[ValidateNotNullOrEmpty]
3638
public override string ResourceGroupName { get; set; }
3739

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/DataSources/RemoveAzureOperationalInsightsDataSourceCommand.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.OperationalInsights.Models;
1616
using Microsoft.Azure.Commands.OperationalInsights.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using System.Globalization;
1819
using System.Management.Automation;
1920
using System.Net;
@@ -31,6 +32,7 @@ public class RemoveAzureOperationalInsightsDataSourceCommand : NewAzureOperation
3132

3233
[Parameter(Position = 1, ParameterSetName = ByWorkspaceName, Mandatory = true, ValueFromPipelineByPropertyName = true,
3334
HelpMessage = "The resource group name.")]
35+
[ResourceGroupCompleter]
3436
[ValidateNotNullOrEmpty]
3537
public override string ResourceGroupName { get; set; }
3638

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/DataSources/SingletonDataSourceCmdlets/DisableAzureOperationalInsightsIISLogCollectionCommand.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.OperationalInsights.Models;
1616
using Microsoft.Azure.Commands.OperationalInsights.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using System;
1819
using System.Collections.Generic;
1920
using System.Linq;
@@ -32,6 +33,7 @@ public class DisableAzureOperationalInsightsIISLogCollectionCommand : AzureOpera
3233

3334
[Parameter(Position = 1, ParameterSetName = ByWorkspaceName, Mandatory = true, ValueFromPipelineByPropertyName = true,
3435
HelpMessage = "The resource group name.")]
36+
[ResourceGroupCompleter]
3537
[ValidateNotNullOrEmpty]
3638
public override string ResourceGroupName { get; set; }
3739

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/DataSources/SingletonDataSourceCmdlets/DisableAzureOperationalInsightsLinuxCustomLogCollectionCommand.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.OperationalInsights.Models;
1616
using Microsoft.Azure.Commands.OperationalInsights.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using System;
1819
using System.Collections.Generic;
1920
using System.Linq;
@@ -32,6 +33,7 @@ public class DisableAzureOperationalInsightsLinuxCustomLogCollectionCommand : Az
3233

3334
[Parameter(Position = 1, ParameterSetName = ByWorkspaceName, Mandatory = true, ValueFromPipelineByPropertyName = true,
3435
HelpMessage = "The resource group name.")]
36+
[ResourceGroupCompleter]
3537
[ValidateNotNullOrEmpty]
3638
public override string ResourceGroupName { get; set; }
3739

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/DataSources/SingletonDataSourceCmdlets/DisableAzureOperationalInsightsLinuxPerformanceCollectionCommand.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.OperationalInsights.Models;
1616
using Microsoft.Azure.Commands.OperationalInsights.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using System;
1819
using System.Collections.Generic;
1920
using System.Linq;
@@ -32,6 +33,7 @@ public class DisableAzureOperationalInsightsLinuxPerformanceCollectionCommand :
3233

3334
[Parameter(Position = 1, ParameterSetName = ByWorkspaceName, Mandatory = true, ValueFromPipelineByPropertyName = true,
3435
HelpMessage = "The resource group name.")]
36+
[ResourceGroupCompleter]
3537
[ValidateNotNullOrEmpty]
3638
public override string ResourceGroupName { get; set; }
3739

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/DataSources/SingletonDataSourceCmdlets/DisableAzureOperationalInsightsLinuxSyslogCollectionCommand.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.OperationalInsights.Models;
1616
using Microsoft.Azure.Commands.OperationalInsights.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using System;
1819
using System.Collections.Generic;
1920
using System.Linq;
@@ -32,6 +33,7 @@ public class DisableAzureOperationalInsightsLinuxSyslogCollectionCommand : Azure
3233

3334
[Parameter(Position = 1, ParameterSetName = ByWorkspaceName, Mandatory = true, ValueFromPipelineByPropertyName = true,
3435
HelpMessage = "The resource group name.")]
36+
[ResourceGroupCompleter]
3537
[ValidateNotNullOrEmpty]
3638
public override string ResourceGroupName { get; set; }
3739

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/DataSources/SingletonDataSourceCmdlets/EnableAzureOperationalInsightsIISLogCollectionCommand.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.OperationalInsights.Models;
1616
using Microsoft.Azure.Commands.OperationalInsights.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using System;
1819
using System.Collections.Generic;
1920
using System.Linq;
@@ -32,6 +33,7 @@ public class EnableAzureOperationalInsightsIISLogCollectionCommand : AzureOperat
3233

3334
[Parameter(Position = 1, ParameterSetName = ByWorkspaceName, Mandatory = true, ValueFromPipelineByPropertyName = true,
3435
HelpMessage = "The resource group name.")]
36+
[ResourceGroupCompleter]
3537
[ValidateNotNullOrEmpty]
3638
public override string ResourceGroupName { get; set; }
3739

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/DataSources/SingletonDataSourceCmdlets/EnableAzureOperationalInsightsLinuxCustomLogCollectionCommand.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.OperationalInsights.Models;
1616
using Microsoft.Azure.Commands.OperationalInsights.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using System;
1819
using System.Collections.Generic;
1920
using System.Linq;
@@ -32,6 +33,7 @@ public class EnableAzureOperationalInsightsLinuxCustomLogCollectionCommand : Azu
3233

3334
[Parameter(Position = 1, ParameterSetName = ByWorkspaceName, Mandatory = true, ValueFromPipelineByPropertyName = true,
3435
HelpMessage = "The resource group name.")]
36+
[ResourceGroupCompleter]
3537
[ValidateNotNullOrEmpty]
3638
public override string ResourceGroupName { get; set; }
3739

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/DataSources/SingletonDataSourceCmdlets/EnableAzureOperationalInsightsLinuxPerformanceCollectionCommand.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.OperationalInsights.Models;
1616
using Microsoft.Azure.Commands.OperationalInsights.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using System;
1819
using System.Collections.Generic;
1920
using System.Linq;
@@ -32,6 +33,7 @@ public class EnableAzureOperationalInsightsLinuxPerformanceCollectionCommand : A
3233

3334
[Parameter(Position = 1, ParameterSetName = ByWorkspaceName, Mandatory = true, ValueFromPipelineByPropertyName = true,
3435
HelpMessage = "The resource group name.")]
36+
[ResourceGroupCompleter]
3537
[ValidateNotNullOrEmpty]
3638
public override string ResourceGroupName { get; set; }
3739

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/DataSources/SingletonDataSourceCmdlets/EnableAzureOperationalInsightsLinuxSyslogCollectionCommand.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.OperationalInsights.Models;
1616
using Microsoft.Azure.Commands.OperationalInsights.Properties;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using System;
1819
using System.Collections.Generic;
1920
using System.Linq;
@@ -32,6 +33,7 @@ public class EnableAzureOperationalInsightsLinuxSyslogCollectionCommand : AzureO
3233

3334
[Parameter(Position = 1, ParameterSetName = ByWorkspaceName, Mandatory = true, ValueFromPipelineByPropertyName = true,
3435
HelpMessage = "The resource group name.")]
36+
[ResourceGroupCompleter]
3537
[ValidateNotNullOrEmpty]
3638
public override string ResourceGroupName { get; set; }
3739

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Search/GetAzureOperationalInsightsSavedSearchCommand.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.OperationalInsights.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System.Management.Automation;
1718

1819
namespace Microsoft.Azure.Commands.OperationalInsights
@@ -22,6 +23,7 @@ public class GetAzureOperationalInsightsSavedSearchCommand : OperationalInsights
2223
{
2324
[Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true,
2425
HelpMessage = "The resource group name.")]
26+
[ResourceGroupCompleter]
2527
[ValidateNotNullOrEmpty]
2628
public string ResourceGroupName { get; set; }
2729

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Search/GetAzureOperationalInsightsSavedSearchResultsCommand.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.OperationalInsights.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System.Management.Automation;
1718

1819
namespace Microsoft.Azure.Commands.OperationalInsights
@@ -22,6 +23,7 @@ public class GetAzureOperationalInsightsSavedSearchResultsCommand : OperationalI
2223
{
2324
[Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true,
2425
HelpMessage = "The resource group name.")]
26+
[ResourceGroupCompleter]
2527
[ValidateNotNullOrEmpty]
2628
public string ResourceGroupName { get; set; }
2729

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Search/GetAzureOperationalInsightsSchemaCommand.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.OperationalInsights.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System.Management.Automation;
1718

1819
namespace Microsoft.Azure.Commands.OperationalInsights
@@ -22,6 +23,7 @@ public class GetAzureOperationalInsightsSchemaCommand : OperationalInsightsBaseC
2223
{
2324
[Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true,
2425
HelpMessage = "The resource group name.")]
26+
[ResourceGroupCompleter]
2527
[ValidateNotNullOrEmpty]
2628
public string ResourceGroupName { get; set; }
2729

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Search/GetAzureOperationalInsightsSearchResultsCommand.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.OperationalInsights.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System;
1718
using System.Management.Automation;
1819

@@ -23,6 +24,7 @@ public class GetAzureOperationalInsightsSearchResultsCommand : OperationalInsigh
2324
{
2425
[Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true,
2526
HelpMessage = "The name of the resource group that contains the workspace.")]
27+
[ResourceGroupCompleter]
2628
[ValidateNotNullOrEmpty]
2729
public string ResourceGroupName { get; set; }
2830

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Search/NewAzureOperationalInsightsComputerGroupCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
using System.Management.Automation;
1818
using Microsoft.Azure.Commands.OperationalInsights.Models;
1919
using Microsoft.Azure.Management.OperationalInsights.Models;
20+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2021

2122
namespace Microsoft.Azure.Commands.OperationalInsights
2223
{
@@ -25,6 +26,7 @@ public class NewAzureOperationalInsightsComputerGroupCommand : OperationalInsigh
2526
{
2627
[Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true,
2728
HelpMessage = "The resource group name.")]
29+
[ResourceGroupCompleter]
2830
[ValidateNotNullOrEmpty]
2931
public string ResourceGroupName { get; set; }
3032

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Search/NewAzureOperationalInsightsSavedSearchCommand.cs

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

1920
namespace Microsoft.Azure.Commands.OperationalInsights
2021
{
@@ -23,6 +24,7 @@ public class NewAzureOperationalInsightsSavedSearchCommand : OperationalInsights
2324
{
2425
[Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true,
2526
HelpMessage = "The resource group name.")]
27+
[ResourceGroupCompleter]
2628
[ValidateNotNullOrEmpty]
2729
public string ResourceGroupName { get; set; }
2830

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Search/RemoveAzureOperationalInsightsSavedSearchCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
using System.Globalization;
1818
using System.Management.Automation;
1919
using System.Net;
20+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2021

2122
namespace Microsoft.Azure.Commands.OperationalInsights
2223
{
@@ -25,6 +26,7 @@ public class RemoveAzureOperationalInsightsSavedSearchCommand : OperationalInsig
2526
{
2627
[Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true,
2728
HelpMessage = "The resource group name.")]
29+
[ResourceGroupCompleter]
2830
[ValidateNotNullOrEmpty]
2931
public string ResourceGroupName { get; set; }
3032

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Search/SetAzureOperationalInsightsSavedSearch.cs

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

1920
namespace Microsoft.Azure.Commands.OperationalInsights
2021
{
@@ -23,6 +24,7 @@ public class SetAzureOperationalInsightsSavedSearchCommand : OperationalInsights
2324
{
2425
[Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true,
2526
HelpMessage = "The resource group name.")]
27+
[ResourceGroupCompleter]
2628
[ValidateNotNullOrEmpty]
2729
public string ResourceGroupName { get; set; }
2830

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/StorageInsights/GetAzureOperationalInsightsStorageInsightCommand.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.OperationalInsights.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System.Collections.Generic;
1718
using System.Management.Automation;
1819

@@ -28,6 +29,7 @@ public class GetAzureOperationalInsightsStorageInsightCommand : OperationalInsig
2829

2930
[Parameter(Position = 1, ParameterSetName = ByWorkspaceName, Mandatory = true, ValueFromPipelineByPropertyName = true,
3031
HelpMessage = "The resource group name.")]
32+
[ResourceGroupCompleter]
3133
[ValidateNotNullOrEmpty]
3234
public string ResourceGroupName { get; set; }
3335

0 commit comments

Comments
 (0)