Skip to content

Commit e1015a7

Browse files
author
Haitao Chen
committed
Add alias to map AzureAuditLog datasource to AzureActivityLog
1 parent 4b6a143 commit e1015a7

File tree

4 files changed

+4
-62
lines changed

4 files changed

+4
-62
lines changed

src/ResourceManager/OperationalInsights/AzureRM.OperationalInsights.psd1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ CmdletsToExport = '*'
7676
VariablesToExport = '*'
7777

7878
# Aliases to export from this module
79-
AliasesToExport = @()
79+
AliasesToExport = @(
80+
'New-AzureRmOperationalInsightsAzureAuditDataSource'
81+
)
8082

8183
# List of all modules packaged with this module
8284
ModuleList = @()

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@
201201
<Compile Include="Search\SetAzureOperationalInsightsSavedSearch.cs" />
202202
<Compile Include="Search\RemoveAzureOperationalInsightsSavedSearchCommand.cs" />
203203
<Compile Include="DataSources\GetAzureOperationalInsightsDataSourceCommand.cs" />
204-
<Compile Include="DataSources\NewDataSourceCmdletsPerKind\NewAzureOperationalInsightsAzureAuditDataSourceCommand.cs" />
205204
<Compile Include="DataSources\RemoveAzureOperationalInsightsDataSourceCommand.cs" />
206205
<Compile Include="DataSources\SetAzureOperationalInsightsDataSourceCommand.cs" />
207206
<Compile Include="StorageInsights\GetAzureOperationalInsightsStorageInsightCommand.cs" />

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ namespace Microsoft.Azure.Commands.OperationalInsights
2222
{
2323
[Cmdlet(VerbsCommon.New, "AzureRmOperationalInsightsAzureActivityLogDataSource", SupportsShouldProcess = true,
2424
DefaultParameterSetName = ByWorkspaceName), OutputType(typeof(PSDataSource))]
25+
[Alias("New-AzureRmOperationalInsightsAzureAuditDataSource")]
2526
public class NewAzureOperationalInsightsAzureActivityLogDataSourceCommand : NewAzureOperationalInsightsDataSourceBaseCmdlet
2627
{
2728
[Parameter(Position = 0, ParameterSetName = ByWorkspaceObject, Mandatory = true, ValueFromPipeline = true,

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

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

0 commit comments

Comments
 (0)