Skip to content

Commit 0258ac4

Browse files
author
{ravi kumar bulusu}
committed
added missing lines in main.bicep file
1 parent 728904a commit 0258ac4

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

src/InfrastructureAsCode/main.bicep

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,62 @@ var imageName = 'techexcel/dotnetcoreapp'
1515
var startupCommand = ''
1616

1717
// TODO: complete this script
18+
resource appServicePlan 'Microsoft.Web/serverfarms@2021-02-01' = {
19+
name: appServicePlanName
20+
location: location
21+
sku: {
22+
name: sku
23+
tier: 'Standard'
24+
}
25+
properties: {
26+
reserved: true
27+
}
28+
}
29+
30+
resource webApp 'Microsoft.Web/sites@2021-02-01' = {
31+
name: webAppName
32+
location: location
33+
properties: {
34+
serverFarmId: appServicePlan.id
35+
siteConfig: {
36+
linuxFxVersion: 'DOCKER|${imageName}'
37+
appCommandLine: startupCommand
38+
}
39+
}
40+
}
41+
42+
resource logAnalytics 'Microsoft.OperationalInsights/workspaces@2021-06-01' = {
43+
name: logAnalyticsName
44+
location: location
45+
properties: {
46+
sku: {
47+
name: 'PerGB2018'
48+
}
49+
}
50+
}
51+
52+
resource appInsights 'Microsoft.Insights/components@2020-02-02' = {
53+
name: appInsightsName
54+
location: location
55+
kind: 'web'
56+
properties: {
57+
Application_Type: 'web'
58+
}
59+
}
60+
61+
resource containerRegistry 'Microsoft.ContainerRegistry/registries@2021-06-01-preview' = {
62+
name: registryName
63+
location: location
64+
sku: {
65+
name: registrySku
66+
}
67+
properties: {
68+
adminUserEnabled: true
69+
}
70+
}
71+
72+
output webAppName string = webAppName
73+
output appServicePlanName string = appServicePlanName
74+
output logAnalyticsName string = logAnalyticsName
75+
output appInsightsName string = appInsightsName
76+
output registryName string = registryName

0 commit comments

Comments
 (0)