You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.
I need to enable Azure SQL Auditing on both the Azure SQL Server and the Azure SQL Database, and send the logs to an Event Hub. Additionally, I want to configure the diagnostic settings to send all logs and metrics to the Event Hub.
When I apply this Terraform code, the SQL audit logs are enabled, but the Event Hub is not configured in the Azure portal:
fjalcarazp
changed the title
Enable Azure SQL Auditing and All Logs in Azure SQL database
Enable both Azure SQL Auditing and All Logs in Azure SQL database
Jun 12, 2024
Is there an existing issue for this?
Community Note
I need to enable Azure SQL Auditing on both the Azure SQL Server and the Azure SQL Database, and send the logs to an Event Hub. Additionally, I want to configure the diagnostic settings to send all logs and metrics to the Event Hub.
When I apply this Terraform code, the SQL audit logs are enabled, but the Event Hub is not configured in the Azure portal:
If I apply this Terraform code, the SQL audit logs are enabled properly, but the diagnostic settings do not have all logs enabled:
Terraform Version
1.9.0
AzureRM Provider Version
3.107.0
Affected Resource(s)/Data Source(s)
azurerm_monitor_diagnostic_setting; azurerm_mssql_database;
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Actual Behaviour
It is not possible to enable all logs and Azure SQL Auditing logs simultaneously and send them to an Event Hub.
Steps to Reproduce
terraform apply
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: