From f08f9ea655e60b2171b1480bffd1539f40f72786 Mon Sep 17 00:00:00 2001 From: Rival Abdrakhmanov Date: Mon, 12 Aug 2024 13:09:18 +0200 Subject: [PATCH] Set WEBSITE_RUN_FROM_PACKAGE for linux and non-consumption --- .../functionapp/CreateOrUpdateDotNetFunctionAppTask.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PluginsAndFeatures/azure-toolkit-for-rider/azure-intellij-plugin-appservice-dotnet/src/main/kotlin/com/microsoft/azure/toolkit/intellij/appservice/functionapp/CreateOrUpdateDotNetFunctionAppTask.kt b/PluginsAndFeatures/azure-toolkit-for-rider/azure-intellij-plugin-appservice-dotnet/src/main/kotlin/com/microsoft/azure/toolkit/intellij/appservice/functionapp/CreateOrUpdateDotNetFunctionAppTask.kt index 5c0ae00b8e..a56f234afc 100644 --- a/PluginsAndFeatures/azure-toolkit-for-rider/azure-intellij-plugin-appservice-dotnet/src/main/kotlin/com/microsoft/azure/toolkit/intellij/appservice/functionapp/CreateOrUpdateDotNetFunctionAppTask.kt +++ b/PluginsAndFeatures/azure-toolkit-for-rider/azure-intellij-plugin-appservice-dotnet/src/main/kotlin/com/microsoft/azure/toolkit/intellij/appservice/functionapp/CreateOrUpdateDotNetFunctionAppTask.kt @@ -179,7 +179,9 @@ class CreateOrUpdateDotNetFunctionAppTask( //Enables your function app to run from a package file, which can be locally mounted or deployed to an external URL. //see: https://learn.microsoft.com/en-us/azure/azure-functions/run-functions-from-deployment-package - if (config.runtime.os == OperatingSystem.WINDOWS) { + if (config.runtime.os == OperatingSystem.WINDOWS || + (config.runtime.os == OperatingSystem.LINUX && config.pricingTier != PricingTier.CONSUMPTION) + ) { put(WEBSITE_RUN_FROM_PACKAGE, "1") }