Ensure a retention period of less than 90 days is specified

Error: A retention period of less than 90 days is not specified

Bridgecrew Policy ID: BC_AZR_GENERAL_12
Checkov Check ID: CKV_AZURE_46
Severity: LOW

A retention period of less than 90 days is not specified

Description

This check examines MSSQL database extended auditing policy, and requires that the retention period is 90 days or more.

Fix - Buildtime

Terraform

Resource: azurerm_mssql_database_extended_auditing_policy
Attribute: retention_in_days

resource "azurerm_mssql_database_extended_auditing_policy" "example" {
  ...
  retention_in_days                       = 90
}

Did this page help you?