How to migrate from Azure db for Postgres to Azure SQL db?

Manthan Patel 1 Reputation point
2021-07-26T15:17:52+00:00

I am currently migrating from postgres on prem to Azure postgres and in future might want to migrate to Azure SQL db from Azure postgresql db. What are the options available for this with minimal effort and downtime?

Azure SQL Database
Azure Database for PostgreSQL
{count} votes

2 answers

Sort by: Most helpful
  1. Oury Ba-MSFT 16,471 Reputation points Microsoft Employee
    2021-07-30T00:18:32.413+00:00

    Hi @Manthan Patel As from my knowledge I will suggest to use Azure Data factory as a tool to copy your data from Azure PostgreSQL to Azure SQL..
    You can also copy data in Azure SQL Database by using Azure Data Factory.

    Regards,
    Oury


  2. Alberto Morillo 32,891 Reputation points MVP
    2021-08-05T01:18:55.233+00:00

    A few options to migrate the data and/or business logic on the Postgresql database to Azure SQL Database could be:

    1) First option, install SQL Server on-premise on your organization and the SQL Server Integration Services (SSIS) component and use SSIS to extract the data from Postgresql to Azure SQL. Here you will find and example, adapt the example to connect to an Azure SQL Database as destination.
    2) Second option, use Azure Data Factory's Copy Activity to copy (migrate) the data from Postgresql to Azure SQL Database. However, you need to configure a self-hosted integration runtime to connect to Postgresql. You can also use the managed virtual network integration runtime feature in Azure Data Factory to access the on-premises network without installing and configuring a self-hosted integration runtime.
    3) Use third-party tools like Ispirer that may help you not only migrate the data like options 1) and 2) but also the business logic that resides on triggers and stored procedures

    0 comments No comments