Azure Function: Publish fails with message “Web Deploy cannot modify the file on the Destination because it is locked by an external process.”

前端 未结 6 901
猫巷女王i
猫巷女王i 2021-02-01 13:25

I am developing an Azure Functions Project and when I publish first time, OK. Then I publish again, this Error appears:

Web Deploy cannot modify the file

6条回答
  •  名媛妹妹
    2021-02-01 14:14

    As of time of this writing, if you are using Azure DevOps (VSTS) to deploy your application, you can select "Run From Package" in the "Azure App Service Deploy" task/step - this is available in version 4 of the task, under the "Additional Deployment Options" node.

    This deployment option eliminates file locking issues as it provides atomicity, in that the application is pointed to the new zip file rather than deploying a bunch of loose files under wwwroot, some of which may be locked.

    It provides you with a number of other benefits as documented here.

    HTH

提交回复
热议问题