Skip to content

Commit

Permalink
Set WEBSITE_RUN_FROM_PACKAGE for linux and non-consumption
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelldi committed Aug 12, 2024
1 parent 139366e commit f08f9ea
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down

0 comments on commit f08f9ea

Please sign in to comment.