Deploying Web App + Postgresql

I’ve just started using Terraform and have successfully written a script to deploy an instance of a Postgresql database to Azure. The Azure user interface in Azure has the ability to create a ‘Web App + Postgresql’ as a single deployment. Does anyone have a script or know where I can find an example for Terraform to create ‘Web App + Postgresql’. The Azure user interface also has ‘Web App + MySQL’, if anyone know of a script for this, I could probably adapt it for Postgres.

Thank you,

J