Skip to content

Commit

Permalink
Merge pull request Azure#11767 from JimReprogle/master
Browse files Browse the repository at this point in the history
Update azuredeploy_QualysVM_API_FunctionApp_V2.json
  • Loading branch information
v-prasadboke authored Feb 12, 2025
2 parents 51f0f49 + a26edf2 commit e8002ee
Showing 1 changed file with 24 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
"maxLength": 11,
"type": "string"
},
"hostingPlan": {
"type": "string",
"defaultValue": "<App Service Plan>",
"metadata": {
"description": "The name of the Azure App Service Plan where this function app will run."
}
},
"WorkspaceID": {
"type": "string",
"defaultValue": "<workspaceID>"
Expand Down Expand Up @@ -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'))]"
},
Expand Down Expand Up @@ -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
}
},
{
Expand Down Expand Up @@ -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",
Expand All @@ -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,
Expand Down Expand Up @@ -243,4 +257,4 @@
}
}
]
}
}

0 comments on commit e8002ee

Please sign in to comment.