Azure Postgres
Instructions for configuring PowerSync for an Azure Database for PostgreSQL.
PowerSync supports both "Azure Database for PostgreSQL" and "Azure Database for PostgreSQL Flexible Server".
Prerequisites
The database must be accessible on the public internet. Once you have created your database, navigate to Settings -> Networking and enable Public access:
Enable Logical Replication
Follow the steps as noted in this article to allow logical replication:
Create a PowerSync Database User
Create a PowerSync user on Postgres:
For read-only access, only the SELECT
privilege is required — INSERT
, UPDATE
and DELETE
can be removed.
To restrict read access to specific tables, explicitly list allowed tables for both the SELECT
privilege, and for the publication (as well as for any other publications that may exist).
Create "powersync" Publication
Connect PowerSync to Your Database
In the PowerSync dashboard project tree, click on "Create new instance":
Give your instance a name, such as "Azure Postgres Testing".
Under the "General" tab, you can change the default cloud region from US to EU or JP if desired (more cloud regions are available, contact us if you need a different region).
Under the "DB Connections" tab, click on the + icon.
Obtain the connection details from Azure:
PowerSync has the relevant Azure CA certificates pre-configured —
verify-full
SSL mode can be used directly, without any additional configuration required.The Username and Password is the
powersync_role
created above.
Click "Test Connection" and fix any errors.
If you encounter the error
"must be superuser or replication role to start walsender"
, ensure that you've followed all the steps for enabling logical replication documented here.
Click "Save".
PowerSync deploys and configures an isolated cloud environment for you, which will take a few minutes to complete.
Last updated