I'm trying to establish a direct connection between an Azure App Service and an Azure Database for PostgreSQL single server.
I'm currently connecting to the database through a string connection and a user created in the database itself. I need to switch this method to connect with a Service Principal.
I've managed to successfully connected to the database using my assigned Azure AD group through the use of an Azure AD token. But the token retrieval process involves user interaction.
I need the full connection process to be done programmatically with zero interaction with the user.
How would I go about doing this? I've investigated through the documentation but there are so many different suggestions for so many different use cases that I don't know which posts will be red herrings.