Skip to content

Commit 09e257b

Browse files
committed
ARM template enhanced
1 parent 35c929c commit 09e257b

File tree

1 file changed

+24
-34
lines changed

1 file changed

+24
-34
lines changed

ARM_template.json

Lines changed: 24 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -12,38 +12,21 @@
1212
"SKU": {
1313
"defaultValue": "F1",
1414
"type": "String",
15+
"metadata": {
16+
"description": "The SKU of App Service Plan (e.g B1, B2, POV3, P2MV3, I3MV2, I6V2 etc.)."
17+
}
18+
},
19+
"ApplicationLogLevel": {
20+
"defaultValue": "INFO",
21+
"type": "String",
1522
"allowedValues": [
16-
"B1",
17-
"B2",
18-
"B3",
19-
"D1",
20-
"F1",
21-
"FREE",
22-
"I1",
23-
"I1v2",
24-
"I2",
25-
"I2v2",
26-
"I3",
27-
"I3v2",
28-
"P1V2",
29-
"P1V3",
30-
"P2V2",
31-
"P2V3",
32-
"P3V2",
33-
"P3V3",
34-
"PC2",
35-
"PC3",
36-
"PC4",
37-
"S1",
38-
"S2",
39-
"S3",
40-
"SHARED",
41-
"WS1",
42-
"WS2",
43-
"WS3"
23+
"DEBUG",
24+
"INFO",
25+
"WARNING",
26+
"ERROR"
4427
],
4528
"metadata": {
46-
"description": "The SKU of App Service Plan."
29+
"description": "The Level of logging for the application."
4730
}
4831
},
4932
"MongodbConnectionString": {
@@ -96,13 +79,19 @@
9679
}
9780
},
9881
"IncrementalSyncBatchSize": {
99-
"defaultValue": "10000",
82+
"defaultValue": "1000",
10083
"type": "String",
10184
"metadata": {
10285
"description": "Batch size (rows) used for incremental sync"
10386
}
104-
}
105-
87+
},
88+
"IncrementalSyncMaxTimeInterval": {
89+
"defaultValue": "180",
90+
"type": "String",
91+
"metadata": {
92+
"description": "Time interval (in secs), incremental sync waits before replicating accumulated changes when next event occurs"
93+
}
94+
}
10695
},
10796
"variables": {
10897
"appServicePlanPortalName": "[format('AppServicePlan-{0}', parameters('webAppName'))]"
@@ -150,7 +139,7 @@
150139
"[resourceId('Microsoft.Web/sites', parameters('webAppName'))]"
151140
],
152141
"properties": {
153-
"LOG_LEVEL": "INFO",
142+
"APP_LOG_LEVEL": "[parameters('ApplicationLogLevel')]",
154143
"MONGO_CONN_STR": "[parameters('MongodbConnectionString')]",
155144
"MONGO_DB_NAME": "[parameters('MongodbDatabaseName')]",
156145
"MONGO_COLLECTION": "[parameters('MongodbCollection')]",
@@ -159,7 +148,8 @@
159148
"SECRET": "[parameters('AzureApplicationSecret')]",
160149
"TENANT_ID": "[parameters('AzureApplicationTenantID')]",
161150
"INIT_LOAD_BATCH_SIZE": "[parameters('InitSyncBatchSize')]",
162-
"DELTA_SYNC_BATCH_SIZE": "[parameters('IncrementalSyncBatchSize')]"
151+
"DELTA_SYNC_BATCH_SIZE": "[parameters('IncrementalSyncBatchSize')]",
152+
"TIME_THRESHOLD_IN_SEC": "[parameters('IncrementalSyncMaxTimeInterval')]"
163153
}
164154
},
165155
{

0 commit comments

Comments
 (0)