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://learn.microsoft.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 Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Oury Ba-MSFT 21,126 Reputation points Microsoft Employee Moderator
    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


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.