Hello, Welcome to MS Q&A
Microsoft Entra ID integration works with standard PostgreSQL client tools like psql, which aren't Microsoft Entra ID aware and support only specifying the username and password when you're connecting to PostgreSQL. In such cases, the Microsoft Entra ID token is passed as the password.
We tested the following clients:
- psql command line: Use the
PGPASSWORD
variable to pass the token. - Other libpq-based clients: Examples include common application frameworks and object-relational mappers (ORMs).
- pgAdmin: Clear Connect now at server creation.
Use the following procedures to authenticate with Microsoft Entra ID as an Azure Cosmos DB for PostgreSQL user. You can follow along in Azure Cloud Shell, on an Azure virtual machine, or on your local machine.
References:
Please let me know if any questions
Kindly accept answer if it helps
Thanks
Deepanshu