I'm a little confused on what exactly is required in order to be able to login to Azure Database using Microsoft EntraId Identity resp. Service Principal.
There are different articles:
This one says we should run SQL command
CREATE USER "[email protected]" IN ROLE azure_ad_user;This one says we should run CLI command
az postgres flexible-server identity assign --resource-group $resourceGroup --server-name $server --identity $identityThis one we should run sql command
select * from pgaadauth_create_principal('<identity_name>', false, false);There's a another option - Microsoft Entra ID identity or group as database Admin

What if I specify Entra ID group as admin for the Postgres Server in Azure Portal? Can I login and manage the database with any identity that is part of the group without creating SQL users?

