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

0 commit comments

Comments
 (0)