Skip to content

Commit c5d5833

Browse files
fix: Merge pull request #253 from microsoft/psl-bug-14653
fix: Updated workspace based insights
2 parents 511a2f2 + 043017a commit c5d5833

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

infra/deploy_ai_foundry.bicep

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ var aiServicesName_cu = '${solutionName}-aiservices_cu'
1818
var location_cu = cuLocation
1919
// var aiServicesName_m = '${solutionName}-aiservices_m'
2020
// var location_m = solutionLocation
21+
var workspaceName = '${solutionName}-workspace'
2122
var applicationInsightsName = '${solutionName}-appinsights'
2223
var containerRegistryName = '${solutionName}acr'
2324
var keyvaultName = '${solutionName}-kv'
@@ -55,21 +56,27 @@ resource keyVault 'Microsoft.KeyVault/vaults@2022-07-01' existing = {
5556
name: keyVaultName
5657
}
5758

59+
resource logAnalytics 'Microsoft.OperationalInsights/workspaces@2023-09-01' = {
60+
name: workspaceName
61+
location: location
62+
tags: {}
63+
properties: {
64+
retentionInDays: 30
65+
sku: {
66+
name: 'PerGB2018'
67+
}
68+
}
69+
}
70+
5871
resource applicationInsights 'Microsoft.Insights/components@2020-02-02' = {
5972
name: applicationInsightsName
6073
location: location
6174
kind: 'web'
6275
properties: {
6376
Application_Type: 'web'
64-
DisableIpMasking: false
65-
DisableLocalAuth: false
66-
Flow_Type: 'Bluefield'
67-
ForceCustomerStorageForProfiler: false
68-
ImmediatePurgeDataOn30Days: true
69-
IngestionMode: 'ApplicationInsights'
7077
publicNetworkAccessForIngestion: 'Enabled'
7178
publicNetworkAccessForQuery: 'Disabled'
72-
Request_Source: 'rest'
79+
WorkspaceResourceId: logAnalytics.id
7380
}
7481
}
7582

0 commit comments

Comments
 (0)