Azure / Azure/bicep-registry-modules
[AVM Module Issue]: management-group has no option for diagnostic logs
- Dominant language
- Bicep
- Stars
- 736
- Forks
- 564
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 30
Description
### Check for previous/existing GitHub issues
- [X] I have checked for previous/existing GitHub issues
### Issue Type?
Feature Request
### Module Name
avm/res/management/management-group
### (Optional) Module Version
0.1.2
### Description
Would you be able to add Diagnostics onto this module. A bit like below:
```bicep
targetScope = 'managementGroup'
param parDiagnosticSettingsName string = 'toLa'
param parLogAnalyticsWorkspaceResourceId string
resource resMgDiagSet 'Microsoft.Insights/diagnosticSettings@2021-05-01-preview' = {
name: parDiagnosticSettingsName
properties: {
workspaceId: parLogAnalyticsWorkspaceResourceId
logs: [
{
category: 'Administrative'
enabled: true
}
{
category: 'Policy'
enabled: true
}
]
}
}
```
### (Optional) Correlation Id
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.