@@ -28,7 +28,7 @@ function Test-DataSourceCreateUpdateDelete
28
28
New-AzureRmResourceGroup - Name $rgname - Location $wslocation - Force
29
29
30
30
# Create a workspace to house the data sources
31
- $workspace = New-AzureRmOperationalInsightsWorkspace - ResourceGroupName $rgname - Name $wsname - Location $wslocation - Force
31
+ $workspace = New-AzureRmOperationalInsightsWorkspace - ResourceGroupName $rgname - Name $wsname - Location $wslocation - Sku premium - Force
32
32
33
33
# Create a data source
34
34
$dataSource = New-AzureRmOperationalInsightsAzureActivityLogDataSource - Workspace $workspace - Name $dsName - SubscriptionId $subId1
@@ -114,7 +114,7 @@ function Test-CreateAllKindsOfDataSource
114
114
New-AzureRmResourceGroup - Name $rgname - Location $wslocation - Force
115
115
116
116
# Create a workspace to house the data source
117
- $workspace = New-AzureRmOperationalInsightsWorkspace - ResourceGroupName $rgname - Name $wsname - Location $wslocation - Force
117
+ $workspace = New-AzureRmOperationalInsightsWorkspace - ResourceGroupName $rgname - Name $wsname - Location $wslocation - Sku premium - Force
118
118
119
119
# AzureActivityLog data source
120
120
$auditLogDataSource = New-AzureRmOperationalInsightsAzureActivityLogDataSource - Workspace $workspace - Name " myAuditLog" - SubscriptionId $subId1
@@ -123,7 +123,7 @@ function Test-CreateAllKindsOfDataSource
123
123
$windowsEventDataSource = New-AzureRmOperationalInsightsWindowsEventDataSource - Workspace $workspace - Name Application - EventLogName " Application" - CollectErrors - CollectWarnings - CollectInformation
124
124
125
125
# windows performance data source
126
- $windowsPerfDataSource = New-AzureRmOperationalInsightsWindowsPerformanceCounterDataSource - Workspace $workspace - Name " processorPerf" - ObjectName Processor - InstanceName * - CounterName " % Processor Time" - IntervalSeconds 10
126
+ $windowsPerfDataSource = New-AzureRmOperationalInsightsWindowsPerformanceCounterDataSource - Workspace $workspace - Name " processorPerf" - ObjectName Processor - InstanceName * - CounterName " % Processor Time" - IntervalSeconds 10 - UseLegacyCollector
127
127
128
128
# linux syslog data source
129
129
$syslogDataSource = New-AzureRmOperationalInsightsLinuxSyslogDataSource - Workspace $workspace - Name " syslog-local1" - Facility " local1" - CollectEmergency - CollectAlert - CollectCritical - CollectError - CollectWarning - CollectNotice - CollectDebug - CollectInformational
0 commit comments