Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
simar7 committed Mar 5, 2024
1 parent b711f64 commit 31e7799
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions avd_docs/azure/database/AVD-AZU-0027/Terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@ Enable auditing on Azure SQL databases
version = "12.0"
administrator_login = "mradministrator"
administrator_login_password = "tfsecRocks"
extended_auditing_policy {
storage_endpoint = azurerm_storage_account.example.primary_blob_endpoint
storage_account_access_key = azurerm_storage_account.example.primary_access_key
storage_account_access_key_is_secondary = true
retention_in_days = 6
}
}
resource "azurerm_mssql_server_extended_auditing_policy" "example" {
server_id = azurerm_sql_server.good_example.id
storage_endpoint = azurerm_storage_account.example.primary_blob_endpoint
storage_account_access_key = azurerm_storage_account.example.primary_access_key
storage_account_access_key_is_secondary = true
retention_in_days = 6
}
```

#### Remediation Links
- https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/sql_server#extended_auditing_policy
- https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mssql_server_extended_auditing_policy

0 comments on commit 31e7799

Please sign in to comment.