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

FlorBob 1 Reputation point


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 Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
13,537 questions
Azure Database for PostgreSQL
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Cristian SPIRIDON 4,301 Reputation points

    Maybe you can use az postgres CLI commands:

    Hope this helps.

    1 person found this answer helpful.
    No comments

  2. KalyanChanumolu-MSFT 8,251 Reputation points Microsoft Employee

    @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.