Remediation
From Azure Portalβ
- Log in to Azure Portal using https://portal.azure.com.
- Go to
Azure Database for PostgreSQL servers. - For each database, under
Settings, clickServer parameters. - In the filter bar, type
log_connections. - Set
log_connectionstoON. - Click
Save.
From Azure CLIβ
Use the following command to update log_connections:
az postgres server configuration set \
--resource-group {{resource-group-name}} \
--server-name {{server-name}} \
--name log_connections \
--value on
From PowerShellβ
Use the following command to update log_connections:
Update-AzPostgreSqlConfiguration `
-ResourceGroupName {{resource-group-name}} `
-ServerName {{server-name}} `
-Name log_connections `
-Value on