Remediation
From Azure Portalβ
- From Azure Home select the Portal Menu.
- Go to
Azure Database for PostgreSQL flexible servers. - For each database, under
Settings, clickServer parameters. - In the filter bar, type
logfiles.retention_days. - Input a value between 4 and 7 (inclusive).
- Click
Save.
From Azure CLIβ
Use the below command to update logfiles.retention_days configuration:
az postgres flexible-server parameter set --resource-group <resourceGroup> --server-name <serverName> --name logfiles.retention_days --value <4-7>
From Powershellβ
Use the below command to update logfiles.retention_days configuration:
Update-AzPostgreSqlFlexibleServerConfiguration -ResourceGroupName <resourceGroup> -ServerName <serverName> -Name logfiles.retention_days -Value <4-7>