diff --git a/Solutions/QualysVM/Data Connectors/azuredeploy_QualysVM_API_FunctionApp_V2.json b/Solutions/QualysVM/Data Connectors/azuredeploy_QualysVM_API_FunctionApp_V2.json index 778b1f512e4..b6e9414cf03 100644 --- a/Solutions/QualysVM/Data Connectors/azuredeploy_QualysVM_API_FunctionApp_V2.json +++ b/Solutions/QualysVM/Data Connectors/azuredeploy_QualysVM_API_FunctionApp_V2.json @@ -8,6 +8,13 @@ "maxLength": 11, "type": "string" }, + "hostingPlan": { + "type": "string", + "defaultValue": "", + "metadata": { + "description": "The name of the Azure App Service Plan where this function app will run." + } + }, "WorkspaceID": { "type": "string", "defaultValue": "" @@ -45,6 +52,7 @@ }, "variables": { "FunctionName": "[concat(toLower(parameters('FunctionName')), uniqueString(resourceGroup().id))]", + "HostingPlanName": "[parameters('hostingPlan')]", "StorageSuffix":"[environment().suffixes.storage]", "LogAnaltyicsUri":"[replace(environment().portal, 'https://portal', concat('https://', toLower(parameters('WorkspaceID')), '.ods.opinsights'))]" }, @@ -100,18 +108,24 @@ { "type": "Microsoft.Web/serverfarms", "apiVersion": "2018-02-01", - "name": "[variables('FunctionName')]", + "name": "[variables('HostingPlanName')]", "location": "[resourceGroup().location]", "sku": { - "name": "Y1", - "tier": "Dynamic" + "name": "Y1", + "tier": "Dynamic", + "size": "Y1", + "family": "Y", + "capacity": 0 }, "kind": "functionapp", "properties": { - "name": "[variables('FunctionName')]", - "workerSize": "0", - "workerSizeId": "0", - "numberOfWorkers": "1" + "name": "[variables('HostingPlanName')]", + "computeMode": "Dynamic", + "kind": "functionapp", + "reserved": false, + "isXenon": false, + "hyperV": false, + "azBalancing": false } }, { @@ -160,7 +174,7 @@ "location": "[resourceGroup().location]", "dependsOn": [ "[resourceId('Microsoft.Storage/storageAccounts', tolower(variables('FunctionName')))]", - "[resourceId('Microsoft.Web/serverfarms', variables('FunctionName'))]", + "[resourceId('Microsoft.Web/serverfarms', variables('HostingPlanName'))]", "[resourceId('Microsoft.Insights/components', variables('FunctionName'))]" ], "kind": "functionapp", @@ -169,7 +183,7 @@ }, "properties": { "name": "[variables('FunctionName')]", - "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('FunctionName'))]", + "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('HostingPlanName'))]", "httpsOnly": true, "clientAffinityEnabled": true, "alwaysOn": true, @@ -243,4 +257,4 @@ } } ] - } +}