vscode-azurefunctions icon indicating copy to clipboard operation
vscode-azurefunctions copied to clipboard

Succeed to deploy a JavaScript project to a .NET Flex Consumption function app without any error

Open v-ruizh opened this issue 1 year ago • 2 comments

OS: All Build Version: v1.15.1-alpha.0 Regression: Not a Regression

Repro Steps:

  1. Create a JavaScript project with Http Trigger template.
  2. Create a Flex Consumption function app with another runtime, such as .NET 8 isolated.
  3. Deploy the JavaScript project to the above .NET Flex Consumption function app.
  4. Check whether fail to deploy a JavaScript project to a .NET Flex Consumption function app with an error.

Expect: Fail to deploy a JavaScript project to a .NET Flex Consumption function app with an error, such as the below one. image

Actual: Succeed to deploy a JavaScript project to a .NET Flex Consumption function app without any error. image

More Info:

  1. This issue also reproduces when deploying a JavaScript project to a Python/Java/PowerShell Flex Consumption function app.
  2. There is no application setting "FUNCTIONS_WORKER_RUNTIME" in Flex Consumption function app. image

v-ruizh avatar May 23 '24 08:05 v-ruizh

Great catch. There should be a different property that we can check for flex apps in order to get the runtime information.

nturinski avatar May 29 '24 18:05 nturinski

Happened to me too, the extension should filter uploading these settings in a flex consumption environment

JustinGrote avatar Aug 11 '24 00:08 JustinGrote