Remediation
From Azure Portalβ
- Log in to Azure Portal using https://portal.azure.com.
- Go to Azure Database for
PostgreSQL server. - For each database, click on
Connection security. - In
SSLsettings, click onENABLEDto enforce SSL connections. - Click
Save.
From Azure CLIβ
Use the following command to enforce SSL connections for PostgreSQL:
az postgres server update \
--resource-group {{resource-group-name}} \
--name {{server-name}} \
--ssl-enforcement Enabled
From PowerShellβ
Update-AzPostgreSqlServer `
-ResourceGroupName {{resource-group-name}} `
-ServerName {{server-name}} `
-SslEnforcement Enabled