0

I am following this post and I have added Azure AD User to my Azure PostgreSQL. When I use admin user I can connect to the server but when I change to use Azure AD-based authentication, it always got error Token get failed .... I think I'm lost, please help me. Thanks in advance.

Jesse
  • 41
  • 3

1 Answers1

1

Not sure about the reason because you didn't provide details about how you configure the AAD-based authentication.

But there is a new, simpler way to sign-in with AAD account.

Please refer to New, simpler way to sign-in to Azure Database for PostgreSQL - Single Server using Azure AD.

You just need to configure the Azure AD Administrator in the Azure Portal.

enter image description here

Remember that when you try to sign in in Azure Data Studio, you need to specify the username as AADuser@{your AAD domain}.com@{PostgreSQL server name}

enter image description here

Allen Wu
  • 15,529
  • 1
  • 9
  • 20