From 9dbf44fc098616203966cacf5b0613b218570525 Mon Sep 17 00:00:00 2001 From: "`whoami`; # && WhatAmIDoingHere" <65737617+JimReprogle@users.noreply.github.com> Date: Wed, 30 Oct 2024 14:23:28 -0500 Subject: [PATCH] Update azuredeploy_MimecastSEG_AzureFunctionApp.json Rather than using the appName for the hostingPlanName, we ask the user for it. It helps resolve errors when the app service plan doesn't exist, and you get quota errors which are misleading. --- .../azuredeploy_MimecastSEG_AzureFunctionApp.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Solutions/MimecastSEG/Data Connectors/azuredeploy_MimecastSEG_AzureFunctionApp.json b/Solutions/MimecastSEG/Data Connectors/azuredeploy_MimecastSEG_AzureFunctionApp.json index b940ab9ba21..ffbcdb9b25f 100644 --- a/Solutions/MimecastSEG/Data Connectors/azuredeploy_MimecastSEG_AzureFunctionApp.json +++ b/Solutions/MimecastSEG/Data Connectors/azuredeploy_MimecastSEG_AzureFunctionApp.json @@ -8,6 +8,12 @@ "description": "The name of the function app that you wish to create." } }, + "hostingPlan": { + "type": "string", + "metadata": { + "description": "The name of the Azure App Services Plan where this function app will run." + } + }, "objectId": { "type": "string", "metadata": { @@ -114,7 +120,7 @@ }, "variables": { "functionAppName": "[parameters('appName')]", - "hostingPlanName": "[parameters('appName')]", + "hostingPlanName": "[parameters('hostingPlan')]", "applicationInsightsName": "[parameters('appName')]", "storageAccountName": "[parameters('appName')]" },