Azure Postgres Server with AAD authentication

Shah, Gaurang 1 Reputation point
2021-06-07T17:38:25.887+00:00

I am trying using Azure Postgres for my application backend and realize that I can't use username and password I normally use. I need to generate the token and then use token as password.

reference: https://video2.skills-academy.com/en-us/azure/postgresql/concepts-aad-authentication

Questions

Is there a way I can use username and password (not token) with Azure AD user or SPN?
If not how to use SPN with my application? how to refresh token?
Does azure postgres local user makes more sense ?

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.
20,532 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Oury Ba-MSFT 17,791 Reputation points Microsoft Employee
    2021-06-09T21:58:18.867+00:00

    Hi @Shah, Gaurang You can create user that does not need to be authenticated using AAD. However, if you mark a user to AAD authentication, then that will be the only way.
    Regards,
    Oury