From 385259203c4b166d0621fe1eafaaa6932db78ace Mon Sep 17 00:00:00 2001 From: neil-yechenwei Date: Tue, 18 Feb 2025 14:14:07 +0800 Subject: [PATCH] Add example for Microsoft.OperationalInsights/workspaces/tables@2022-10-01 --- .../audit_log/main.tf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/examples/Microsoft.OperationalInsights_workspaces_tables@2022-10-01/audit_log/main.tf b/examples/Microsoft.OperationalInsights_workspaces_tables@2022-10-01/audit_log/main.tf index ac7609d26..311166068 100644 --- a/examples/Microsoft.OperationalInsights_workspaces_tables@2022-10-01/audit_log/main.tf +++ b/examples/Microsoft.OperationalInsights_workspaces_tables@2022-10-01/audit_log/main.tf @@ -86,3 +86,17 @@ resource "azapi_resource" "table" { response_export_values = ["*"] } +resource "azapi_update_resource" "table" { + type = "Microsoft.OperationalInsights/workspaces/tables@2022-10-01" + name = local.audit_log_table_name + parent_id = azapi_resource.workspace.id + + body = { + properties = { + totalRetentionInDays = 90 + retentionInDays = 30 + } + } + + depends_on = [azapi_resource.table] +}