How to recursively set all files and folder to read only in a Azure App Service

Laron Walker 21 Reputation points
2021-09-07T15:11:46.013+00:00

We have a azure app service and would like to set our file system to read only. I see that we can run chmod commands via the Kudu interface. Are these changes persisted across all new VM's if we scale out the site? Also, what's the best way to recursively apply this to all folders/sub folders and file under wwwroot?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,851 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 18,286 Reputation points
    2021-09-08T13:18:26.133+00:00

    Thanks for asking question! If I have understood right you want to set folder permission for your site content on Azure Website, for read only try running the attrib command and set the file to read-only, as described here

    Check this blog on Set or change an Azure App Service file or folder permission might be helpful.

    Further to elaborate App Service is a PAAS - and it doesn't provide remote desktop access to the VM instances. The deployment mechanism is the action used to put your built application into the /home/site/wwwroot directory of your web app and supports deployment mechanisms (Kudu endpoints) and FTP and WebDeploy.

    Also, check this article here.

    Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you.

    0 comments No comments