I wanted to create a new read-only user under Azure Database for PostgreSQL. To achieve the same, I have followed this article https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-create-users. However, while I trying to test the connection I am getting the following error -
28000: pg_hba.conf rejects connection for host "xx.xx.xx.xxx", user "some_new_user", database "some_test_database", SSL on Check network connectivity setting of your Azure Postgre SQL flexible server, if Pirvate Access(VNet integration) is selected, please use SHIR to connect.
28000: pg_hba.conf rejects connection for host "xx.xx.xx.xxx", user "some_new_user", database "some_test_database", SSL on
Under the firewall rules dashboard in Postgres Flexible Server, I have allowed "Allow public access from any Azure service within Azure to this server" and for debugging I added "0.0.0.0-255.255.255.255" under the firewall rules.
Thanks for your support