5
5
"_generator": {
6
6
"name": "bicep",
7
7
"version": "0.26.54.24096",
8
- "templateHash": "7715045314239280418 "
8
+ "templateHash": "15295378206128435887 "
9
9
}
10
10
},
11
11
"parameters": {
372
372
"metadata": {
373
373
"description": "Hosting model for the web apps. Containers are prebuilt and can be deployed faster, but code allows for more customization."
374
374
}
375
+ },
376
+ "logLevel": {
377
+ "type": "string",
378
+ "defaultValue": "INFO",
379
+ "allowedValues": [
380
+ "CRITICAL",
381
+ "ERROR",
382
+ "WARN",
383
+ "INFO",
384
+ "DEBUG"
385
+ ]
375
386
}
376
387
},
377
388
"variables": {
1506
1517
"AZURE_SEARCH_URL_COLUMN": "[parameters('azureSearchUrlColumn')]",
1507
1518
"AZURE_SPEECH_SERVICE_NAME": "[parameters('speechServiceName')]",
1508
1519
"AZURE_SPEECH_SERVICE_REGION": "[parameters('location')]",
1509
- "ORCHESTRATION_STRATEGY": "[parameters('orchestrationStrategy')]"
1520
+ "ORCHESTRATION_STRATEGY": "[parameters('orchestrationStrategy')]",
1521
+ "LOGLEVEL": "[parameters('logLevel')]"
1510
1522
}
1511
1523
}
1512
1524
},
2359
2371
"AZURE_SEARCH_URL_COLUMN": "[parameters('azureSearchUrlColumn')]",
2360
2372
"AZURE_SPEECH_SERVICE_NAME": "[parameters('speechServiceName')]",
2361
2373
"AZURE_SPEECH_SERVICE_REGION": "[parameters('location')]",
2362
- "ORCHESTRATION_STRATEGY": "[parameters('orchestrationStrategy')]"
2374
+ "ORCHESTRATION_STRATEGY": "[parameters('orchestrationStrategy')]",
2375
+ "LOGLEVEL": "[parameters('logLevel')]"
2363
2376
}
2364
2377
}
2365
2378
},
3215
3228
"BACKEND_URL": "[format('https://{0}.azurewebsites.net', parameters('functionName'))]",
3216
3229
"DOCUMENT_PROCESSING_QUEUE_NAME": "[variables('queueName')]",
3217
3230
"FUNCTION_KEY": "[variables('clientKey')]",
3218
- "ORCHESTRATION_STRATEGY": "[parameters('orchestrationStrategy')]"
3231
+ "ORCHESTRATION_STRATEGY": "[parameters('orchestrationStrategy')]",
3232
+ "LOGLEVEL": "[parameters('logLevel')]"
3219
3233
}
3220
3234
}
3221
3235
},
4137
4151
"BACKEND_URL": "[format('https://{0}-docker.azurewebsites.net', parameters('functionName'))]",
4138
4152
"DOCUMENT_PROCESSING_QUEUE_NAME": "[variables('queueName')]",
4139
4153
"FUNCTION_KEY": "[variables('clientKey')]",
4140
- "ORCHESTRATION_STRATEGY": "[parameters('orchestrationStrategy')]"
4154
+ "ORCHESTRATION_STRATEGY": "[parameters('orchestrationStrategy')]",
4155
+ "LOGLEVEL": "[parameters('logLevel')]"
4141
4156
}
4142
4157
}
4143
4158
},
6780
6795
"AZURE_SEARCH_INDEX": "[parameters('azureSearchIndex')]",
6781
6796
"AZURE_SEARCH_SERVICE": "[format('https://{0}.search.windows.net', parameters('azureAISearchName'))]",
6782
6797
"DOCUMENT_PROCESSING_QUEUE_NAME": "[variables('queueName')]",
6783
- "ORCHESTRATION_STRATEGY": "[parameters('orchestrationStrategy')]"
6798
+ "ORCHESTRATION_STRATEGY": "[parameters('orchestrationStrategy')]",
6799
+ "LOGLEVEL": "[parameters('logLevel')]"
6784
6800
}
6785
6801
}
6786
6802
},
7996
8012
"AZURE_SEARCH_INDEX": "[parameters('azureSearchIndex')]",
7997
8013
"AZURE_SEARCH_SERVICE": "[format('https://{0}.search.windows.net', parameters('azureAISearchName'))]",
7998
8014
"DOCUMENT_PROCESSING_QUEUE_NAME": "[variables('queueName')]",
7999
- "ORCHESTRATION_STRATEGY": "[parameters('orchestrationStrategy')]"
8015
+ "ORCHESTRATION_STRATEGY": "[parameters('orchestrationStrategy')]",
8016
+ "LOGLEVEL": "[parameters('logLevel')]"
8000
8017
}
8001
8018
}
8002
8019
},
10261
10278
"ADMIN_WEBSITE_NAME": {
10262
10279
"type": "string",
10263
10280
"value": "[if(equals(parameters('hostingModel'), 'code'), reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, variables('rgName')), 'Microsoft.Resources/deployments', parameters('adminWebsiteName')), '2022-09-01').outputs.WEBSITE_ADMIN_URI.value, reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, variables('rgName')), 'Microsoft.Resources/deployments', format('{0}-docker', parameters('adminWebsiteName'))), '2022-09-01').outputs.WEBSITE_ADMIN_URI.value)]"
10281
+ },
10282
+ "LOGLEVEL": {
10283
+ "type": "string",
10284
+ "value": "[parameters('logLevel')]"
10264
10285
}
10265
10286
}
10266
10287
}
0 commit comments