From 31e779916f3863dd74a28cee869ea24fdc4ca8c2 Mon Sep 17 00:00:00 2001 From: Simar Date: Tue, 5 Mar 2024 15:10:34 -0700 Subject: [PATCH] update docs --- .../azure/database/AVD-AZU-0027/Terraform.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/avd_docs/azure/database/AVD-AZU-0027/Terraform.md b/avd_docs/azure/database/AVD-AZU-0027/Terraform.md index 81b53090..9170b1bd 100644 --- a/avd_docs/azure/database/AVD-AZU-0027/Terraform.md +++ b/avd_docs/azure/database/AVD-AZU-0027/Terraform.md @@ -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