-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcreate.bicep
36 lines (32 loc) · 1.01 KB
/
create.bicep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
param namePrefix string
param location string
@export()
type Sku = {
name: 'PerGB2018' | 'CapacityReservation' | 'Free' | 'LACluster' | 'PerGB2018' | 'PerNode' | 'Premium' | 'Standalone' | 'Standard'
}
param sku Sku
resource appInsightsWorkspace 'Microsoft.OperationalInsights/workspaces@2023-09-01' = {
name: '${namePrefix}-insightsWorkspace'
location: location
properties: {
retentionInDays: 30
sku: sku
workspaceCapping: {
dailyQuotaGb: -1
}
}
}
resource appInsights 'Microsoft.Insights/components@2020-02-02' = {
name: '${namePrefix}-applicationInsights'
location: location
kind: 'web'
properties: {
Application_Type: 'web'
WorkspaceResourceId: appInsightsWorkspace.id
Flow_Type: 'Bluefield'
Request_Source: 'rest'
}
}
output connectionString string = appInsights.properties.ConnectionString
output appInsightsWorkspaceName string = appInsightsWorkspace.name
output appInsightsName string = appInsights.name