github.com/aquasecurity/trivy-iac@v0.8.1-0.20240127024015-3d8e412cf0ab/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