MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.27k stars 21.45k forks source link

WEBSITE_NODE_DEFAULT_VERSION not supported on Linux function apps #58292

Open PriceChild opened 4 years ago

PriceChild commented 4 years ago

Please see the following comment:

https://github.com/Azure/azure-functions-host/issues/3406#issuecomment-652504713

In short, WEBSITE_NODE_DEFAULT_VERSION is not supported and is not intended to be supported by Linux apps?

Instead, a properties/siteProperties/properties/LinuxFxVersion must be set to a different value.

I haven't tested this myself yet, but aim to figure out the format required and may propose a PR if possible.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

KrishnaG-MSFT commented 4 years ago

@PriceChild Thanks for your comment! We will review and provide an update as appropriate.

PramodValavala-MSFT commented 4 years ago

@PriceChild Thanks for raising this issue! We have assigned this issue to the content author to review and update the docs accordingly.

PriceChild commented 4 years ago

https://stackoverflow.com/a/58518078 has some example syntax for the required settings.

PriceChild commented 4 years ago

I've recently discovered https://docs.microsoft.com/en-us/azure/app-service/containers/configure-language-nodejs which explains how to set the version for Linux Function Apps through the az command line. It might be useful to link to this.

It looks like the format may be different when deploying arm templates, shown by advice at https://stackoverflow.com/a/58518078

PriceChild commented 4 years ago

FWIW, confirmed a value similar to:

          "linuxFxVersion": "DOCKER|mcr.microsoft.com/azure-functions/node:3.0-node12"

is required in arm templates.