how to update the webconfig file in azure app service

Deshmukh, Vijit 491 Reputation points
2023-01-23T08:17:29.6966667+00:00

Hi Team,

We have deployed the nodejs code in the Node 14 Azure app service.

while updating the webconfig file from the Advanced tools option in the azure portal, I am getting access denied

409 Conflict: Could not write to local resource 'C:\home\site\wwwroot\kca-mnl\web.config' due to error 'Access to the path is denied.'.

Please let me know how webconfig file can be update in the azure portal permanently.

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

Accepted answer
  1. Grmacjon-MSFT 14,286 Reputation points
    2023-01-26T01:30:35.2333333+00:00

    Hi@Deshmukh, Vijit thanks for the question.

    To clarify you are using KUDU to update webconfig file? is this a production workload? Did you deployed your files through run from package? if yes, this means your folder is set as Read Only.

    0 means write mode and 1 is read-only mode

    You can try to redeploy your app or change the setting WEBSITE_RUN_FROM_PACKAGE value from 1 to 0 via the Azure portal in the configuration Blade.

    when you change the value to 0 you should go back to KUDU and doublecheck D:\home\site\wwwroot

    please see this blog post for more infomation: https://dotnetthoughts.net/azure-app-service-kudu-409-conflict/

    NOTE: keep in mind that following this process will reset your webapp to initial state - all your deployed code, assets and all will be removed.

    Please let us know if you have more questions.

    Best,

    Grace


0 additional answers

Sort by: Most helpful