[AVM Module Issue]: avm/res/sql/server should allow setting Microsoft.Insights/diagnosticSettings for master database #3377
Labels
Class: Resource Module 📦
This is a resource module
Needs: Triage 🔍
Maintainers need to triage still
Type: AVM 🅰️ ✌️ Ⓜ️
This is an AVM related issue
Type: Feature Request ➕
New feature or request
Check for previous/existing GitHub issues
Issue Type?
Feature Request
Module Name
avm/res/sql/server
(Optional) Module Version
No response
Description
Microsoft recommends enabling auditing only on server level:
To enable log analytics workspace logging three configs are required:
SQLSecurityAuditEvents
DevOpsOperationsAudit for "devops"
Current module does not really support master database diagnosticssettings management: At least I could find any way to create working master entry on databases array. Most of the tries failed because database already exists and is teechnical database.
Quickstart template as a reference: https://github.com/Azure/azure-quickstart-templates/blob/master/quickstarts/microsoft.sql/sql-auditing-server-policy-to-oms/main.bicep#L63
This might be hard to implement because master database is automatically created after logical server resource creation.
I implemented this with following, just to make things work:
(Optional) Correlation Id
No response
The text was updated successfully, but these errors were encountered: