Created
May 28, 2019 20:24
-
-
Save linkerzx/794ce5807d619dafed88b2b24214462a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"dockerContainer": {"type": "string"}, | |
"dockerRegistryUsername": {"type": "string"}, | |
"dockerRegistryPassword": {"type": "securestring"}, | |
"dockerRegistryUrl": {"type": "string"}, | |
"fernetKey": {"type": "securestring"}, | |
"siteName": { | |
"type": "string", | |
"defaultValue": "[concat('airflow-', uniqueString(resourceGroup().id))]", | |
"metadata": { | |
"description": "Name of Airflow web app" | |
} | |
}, | |
... | |
"resources": [ | |
{ | |
"name": "appsettings", | |
"type": "config", | |
"apiVersion": "2018-02-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": "false", | |
"WEBSITES_ENABLE_APP_SERVICE_STORAGE": "false", | |
"FERNET_KEY": "[parameters('fernetKey')]", | |
"AIRFLOW__CORE__FERNET_KEY": "[parameters('fernetKey')]", | |
"AIRFLOW__WEBSERVER__SECRET_KEY": "[parameters('fernetKey')]", | |
"AIRFLOW_ADMIN_EMAIL": "[parameters('administratorEmail')]", | |
"AIRFLOW_ADMIN_PASS": "[parameters('administratorLoginPassword')]", | |
"DOCKER_REGISTRY_SERVER_URL": "[concat('https://', parameters('dockerRegistryUrl'))]", | |
"DOCKER_REGISTRY_SERVER_USERNAME": "[parameters('dockerRegistryUsername')]", | |
"DOCKER_REGISTRY_SERVER_PASSWORD": "[parameters('dockerRegistryPassword')]" | |
} | |
} | |
] | |
}, | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment