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:
- Created/Upgraded an Azure PostgreSQL Flexible Server instance.
- Configured an Azure AD admin user as per the guide.
- 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