Remediation
From Azure Portalβ
- Login 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_connections
toON
. - Click
Save
.
From Azure CLIβ
Use the below command to update log_connections
configuration:
az postgres server configuration set --resource-group <resourceGroupName> --server-name <serverName> --name log_connections --value on
From PowerShellβ
Use the below command to update log_connections
configuration:
Update-AzPostgreSqlConfiguration -ResourceGroupName <ResourceGroupName> -ServerName <ServerName> -Name log_connections -Value on