-
Notifications
You must be signed in to change notification settings - Fork 207
/
AppService.json
75 lines (72 loc) · 2.74 KB
/
AppService.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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"appservicename": {
"type": "String",
"metadata": {
"description": "Name of the web app"
}
},
"serviceplanname": {
"type": "String",
"metadata": {
"description": "Name of the App Service Plan"
}
},
"location": {
"defaultValue": "South Central US",
"type": "String",
"metadata": {
"description": "Location of AppService"
}
}
},
"variables": { },
"resources": [
{
"name": "[parameters('serviceplanname')]",
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2016-09-01",
"location": "[parameters('location')]",
"properties": {
},
"sku": {
"name": "S1",
"tier": "Standard",
"size": "S1",
"capacity": 2 //[Azure_AppService_BCDR_Use_Multiple_Instances] deploy app service on a minimum of two instances to ensure availability
}
},
{
"name": "[parameters('appservicename')]",
"type": "Microsoft.Web/sites",
"apiVersion": "2016-08-01",
"location": "[parameters('location')]",
"identity": {
"type": "SystemAssigned"
},
"properties": {
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('serviceplanname'))]",
"httpsOnly": true, //[Azure_AppService_DP_Dont_Allow_HTTP_Access]
"siteConfig": {
"alwaysOn": true, //[Azure_AppService_BCDR_Use_AlwaysOn] enable 'always on']
"use32BitWorkerProcess": false,
"requestTracingEnabled": true, //[Azure_AppService_Audit_Enable_Logging_and_Monitoring] enable auditing and monitoring
"httpLoggingEnabled": true, //[Azure_AppService_Audit_Enable_Logging_and_Monitoring] enable auditing and monitoring
"detailedErrorLoggingEnabled": true, //[Azure_AppService_Audit_Enable_Logging_and_Monitoring] enable auditing and monitoring
"remoteDebuggingEnabled": false, //[Azure_AppService_Config_Disable_Remote_Debugging]
"webSocketsEnabled": false, //[Azure_AppService_Config_Disable_Web_Sockets]
"siteAuthEnabled":true, //[Azure_AppService_AuthN_Use_AAD_for_Client_AuthN]
"netFrameworkVersion":"v4.7",// [Azure_AppService_Deploy_Use_Latest_Version]
"siteAuthSettings":{
"clientId":"***********ClientId*********" //[Azure_AppService_AuthN_Use_AAD_for_Client_AuthN]
}
}
},
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', parameters('serviceplanname'))]"
]
}
]
}