|
6 | 6 | "_generator": { |
7 | 7 | "name": "bicep", |
8 | 8 | "version": "0.37.4.10188", |
9 | | - "templateHash": "8879061517486739995" |
| 9 | + "templateHash": "14511270786246958386" |
10 | 10 | }, |
11 | 11 | "name": "Document Generation Solution Accelerator", |
12 | 12 | "description": "CSA CTO Gold Standard Solution Accelerator for Document Generation.\n" |
|
183 | 183 | }, |
184 | 184 | "enableMonitoring": { |
185 | 185 | "type": "bool", |
186 | | - "defaultValue": false, |
| 186 | + "defaultValue": true, |
187 | 187 | "metadata": { |
188 | 188 | "description": "Optional. Enable monitoring applicable resources, aligned with the Well Architected Framework recommendations. This setting enables Application Insights and Log Analytics and configures all the resources applicable resources to send logs. Defaults to false." |
189 | 189 | } |
190 | 190 | }, |
191 | 191 | "enableScalability": { |
192 | 192 | "type": "bool", |
193 | | - "defaultValue": false, |
| 193 | + "defaultValue": true, |
194 | 194 | "metadata": { |
195 | 195 | "description": "Optional. Enable scalability for applicable resources, aligned with the Well Architected Framework recommendations. Defaults to false." |
196 | 196 | } |
|
204 | 204 | }, |
205 | 205 | "enablePrivateNetworking": { |
206 | 206 | "type": "bool", |
207 | | - "defaultValue": false, |
| 207 | + "defaultValue": true, |
208 | 208 | "metadata": { |
209 | 209 | "description": "Optional. Enable private networking for applicable resources, aligned with the Well Architected Framework recommendations. Defaults to false." |
210 | 210 | } |
|
418 | 418 | "aiSearch" |
419 | 419 | ] |
420 | 420 | }, |
| 421 | + "webSiteLogs": { |
| 422 | + "type": "Microsoft.Web/sites/config", |
| 423 | + "apiVersion": "2024-04-01", |
| 424 | + "name": "[format('{0}/logs', variables('webSiteResourceName'))]", |
| 425 | + "properties": { |
| 426 | + "applicationLogs": { |
| 427 | + "fileSystem": { |
| 428 | + "level": "Verbose" |
| 429 | + } |
| 430 | + }, |
| 431 | + "httpLogs": { |
| 432 | + "fileSystem": { |
| 433 | + "enabled": true, |
| 434 | + "retentionInDays": 3, |
| 435 | + "retentionInMb": 100 |
| 436 | + } |
| 437 | + }, |
| 438 | + "detailedErrorMessages": { |
| 439 | + "enabled": true |
| 440 | + }, |
| 441 | + "failedRequestsTracing": { |
| 442 | + "enabled": true |
| 443 | + } |
| 444 | + }, |
| 445 | + "dependsOn": [ |
| 446 | + "webSite" |
| 447 | + ] |
| 448 | + }, |
421 | 449 | "logAnalyticsWorkspace": { |
422 | 450 | "condition": "[and(parameters('enableMonitoring'), not(variables('useExistingLogAnalytics')))]", |
423 | 451 | "type": "Microsoft.Resources/deployments", |
|
38382 | 38410 | "zoneRedundant": "[if(parameters('enableRedundancy'), createObject('value', true()), createObject('value', false()))]", |
38383 | 38411 | "capabilitiesToAdd": "[if(parameters('enableRedundancy'), createObject('value', null()), createObject('value', createArray('EnableServerless')))]", |
38384 | 38412 | "automaticFailover": "[if(parameters('enableRedundancy'), createObject('value', true()), createObject('value', false()))]", |
38385 | | - "failoverLocations": "[if(parameters('enableRedundancy'), createObject('value', createArray(createObject('failoverPriority', 0, 'isZoneRedundant', true(), 'locationName', parameters('secondaryLocation')), createObject('failoverPriority', 1, 'isZoneRedundant', true(), 'locationName', variables('cosmosDbHaLocation')))), createObject('value', createArray(createObject('locationName', variables('solutionLocation'), 'failoverPriority', 0))))]" |
| 38413 | + "failoverLocations": "[if(parameters('enableRedundancy'), createObject('value', createArray(createObject('failoverPriority', 0, 'isZoneRedundant', true(), 'locationName', variables('solutionLocation')), createObject('failoverPriority', 1, 'isZoneRedundant', true(), 'locationName', variables('cosmosDbHaLocation')))), createObject('value', createArray(createObject('locationName', variables('solutionLocation'), 'failoverPriority', 0))))]" |
38386 | 38414 | }, |
38387 | 38415 | "template": { |
38388 | 38416 | "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", |
|
0 commit comments