Powershell: how to get Active Directory Administrator of Azure Database for PostgreSQL?

FlorBob 1 Reputation point
2020-12-11T17:11:26.763+00:00

Hi,

is there any equivalent of "Get-AzSqlServerActiveDirectoryAdministrator" cmdlet which can be used to retrieve the Active Directory Administrator of the selected Azure Database for PostgreSQL? Unfortunately, Az.postgresql module doesn't contain such feature.

Or maybe you have any workaround for that?

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.
19,655 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Cristian SPIRIDON 4,471 Reputation points
    2020-12-12T11:05:48.89+00:00

    Maybe you can use az postgres CLI commands:

    Hope this helps.

    1 person found this answer helpful.
    0 comments No comments

  2. KalyanChanumolu-MSFT 8,316 Reputation points
    2020-12-14T03:26:29.733+00:00

    @FlorBob Thank you for reaching out.
    Yes, you are right. There is no PowerShell equivalent cmdlet yet
    As suggested by @Cristian SPIRIDON , you could use Azure CLI if it is an option for you.

    Please submit a request for the new cmdlet here. You will get updates when the product team prioritizes and delivers the feature.

    ----------

    If an answer is helpful, please "Accept answer" or "Up-Vote" for the same which might be beneficial to other community members reading this thread.

    0 comments No comments