You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configure applications to use supported Node.js runtime versions.
14
+
15
+
## DESCRIPTION
16
+
17
+
In an App Service app, you can configure the Node.js runtime version used to run your application or site code.
18
+
19
+
Extended support for Node.js 18 LTS will end on April 30, 2025. While apps hosted on App Service will continue to operate, security updates and customer support for Node.js 18 LTS will no longer be provided after this date.
20
+
21
+
To avoid potential security vulnerabilities and minimize risks for your App Service apps, it is recommended to upgrade your apps to Node.js 20 LTS before April 30, 2025.
22
+
23
+
## RECOMMENDATION
24
+
25
+
Consider updating applications to use supported Node.js runtime versions to maintain security and support.
26
+
27
+
## EXAMPLES
28
+
29
+
### Configure with Azure template
30
+
31
+
To deploy App Services that pass this rule:
32
+
33
+
- For Linux-based apps and slots:
34
+
- Set the `properties.siteConfig.linuxFxVersion` property to `NODE|20-lts`.
35
+
- For Windows-based apps and slots:
36
+
- Add an app setting within `properties.siteConfig.appSettings` by creating an object with the `name` and `value` properties.
37
+
- Set the `name` property to `WEBSITE_NODE_DEFAULT_VERSION`.
38
+
- Set the `value` property to `~20`.
39
+
40
+
In addition to setting the `properties.siteConfig` property, you can also use a sub-resource.
-[SE:02 Secured development lifecycle](https://learn.microsoft.com/azure/well-architected/security/secure-development-lifecycle)
162
+
-[Upgrade your App Service apps to Node 20 LTS by 30 April 2025](https://azure.microsoft.com/updates/action-required-upgrade-your-app-service-apps-to-node-20-lts-by-30-april-2025/)
163
+
-[Node.js on App Service](https://github.com/Azure/app-service-linux-docs/blob/master/Runtime_Support/node_support.md)
0 commit comments