Web App: Kudu Node Version is to low

Max Renner 0 Reputation points
2025-03-05T10:11:52.0266667+00:00

Hi,

we are useing an Azure Release Pipeline with the Task "AzureRmWebAppDeployment@5" on a Azure DevOps Premise. The task deploys our build App as ZipDeloyment to the Azure Web App with Linux as OS and Node 20 LTS (20.18.1) as Target Node Version.
B7cf7279e71ca4fc9ba2518329f255a2a638764651901384539_20250301-233309-grafik

The problem we are facing is that we want to use the post deployment action of the task to install the npm packages of our app but the builder aka "Kudu" has only the Node version 18.17.1 installed. The packages we use need a higher node version (on the kudu service).
Be9c171643c434ba29fc6c6adaaaf53dd638764642547921853_20250301-231734-grafik
B8410e223f1144b348c3e2fb390726b51638764647359024800_20250301-232535-grafik
Is there a flag or way to update the kudu node version?

The Node Version from the Web App is fine.
grafik

Everything i found was releaed to the web App Node Version which doesnt change the kudu node version. What I found:
WEBSITE_NODE_DEFAULT_VERSION
Used in the ENV Vars with value "20.18.1"
LINUX_FX_VERSION
That this env var is corretly set to my target Node-Version --> NODE|20-lts
And that the right build is used for the containter
grafik

The Wep App Configuration is set corretly
grafik

And the last thing that maybe be helpfull but also didnt effect the kudu node version was "WEBSITE_DISABLE_SCM_SEPARATION"
I tried 0, false, False, FALSE as value but nothing looked like a change, even after a new deloyment.
Always still the same older Node Version on the Kudu Service.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Prabhavathi Manchala 2,315 Reputation points Microsoft External Staff Moderator
    2025-03-06T11:53:09.2+00:00

    Hi Max Renner,

    At present, there is no direct method to upgrade the Node.js version of the Kudu environment either manually or via a flag. The Node.js version in Kudu is determined by the application settings in the Azure portal, specifically the WEBSITE_NODE_DEFAULT_VERSION setting.

    Although you cannot directly alter the Kudu version, you can set the Node.js version for your application runtime using the engines field in package.json.

    You can also set it Azure portal settings (under Application settings > WEBSITE_NODE_DEFAULT_VERSION), but it does not directly affect Kudu’s environment during post-deployment actions.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.