Skip to content

Commit 600b699

Browse files
committed
Cruft Update (force)
1 parent 8c49c7b commit 600b699

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.cruft.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/Azure-Samples/Azure-Python-Standardization-Template-Generator",
3-
"commit": "397605f4143cc348247197e9b1c30729a94b828f",
3+
"commit": "f9a5fdc99895df6e7f4844a19cb000ec8eb23bca",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {

infra/core/database/cosmos/cosmos-account.bicep

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ resource cosmos 'Microsoft.DocumentDB/databaseAccounts@2022-08-15' = {
2929
enableMultipleWriteLocations: false
3030
apiProperties: (kind == 'MongoDB') ? { serverVersion: '4.2' } : {}
3131
capabilities: [ { name: 'EnableServerless' } ]
32+
disableKeyBasedMetadataWriteAccess: true // See PsRule AZR-000095
3233
}
3334
}
3435

infra/core/host/appservice.bicep

+6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ param runtimeName string
1717
param runtimeNameAndVersion string = '${runtimeName}|${runtimeVersion}'
1818
param runtimeVersion string
1919

20+
param enableDiagnosticLogging bool = true
21+
2022
// Microsoft.Web/sites Properties
2123
param kind string = 'app,linux'
2224

@@ -58,6 +60,10 @@ resource appService 'Microsoft.Web/sites@2022-03-01' = {
5860
cors: {
5961
allowedOrigins: union([ 'https://portal.azure.com', 'https://ms.portal.azure.com' ], allowedOrigins)
6062
}
63+
// Diagnostic logging
64+
detailedErrorLoggingEnabled: enableDiagnosticLogging
65+
httpLoggingEnabled: enableDiagnosticLogging
66+
requestTracingEnabled: enableDiagnosticLogging
6167
}
6268
clientAffinityEnabled: clientAffinityEnabled
6369
httpsOnly: true

0 commit comments

Comments
 (0)