github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/avd_docs/azure/monitor/AVD-AZU-0031/Terraform.md (about)

     1  
     2  Set a retention period that will allow for delayed investigation
     3  
     4  ```hcl
     5   resource "azurerm_monitor_log_profile" "good_example" {
     6     name = "good_example"
     7   
     8     retention_policy {
     9       enabled = true
    10       days    = 365
    11     }
    12   }
    13   
    14  ```
    15  
    16  #### Remediation Links
    17   - https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/monitor_log_profile#retention_policy
    18