Terraform-provider-azurerm: azurerm_sql_server: Audit Configuration

Created on 2 Nov 2018  ·  5Comments  ·  Source: terraform-providers/terraform-provider-azurerm

Community Note

  • 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 "+1" or "me too" comments, 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

Description

Add SQL Server audit configuration

New or Affected Resource(s)

  • azurerm_sql_server
  • azurerm_sql_database

image

enhancement servicmssql

Most helpful comment

Hi Guys I can see auditing is available in the azurerm_sql_database resource, but not in the azurerm_sql_serrver resource still. Will this be implemented?

Once applied at the server level it's inherited by any future DB's created. While we can enforce auditing through a DB terraform module, it would be nice to just set this once at the SQL server level.

All 5 comments

Hi Guys I can see auditing is available in the azurerm_sql_database resource, but not in the azurerm_sql_serrver resource still. Will this be implemented?

Once applied at the server level it's inherited by any future DB's created. While we can enforce auditing through a DB terraform module, it would be nice to just set this once at the SQL server level.

extended_auditing_policy supports only storage based auditing.
What about Log Analytics and Event Hub based auditing?

This has been released in version 2.1.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.1.0"
}
# ... other configuration ...

I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

Was this page helpful?
0 / 5 - 0 ratings