Why can't I login to Azure Database for Postgres, when I'm member of admin group
Important considerations when connecting as a Microsoft Entra group member:
Use the exact name of the Entra group you're trying to connect with — spelling and capitalization matter.
Don’t use a group member’s name or alias, just the group name itself.
If the group name has spaces, put a backslash () before each space to make it work.
The sign-in token you use is only good for 5 to 60 minutes, so it’s best to grab a fresh one right before you log in to the PostgreSQL database. Refer the below Link: https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-configure-sign-in-azure-ad-authentication#use-a-token-as-a-password-for-signing-in-with-psql-or-pgadmin