-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdotnetApp.json
122 lines (122 loc) · 3.71 KB
/
dotnetApp.json
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.9.1.41621",
"templateHash": "15114746202926681573"
}
},
"parameters": {
"appName": {
"type": "string",
"defaultValue": "[format('OOA-{0}', uniqueString(resourceGroup().id))]",
"metadata": {
"description": "Name that will be used to build associated artifacts"
}
},
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "Location for all resources."
}
},
"skuName": {
"type": "string",
"defaultValue": "S1",
"metadata": {
"description": "Which # tier our App Service Plan to"
}
},
"skuCapacity": {
"type": "int",
"defaultValue": 1,
"metadata": {
"description": "How many instances of our app service will be scaled out to"
}
},
"repoURL": {
"type": "string",
"defaultValue": "https://github.com/MSUSSolutionAccelerators/Overdose-Prevention-Solution-Accelerator.git",
"metadata": {
"description": "The URL for the GitHub repository that contains the project to deploy."
}
},
"branch": {
"type": "string",
"defaultValue": "main",
"metadata": {
"description": "The branch of the GitHub repository to use."
}
}
},
"variables": {
"appServicePlanName": "[format('asp-{0}', parameters('appName'))]",
"webSiteName": "[toLower(format('wapp-{0}', parameters('appName')))]"
},
"resources": [
{
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2020-12-01",
"name": "[variables('appServicePlanName')]",
"location": "[parameters('location')]",
"sku": {
"name": "[parameters('skuName')]",
"capacity": "[parameters('skuCapacity')]"
},
"tags": {
"displayName": "HostingPlan",
"ProjectName": "[parameters('appName')]"
}
},
{
"type": "Microsoft.Web/sites",
"apiVersion": "2020-12-01",
"name": "[variables('webSiteName')]",
"location": "[parameters('location')]",
"identity": {
"type": "SystemAssigned"
},
"tags": {
"displayName": "Website",
"ProjectName": "[parameters('appName')]"
},
"properties": {
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('appServicePlanName'))]"
},
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', variables('appServicePlanName'))]"
]
},
{
"type": "Microsoft.Web/sites/sourcecontrols",
"apiVersion": "2020-12-01",
"name": "[format('{0}/{1}', variables('webSiteName'), 'web')]",
"location": "[parameters('location')]",
"properties": {
"repoUrl": "[parameters('repoURL')]",
"branch": "[parameters('branch')]",
"isManualIntegration": true
},
"dependsOn": [
"[resourceId('Microsoft.Web/sites', variables('webSiteName'))]",
"[resourceId('Microsoft.Web/sites/config', variables('webSiteName'), 'appsettings')]"
]
},
{
"type": "Microsoft.Web/sites/config",
"apiVersion": "2021-03-01",
"name": "[format('{0}/{1}', variables('webSiteName'), 'appsettings')]",
"properties": {
"PROJECT": "Overdose-Accelerator-Web\\OverdoseAcceleratorWeb.csproj",
"clientUrl": "[format('http://{0}.azurewebsites.net', parameters('appName'))]",
"netFrameworkVersion": "v6.0"
},
"dependsOn": [
"[resourceId('Microsoft.Web/sites', variables('webSiteName'))]"
]
}
]
}