Hello Aravind,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
Problem
Sequel to your questions, I understand that you are having difficulty to connect the VM installed PostgreSQL from ADF.
Scenario
Common scenario based on error code.
Solution
This prescribed solution was based on the scenario given and your questions, while focusing on the problem statement. Since you have verified that the "Allow public services" setting is enabled for the PostgreSQL server and has provided a snapshot of the VM firewall properties.
Error Message:
- The encountered error (08P01) indicates login rejection during connection attempts.
- The error message suggests using Self-Hosted Integration Runtime (SHIR) if Private Access (VNet integration) is selected.
Notice the number 2, have you? If yes.
- So therefore, double-check the credentials used in the ADF linked server configuration to ensure they are correct and properly configured.
- You can use tools like ping or telnet to verify connectivity between the ADF environment and the PostgreSQL server's endpoint.
- Check the firewall rules on your PostgreSQL server to ensure that ADF's IP address or range is allowed to connect. Even if "Allow public services" is enabled, specific IP-based firewall rules might still be necessary.
Finally
Update connection settings in ADF to enable SSL encryption if necessary.
References
Read more from the additional resources available by the right side of this page. Especially,
- Firewall rules - Azure Database for PostgreSQL - Single Server
- Troubleshoot connections - Azure Database for PostgreSQL - Flexible Server
- Troubleshoot connections - Azure Database for PostgreSQL - Single Server
Accept Answer
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful ** so that others in the community facing similar issues can easily find the solution.
Best Regards,
Sina Salam