Installing the Azure site extension and not able to copy the module to wwwroot folder

Ashish Kumar Singh 0 Reputation points
2025-04-17T10:07:15.6566667+00:00

I am installing and Azure Site extension node agent, which have few dependencies under the Node_Modules. Now, i need to copy those under the site/wwwroot/node_modules/* folder. But is not getting copied.
Issue which i see
When you run from a package, the wwwroot folder is read-only and you receive an error if you write files to this directory. Files are also read-only in the Azure portal.

https://learn.microsoft.com/en-us/azure/azure-functions/run-functions-from-deployment-package

Any possible solution for copy the folder during the time of installing the siteextention?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,782 questions
{count} votes

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.