azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

no instructions on how to enable pgaadauth_* functions

Open dhduvall opened this issue 2 years ago • 7 comments

This page suggests using several functions whose names begin with pgaadauth_. When I try to use them, I get errors like

ERROR:  function pgaadauth_list_principals(boolean) does not exist

When I type \df in psql, the list of functions doesn't show any like this. I thought perhaps there was a server extension I needed to enable, but in the list of available extensions (az postgres flexible-server parameter show -n azure.extensions -o tsv --query allowedValues), none have a name containing ad, active, or dir. I'm not sure what else to try from here.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

dhduvall avatar Nov 19 '22 02:11 dhduvall

@dhduvall Thanks for your feedback! We will investigate and update as appropriate.

ManoharLakkoju-MSFT avatar Nov 19 '22 05:11 ManoharLakkoju-MSFT

Hi @achudnovskij,

Could you please look into this document request. Thanks

shaktisingh-msft avatar Nov 21 '22 05:11 shaktisingh-msft

Hi @dhduvall . Those functions are part of "pgaadauth" extension installed on "postgres" database once you enable Azure AD authentication on a Flexible Server. If you enabled the Azure AD authentication and still don't see the functions, please open a support ticket.

achudnovskij avatar Nov 23 '22 21:11 achudnovskij

Thank you; I've done just that.

dhduvall avatar Nov 23 '22 23:11 dhduvall

@dhduvall - can we close this?

GennadNY avatar Nov 30 '22 20:11 GennadNY

Not yet; we're making progress in the support ticket, but there are still a couple of unanswered questions, and I think changes will need to be made to this page as a result. If you'd rather have that as a separate ticket, though, that's up to you.

dhduvall avatar Nov 30 '22 20:11 dhduvall

The support ticket ID is 2211230010002257. I have everything I need, so I'll let you work it out on your end what needs to be closed and how.

dhduvall avatar Dec 01 '22 23:12 dhduvall

Closing this PR as support ticket 2211230010002257 to track the issue. Please feel free to reopen the PR if you need any other info.

kabharati avatar Jan 23 '23 13:01 kabharati

#please-close

kabharati avatar Jan 23 '23 13:01 kabharati

Hi @dhduvall . Those functions are part of "pgaadauth" extension installed on "postgres" database once you enable Azure AD authentication on a Flexible Server. If you enabled the Azure AD authentication and still don't see the functions, please open a support ticket.

Hi @achudnovskij , I have provisioned a postgres DB through terraform with: authentication { active_directory_auth_enabled = true ... } But I don't see the extension installed on the database. Does the installation happen only when enabling through the Azure Portal?

Where can I open a support ticket for this?

CristianAtMaersk avatar Jun 21 '23 14:06 CristianAtMaersk

Hi All, is there a resolution to this? I am also having this problem.

nikoliano avatar Jun 30 '23 19:06 nikoliano

facing same, any update on this

umeshpawar2188 avatar Jul 05 '23 17:07 umeshpawar2188