简体   繁体   中英

Connect On-Premises Postgresql to Azure SQL

I'm wondering if there's a way to have an on-premises PostgreSQL server that can be accessed in Azure the same way as an ordinary PostgreSQL server. So to have an endpoint in Azure with port 5432 and that endpoint would forward queries and requests to the on-premises database.

For example I need to keep data on-site but keep the access in Azure the same way through the same interface. We are trying to migrate our compute to Azure but need to keep all our data in house.

I've already looked into Data Factories and On-Premises Data Gateway but both seem to either be for migrating data or for access from App Services and other pre-defined Azure services.

We would be accessing from code.

EDIT : Clarified original question.

Its still not really clear what your trying to do here. However, I can confirm that its possible to access an on premises PostgreSQL instance using the Data Management Gateway in Azure Data Factory.

If you want to try it out I'd suggest using the copy wizard available from the Azure portal....

在此处输入图片说明

Go through the steps and create a simple pipeline.

The copy activity could then be scheduled to land your local data in an Azure SQL DB as frequently as 15mins if you wanted.

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM