Remediation
From Azure Portalβ
- From Azure Home select the Portal Menu.
- Go to
Azure Database
forPostgreSQL servers
. - For each database, under
Settings
, clickServer parameters
. - Search for
log_disconnections
. - Set
log_disconnections
to ON. - Click
Save
.
From Azure CLIβ
Use the below command to update log_disconnections
configuration:
az postgres server configuration set --resource-group <resourceGroupName> --server-name <serverName> --name log_disconnections --value on
From PowerShellβ
Use the below command to update log_disconnections
configuration:
Update-AzPostgreSqlConfiguration -ResourceGroupName <ResourceGroupName> -ServerName <ServerName> -Name log_disconnections -Value on