Connecting to PostgreSQL Database hosted in Azure (Linux + Python)
Azure Functions Bindings works with Azure Cosmo DB, but as of now there is no way to create a Function that writes to a PostgreSQL db stored in Azure. Locally, I can just use Psycopg2 in Python to connect, but this isn't possible without creating a custom container with libpq-dev (for pg_config).
Thank you for your request. We have now incorporated this in our image, so that should enable your scenario.
Yes, what you mentioned is right. You can use custom containers and deploy it to the Linux Premium plan.