Now in preview, you can migrate PostgreSQL databases to Azure Database for PostgreSQL with minimal downtime by using the Azure Database Migration Service (DMS). Use the Azure CLI to provision an instance of the DMS service and then perform migrations from PostgreSQL on-premises or with virtual machines to Azure Database for PostgreSQL.
Source: Microsoft Azure – aggiornamenti