How to connect to azure postgresql flexible server using Microsoft Entra group

Radek 1 Reputation point
2024-09-03T08:35:55.8966667+00:00

Hello

I want to connect to Azure Postgresql Flexible server using PgAdmin4 and using Entra ID group. I followed the steps from:

https://video2.skills-academy.com/en-us/azure/postgresql/flexible-server/how-to-configure-sign-in-azure-ad-authentication

entragroup

My Entra ID user account is owner of this Entra ID group.

pggroup

I'm using my token when prompted for password got by command

az account get-access-token --resource https://ossrdbms-aad.database.windows.net

token

at the end i got error:

error

Maybe someone is using entra id group login and can help with that?

I can login using my personal entra id with success but not as member of entra id group.

Azure Database for PostgreSQL
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,371 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ShaktiSingh-MSFT 15,056 Reputation points
    2024-09-03T10:16:51.5266667+00:00

    Hi Radek,

    Welcome to Microsoft Q&A forum.

    As I understand, you are getting error in Microsoft Entra ID for authentication with Azure Database for PostgreSQL fatal no pg_hba.conf entry for host.

    Is this the first time you are trying to connect or earlier it worked, and it is failing now?

    If first time, then please try restarting the server as mentioned here:

    https://video2.skills-academy.com/en-us/azure/postgresql/single-server/how-to-restart-server-portal

    Try in the Azure Portal change require_secure_transport from server parameters to OFF.

    Let us know if this helped.

    Awaiting your reply.

    Thanks

    0 comments No comments

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.