Connect Postgre on GCP using Azure Data Factory

Lokesh 211 Reputation points
2022-12-16T07:33:15.5+00:00

We need to source data from postgre database hosted on GCP using Azure Data Factory.
We were asked to use SSL to connect and fetch data from GCP Postgre.

While creating the Linked Service we are not sure how to accomplish this. Any help would be really appreciated.

271199-2022-12-16-12-59-14.jpg

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
{count} votes

1 answer

Sort by: Most helpful
  1. KranthiPakala-MSFT 46,642 Reputation points Microsoft Employee Moderator
    2022-12-23T00:32:08.333+00:00

    Hello @Lokesh ,

    Thanks for your response and additional clarification. In order to perform SSL Certificate validation to establish connection to your PostgreSQL, you will have to use ODBC connector instead of PostgreSQL connector in ADF.

    In order to have full SSL verification via the ODBC connection using the Self Hosted Integration Runtime you must use an ODBC type connection instead of the PostgreSQL connector explicitly, and complete the following configuration:

    1. Set up the DSN on any SHIR servers.
    2. Put the proper certificate for PostgreSQL in C:\Users\DIAHostService\AppData\Roaming\postgresql\root.crt on the SHIR servers. This is where the ODBC driver looks > for the SSL cert to verify when it connects to the database.
    3. In your data factory connection, use an ODBC type connection, with your connection string pointing to the DSN you created on your SHIR servers.

    This has been called out in the PostgreSQL connector documentation as a NOTE: ADF PostgreSQL Connector configuration details

    273387-image.png

    Hope this info helps.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.