I am going through below documentation which shows various ways to authenticate Azure PostgreSQL database with Azure Entra ID
In section named "Creating Microsoft Entra users in Azure Database for PostgreSQL" it suggest to run below command but I am getting an error that "azure_ad_user" does not exists.
CREATE USER "[email protected]" IN ROLE azure_ad_user;
Am I missing something? Is this group is supposed to be there or am I supposed to create this group?
2
Answers
You can use the code below to add Entra ID authentication to your PostgreSQL database:
This will add Entra ID login to the PostgreSQL database.
Alternatively, you can add it via the portal by following this procedure:
Go to Authentication, click on Add Microsoft Entra Admin, and select Entra ID as shown below:
I was looking for the same problem and I’ve found this in GitHub issue. Seems to be related: https://github.com/MicrosoftDocs/azure-docs/issues/116898