Open jryutzy opened 10 months ago
Hello, the Run From Package and Zip Deploy Functionality should mean that any additional files present in home/site/wwwroot would be removed. I'll review this work item and come back to you.
I had a file named zzzappsettings.json and it was not removed. Existing files were overwritten but it didn’t clear the directory like I believe it should have. The AzureRmWebAppDeployment taskImentioned works correctly when you pass removeAdditionalFilesFlag: true
I searched for a App Service task that would allow me to just run a script (powershell, etc) against the AppService/AzurFunction but did not see one. If I could run a script against the AppService/AzureFunction wwwroot folder I could purge the files manually before I use the deploy task.
@jryutzy if you could share your YAML for the Function App Task and then I can see if there is an improvement that we can make to help with this. As I mentioned above the Zip deployment is our recommended way of deploying and so this should either mount or copy the zip to home/site/wwwroot. If the deployment type is set to zipDeploy rather than auto or Run From Package then it may keep existing files. Our recommendation would be to use Run From Package to make sure additional files are removed.
@jryutzy did you have an updates to share on this?
Task name
AzureFunctionAppV2
Task version
2
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
NA
Operation system
Windows 11
Task log
Relevant log output
Aditional info
No response