Issues with Assigning AD Admin Account on Azure PostgreSQL Flexible Servers

Serpa 151 Reputation points
2024-07-23T16:34:29.1433333+00:00

Hello,

We are encountering multiple issues with assigning other admins using an Azure AD admin account on Azure PostgreSQL Flexible Servers.

Case 1: Upgraded Instances We recently upgraded our PostgreSQL instances from version 14 to 15, and then to 16. After the upgrade, we observed that previously created roles were not granted with the ADMIN option to the grantor. Due to role changes in PostgreSQL, the parent role now needs to have the ADMIN option to grant roles to other users. Consequently, we are no longer able to manage previously created roles because we never had the ADMIN option granted initially. This is valid for the AD and username + password admins as well.

Case 2: New Instances In newly created PostgreSQL 16 instances, the Azure AD admin user is unable to assign admin privileges. Specifically:

  • Only the username + password admin has the ADMIN option over azure_pg_admin.
  • The AD admin user configured on these instances does not have the ADMIN option over azure_pg_admin, and therefore cannot attribute admin privileges to other users.

Here are the steps we followed for both cases:

  1. Created/Upgraded an Azure PostgreSQL Flexible Server instance.
  2. Configured an Azure AD admin user as per the guide.
  3. Tried to assign other users as admins using the Azure AD admin account (we followed this tutorial)

Despite following these steps, the AD admin user is unable to make other users admin in both upgraded and new instances. This issue seems replicable with any new instance.

Is there any known bug or workaround for these issues? Any guidance would be greatly appreciated.

Thanks,

Serpa

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.
20,617 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ShaktiSingh-MSFT 14,406 Reputation points Microsoft Employee
    2024-07-24T05:57:42.1933333+00:00

    Hi Serpa •,

    Welcome to Microsoft Q&A forum.

    As I understand, you are facing issue in Assigning AD Admin Account on Azure PostgreSQL Flexible Servers.

    As per the tutorial link shared and followed by you, it belongs to Single Server and it looks like the question is for Flexible Server.

    I would recommend you to follow the MS Official documentation for Azure Database for PostgreSQL Flexible server as below and let us know if you still face issue:

    https://learn.microsoft.com/en-us/azure/postgresql/single-server/how-to-create-users#how-to-create-additional-admin-users-in-azure-database-for-postgresql

    https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-configure-sign-in-azure-ad-authentication

    https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-create-users

    Let us know your finding.

    Thanks.

    0 comments No comments