Skip to content

Commit d3acb18

Browse files
haitchhaitch
authored andcommitted
remove AzureAuditLog datasource as it has been migrated to AzureActivityLog
1 parent 9b28fbe commit d3acb18

File tree

7 files changed

+10
-59
lines changed

7 files changed

+10
-59
lines changed

src/ResourceManager/OperationalInsights/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
-->
2020
## Current Release
2121
* Get-AzureRmOperationalInsightsSearchResults no longer requires the Top parameter to retrieve results
22+
* AzureAuditLog is nolonger a kind for Get-AzureRmOperationalInsightsDataSource.
23+
- Use AzureActivityLog instead.
24+
- All existing datasource has been migrated over to AzureActivityLog.
2225

2326
## Version 2.4.0
2427

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/AzureRM.OperationalInsights.Help.pshproj

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0"?>
1+
<?xml version="1.0"?>
22
<ModuleObject xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" fVersion="1.1" type="Manifest" mclass="Module" useSupports="false">
33
<Name>AzureRM.OperationalInsights</Name>
44
<Version>1.0.11</Version>
@@ -949,18 +949,16 @@
949949
<ReturnTypeDescription />
950950
</GeneralHelp>
951951
<ParamSets>
952-
<CommandParameterSetInfo2 Name="ByWorkspaceName" Params="Verbose Debug ErrorAction WarningAction InformationAction ErrorVariable WarningVariable InformationVariable OutVariable OutBuffer PipelineVariable" />
953952
<CommandParameterSetInfo2 Name="ByWorkspaceObjectByName" Params="Workspace Name Verbose Debug ErrorAction WarningAction InformationAction ErrorVariable WarningVariable InformationVariable OutVariable OutBuffer PipelineVariable" />
954953
<CommandParameterSetInfo2 Name="ByWorkspaceObjectByKind" Params="Workspace Kind Verbose Debug ErrorAction WarningAction InformationAction ErrorVariable WarningVariable InformationVariable OutVariable OutBuffer PipelineVariable" />
955954
<CommandParameterSetInfo2 Name="ByWorkspaceNameByName" Params="ResourceGroupName WorkspaceName Name Verbose Debug ErrorAction WarningAction InformationAction ErrorVariable WarningVariable InformationVariable OutVariable OutBuffer PipelineVariable" />
956955
<CommandParameterSetInfo2 Name="ByWorkspaceNameByKind" Params="ResourceGroupName WorkspaceName Kind Verbose Debug ErrorAction WarningAction InformationAction ErrorVariable WarningVariable InformationVariable OutVariable OutBuffer PipelineVariable" />
957956
</ParamSets>
958957
<Syntax>
959-
<string>Get-AzureRmOperationalInsightsDataSource [-InformationAction &lt;ActionPreference&gt;] [-InformationVariable &lt;String&gt;]</string>
960-
<string>Get-AzureRmOperationalInsightsDataSource [-Workspace] &lt;PSWorkspace&gt; [-Name &lt;String&gt;] [-InformationAction &lt;ActionPreference&gt;] [-InformationVariable &lt;String&gt;]</string>
961-
<string>Get-AzureRmOperationalInsightsDataSource [-Workspace &lt;PSWorkspace&gt;] [-Kind &lt;String&gt; {AzureAuditLog | CustomLog | LinuxPerformanceObject | LinuxSyslog | WindowsEvent | WindowsPerformanceCounter} ] [-InformationAction &lt;ActionPreference&gt;] [-InformationVariable &lt;String&gt;]</string>
962-
<string>Get-AzureRmOperationalInsightsDataSource [-ResourceGroupName] &lt;String&gt; [-WorkspaceName] &lt;String&gt; [-Name] &lt;String&gt; [-InformationAction &lt;ActionPreference&gt;] [-InformationVariable &lt;String&gt;]</string>
963-
<string>Get-AzureRmOperationalInsightsDataSource [-ResourceGroupName &lt;String&gt;] [-WorkspaceName &lt;String&gt;] [-Kind] &lt;String&gt; {AzureAuditLog | CustomLog | LinuxPerformanceObject | LinuxSyslog | WindowsEvent | WindowsPerformanceCounter} [-InformationAction &lt;ActionPreference&gt;] [-InformationVariable &lt;String&gt;]</string>
958+
<string>Get-AzureRmOperationalInsightsDataSource [-Workspace] &lt;PSWorkspace&gt; [-Name &lt;String&gt;] </string>
959+
<string>Get-AzureRmOperationalInsightsDataSource [-Workspace &lt;PSWorkspace&gt;] [-Kind &lt;String&gt; {AzureActivityLog | CustomLog | LinuxPerformanceObject | LinuxSyslog | WindowsEvent | WindowsPerformanceCounter} ]</string>
960+
<string>Get-AzureRmOperationalInsightsDataSource [-ResourceGroupName] &lt;String&gt; [-WorkspaceName] &lt;String&gt; [-Name] &lt;String&gt;</string>
961+
<string>Get-AzureRmOperationalInsightsDataSource [-ResourceGroupName &lt;String&gt;] [-WorkspaceName &lt;String&gt;] [-Kind] &lt;String&gt; {AzureActivityLog | CustomLog | LinuxPerformanceObject | LinuxSyslog | WindowsEvent | WindowsPerformanceCounter} </string>
964962
</Syntax>
965963
<Parameters>
966964
<ParameterDescription type="ActionPreference" varLen="false" required="false" dynamic="false" pipeRemaining="false" pipe="false" pipeProp="false" isPos="false" pos="named" globbing="false">

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Commands.OperationalInsights.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@
154154
<Compile Include="Models\DataSourcePropertiesPerKind\PSLinuxSyslogDataSourceProperties.cs" />
155155
<Compile Include="Models\DataSourcePropertiesPerKind\PSLinuxSyslogCollectionDataSourceProperties.cs" />
156156
<Compile Include="Models\DataSourcePropertiesPerKind\PSWindowsEventDataSourceProperties.cs" />
157-
<Compile Include="Models\DataSourcePropertiesPerKind\PSAzureAuditLogDataSourceProperties.cs" />
158157
<Compile Include="Models\PSCoreSummary.cs" />
159158
<Compile Include="Models\PSDataSource.cs" />
160159
<Compile Include="Models\PSSearchError.cs" />

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/DataSources/GetAzureOperationalInsightsDataSourceCommand.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ public class GetAzureOperationalInsightsDataSourceCommand : OperationalInsightsB
5757
HelpMessage = "The data source name.")]
5858
[Parameter(ParameterSetName = ByWorkspaceObjectByKind)]
5959
[ValidateSet(
60-
PSDataSourceKinds.AzureAuditLog,
6160
PSDataSourceKinds.AzureActivityLog,
6261
PSDataSourceKinds.CustomLog,
6362
PSDataSourceKinds.LinuxPerformanceObject,

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Models/DataSourcePropertiesPerKind/PSAzureAuditLogDataSourceProperties.cs

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Models/PSDataSource.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public override string ToString()
3535
}
3636

3737
public class PSDataSourceKinds {
38-
public const string AzureAuditLog = "AzureAuditLog";
3938
public const string AzureActivityLog = "AzureActivityLog";
4039
public const string IISLogs = "IISLogs";
4140
public const string WindowsEvent = "WindowsEvent";
@@ -79,9 +78,6 @@ public PSDataSource(DataSource dataSource, string resourceGroupName, string work
7978
this.ResourceId = dataSource.Id;
8079
this.Kind = dataSource.Kind;
8180
switch(this.Kind){
82-
case PSDataSourceKinds.AzureAuditLog:
83-
this.Properties = JsonConvert.DeserializeObject<PSAzureAuditLogDataSourceProperties>(dataSource.Properties);
84-
break;
8581
case PSDataSourceKinds.AzureActivityLog:
8682
this.Properties = JsonConvert.DeserializeObject<PSAzureActivityLogDataSourceProperties>(dataSource.Properties);
8783
break;

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/help/Get-AzureRmOperationalInsightsDataSource.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,7 @@ Gets data sources.
1212

1313
## SYNTAX
1414

15-
### ByWorkspaceName (Default)
16-
```
17-
Get-AzureRmOperationalInsightsDataSource [-InformationAction <ActionPreference>]
18-
[-InformationVariable <String>] [<CommonParameters>]
19-
```
20-
21-
### ByWorkspaceObjectByName
15+
### ByWorkspaceObjectByName (Default)
2216
```
2317
Get-AzureRmOperationalInsightsDataSource [-Workspace] <PSWorkspace> [-Name <String>]
2418
[-InformationAction <ActionPreference>] [-InformationVariable <String>] [<CommonParameters>]
@@ -153,7 +147,7 @@ Accept wildcard characters: False
153147
Specifies the kind of data sources to get.
154148
The acceptable values for this parameter are:
155149
156-
- AzureAuditLog
150+
- AzureActivityLog
157151
- CustomLog
158152
- LinuxPerformanceObject
159153
- LinuxSyslog

0 commit comments

Comments
 (0)