Remediation
From Azure Portalβ
- Login to Azure Portal using https://portal.azure.com.
- Go to Azure Database for
PostgreSQL server
. - For each database, click on
Connection security
. - In
SSL
settings, click onENABLED
to enforce SSL connections. - Click
Save
.
From Azure CLIβ
Use the below command to enforce ssl connection
for PostgreSQL
Database:
az postgres server update --resource-group <resourceGroupName> --name <serverName> --ssl-enforcement Enabled
From PowerShellβ
Update-AzPostgreSqlServer -ResourceGroupName <ResourceGroupName > -ServerName <ServerName> -SslEnforcement Enabled