Example
@description('Optional. The name of logs that will be streamed.')
@allowed([
'AllLogs'
'SQLInsights'
'AutomaticTuning'
'QueryStoreRuntimeStatistics'
'QueryStoreWaitStatistics'
'Errors'
'DatabaseWaitStatistics'
'Timeouts'
'Blocks'
'Deadlocks'
'DevOpsOperationsAudit'
'SQLSecurityAuditEvents'
])
param logsToEnable array = [
'AllLogs'
]

We'd need to update the diagnostic logs across all modules to allow 'AllLogs' that feed into the 'LogCategory'. That should be relatively easy like:
categoryGroup: contains(logsToEnable, 'AllLogs') ? 'AllLogs' : null
var diagnosticsLogs = categoryGroup: contains(logsToEnable, 'AllLogs') ? {
enabled: true
categoryGroup: 'allLogs'
retentionPolicy: {
enabled: true
days: diagnosticLogsRetentionInDays
}
} : [for log in logsToEnable: {
category: log
enabled: true
retentionPolicy: {
enabled: true
days: diagnosticLogsRetentionInDays
}
}]
Example
We'd need to update the diagnostic logs across all modules to allow 'AllLogs' that feed into the 'LogCategory'. That should be relatively easy like: