This template provides a easy way to deploy a puckel/docker-airflow image (latest tag) on a Linux Web App with Azure database for PostgreSQL.
{"comments": "this is the airflow linux web app running puckel/docker-airflow docker image", "type": "microsoft.web/sites", "name": "[parameters('sitename')]", "apiversion": "2020-06-01", "location": "[parameters('location')]", "dependson": ["[variables('hostingplanname')]", "[variables('databasename')]"], "properties": {"siteconfig": {"linuxfxversion": "docker|puckel/docker-airflow:latest"}, "name": "[parameters('sitename')]", "serverfarmid": "[resourceid('microsoft.web/serverfarms", variables('hostingplanname'))]"}, "resources": [{"name": "appsettings", "type": "config", "apiversion": "2020-06-01", "dependson": ["[resourceid('microsoft.web/sites", parameters('sitename'))]"], "tags": {"displayname": "airflowappsettings"}, "comments": "this are the generated settings for the airflow sql alchemy connectionstring", "properties": {"airflow__core__sql_alchemy_conn": "[concat('postgresql://", variables('airflowusername'),":",parameters('administratorloginpassword'),"@",reference(resourceid('microsoft.dbforpostgresql/servers",variables('servername'))).fullyqualifieddomainname,":5432/",variables('databasename'))]", "airflow__core__load_examples": "true", "websites_enable_app_service_storage": "true"}}]}{"apiversion": "2020-06-01", "name": "[variables('hostingplanname')]", "type": "microsoft.web/serverfarms", "location": "[parameters('location')]", "properties": {"name": "[variables('hostingplanname')]", "workersizeid": "1", "reserved": true, "numberofworkers": "1"}, "sku": {"tier": "[parameters('serviceplantier')]", "name": "[parameters('serviceplansku')]"}, "kind": "linux"} 