Created
October 21, 2022 02:14
-
-
Save pvillard31/a94391f3a2bdda86a49089e07aa75d17 to your computer and use it in GitHub Desktop.
Simple template for DataFlow Functions deployment in Azure Functions
This file contains hidden or 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": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": { | |
| "subscriptionId": { | |
| "type": "string" | |
| }, | |
| "name": { | |
| "type": "string" | |
| }, | |
| "location": { | |
| "type": "string" | |
| }, | |
| "hostingPlanName": { | |
| "type": "string" | |
| }, | |
| "resourceGroup": { | |
| "type": "string" | |
| }, | |
| "storageAccountName": { | |
| "type": "string" | |
| }, | |
| "FLOW_CRN": { | |
| "type": "string" | |
| }, | |
| "DF_PRIVATE_KEY": { | |
| "type": "string" | |
| }, | |
| "DF_ACCESS_KEY": { | |
| "type": "string" | |
| } | |
| }, | |
| "variables": {}, | |
| "resources": [ | |
| { | |
| "apiVersion": "2018-11-01", | |
| "name": "[parameters('name')]", | |
| "type": "Microsoft.Web/sites", | |
| "kind": "functionapp", | |
| "location": "[parameters('location')]", | |
| "dependsOn": [ | |
| "[concat('microsoft.insights/components/', parameters('name'))]", | |
| "[concat('Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]", | |
| "[concat('Microsoft.Storage/storageAccounts/', parameters('storageAccountName'))]" | |
| ], | |
| "properties": { | |
| "name": "[parameters('name')]", | |
| "siteConfig": { | |
| "appSettings": [ | |
| { | |
| "name": "FUNCTIONS_EXTENSION_VERSION", | |
| "value": "~4" | |
| }, | |
| { | |
| "name": "FUNCTIONS_WORKER_RUNTIME", | |
| "value": "java" | |
| }, | |
| { | |
| "name": "WEBSITE_RUN_FROM_PACKAGE", | |
| "value": "1" | |
| }, | |
| { | |
| "name": "FUNCTION_NAME", | |
| "value": "[parameters('name')]" | |
| }, | |
| { | |
| "name": "FLOW_CRN", | |
| "value": "[parameters('FLOW_CRN')]" | |
| }, | |
| { | |
| "name": "DF_PRIVATE_KEY", | |
| "value": "[parameters('DF_PRIVATE_KEY')]" | |
| }, | |
| { | |
| "name": "DF_ACCESS_KEY", | |
| "value": "[parameters('DF_ACCESS_KEY')]" | |
| }, | |
| { | |
| "name": "NEXUS_URL", | |
| "value": "https://maven-central.storage-download.googleapis.com/maven2" | |
| }, | |
| { | |
| "name": "OUTPUT_PORT", | |
| "value": "success" | |
| }, | |
| { | |
| "name": "APPINSIGHTS_INSTRUMENTATIONKEY", | |
| "value": "[reference(concat('microsoft.insights/components/', parameters('name')), '2015-05-01').InstrumentationKey]" | |
| }, | |
| { | |
| "name": "APPLICATIONINSIGHTS_CONNECTION_STRING", | |
| "value": "[reference(concat('microsoft.insights/components/', parameters('name')), '2015-05-01').ConnectionString]" | |
| }, | |
| { | |
| "name": "AzureWebJobsStorage", | |
| "value": "[concat('DefaultEndpointsProtocol=https;AccountName=',parameters('storageAccountName'),';AccountKey=',listKeys(resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccountName')), '2019-06-01').keys[0].value,';EndpointSuffix=','core.windows.net')]" | |
| }, | |
| { | |
| "name": "WEBSITE_CONTENTAZUREFILECONNECTIONSTRING", | |
| "value": "[concat('DefaultEndpointsProtocol=https;AccountName=',parameters('storageAccountName'),';AccountKey=',listKeys(resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccountName')), '2019-06-01').keys[0].value,';EndpointSuffix=','core.windows.net')]" | |
| }, | |
| { | |
| "name": "WEBSITE_CONTENTSHARE", | |
| "value": "[concat(toLower(parameters('name')), 'adcb')]" | |
| } | |
| ], | |
| "cors": { | |
| "allowedOrigins": [ | |
| "https://portal.azure.com" | |
| ] | |
| }, | |
| "use32BitWorkerProcess": true, | |
| "ftpsState": "FtpsOnly", | |
| "javaVersion": "11", | |
| "netFrameworkVersion": "v6.0" | |
| }, | |
| "serverFarmId": "[concat('/subscriptions/', parameters('subscriptionId'),'/resourcegroups/', parameters('resourceGroup'), '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]", | |
| "clientAffinityEnabled": false, | |
| "virtualNetworkSubnetId": null, | |
| "httpsOnly": true | |
| } | |
| }, | |
| { | |
| "apiVersion": "2018-11-01", | |
| "name": "[parameters('hostingPlanName')]", | |
| "type": "Microsoft.Web/serverfarms", | |
| "location": "[parameters('location')]", | |
| "kind": "", | |
| "tags": null, | |
| "dependsOn": [], | |
| "properties": { | |
| "name": "[parameters('hostingPlanName')]", | |
| "workerSize": "0", | |
| "workerSizeId": "0", | |
| "numberOfWorkers": "1" | |
| }, | |
| "sku": { | |
| "Tier": "Dynamic", | |
| "Name": "Y1" | |
| } | |
| }, | |
| { | |
| "apiVersion": "2020-02-02-preview", | |
| "name": "[parameters('name')]", | |
| "type": "microsoft.insights/components", | |
| "location": "[parameters('location')]", | |
| "tags": null, | |
| "dependsOn": [], | |
| "properties": { | |
| "ApplicationId": "[parameters('name')]", | |
| "Request_Source": "IbizaWebAppExtensionCreate", | |
| "Flow_Type": "Redfield", | |
| "Application_Type": "web" | |
| } | |
| }, | |
| { | |
| "apiVersion": "2019-06-01", | |
| "type": "Microsoft.Storage/storageAccounts", | |
| "name": "[parameters('storageAccountName')]", | |
| "location": "[parameters('location')]", | |
| "tags": null, | |
| "sku": { | |
| "name": "Standard_LRS" | |
| }, | |
| "properties": { | |
| "supportsHttpsTrafficOnly": true, | |
| "minimumTlsVersion": "TLS1_2" | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment