Azure Function: Web Deploy cannot modify the file on the Destination because it is locked by an external process

Ajit PatraDyn365CE5 years ago172 Views

Recently, while deploying Azure Function from Visual Studio, we got an error “Web Deploy cannot modify the file on the Destination because it is locked by an external process”.

To fix this issue, we created an application setting. There are 2 ways to do this:

  1. Create an Application Setting in the Function App in Azure portal:
    MSDEPLOY_RENAME_LOCKED_FILES = 1

Or,

2. Create and Application Setting in the Publish profile for the respective Function App in Visual Studio.

Click on Manage Azure App Service Settings.

Click on Add Setting -> Add setting named “MSDEPLOY_RENAME_LOCKED_FILES” -> Click OK.

Put the value as 1.

After creating the Application Setting when we deployed the Azure Function, it was deployed successfully.

Hope it helps !!

Original Post https://ajitpatra.com/2020/10/19/azure-function-web-deploy-cannot-modify-the-file-on-the-destination-because-it-is-locked-by-an-external-process/

0 Votes: 0 Upvotes, 0 Downvotes (0 Points)

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
December 2025
MTWTFSS
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31     
« Nov   Jan »
Follow
Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...

Discover more from 365 Community Online

Subscribe now to keep reading and get access to the full archive.

Continue reading