Using pipe: atlassian/azure-web-apps-deploy:0.2.1 (or newer) is there a way to remove old files from the Azure Web App during deployment? I do not see any option in the pipe to do so.
For example the following currently occurs:
Thanks to David McGhee's answer I was led to this issue regarding the Azure CLI: https://github.com/Azure/azure-cli/issues/5007
It turns out that my described issue was not true. In my case what had actually happened was that the original file I was attempted to delete was deployed using a different mechanism (it was actually originally deployed via a local Git repository). On subsequent attempts to recreate the issue it turns out that:
In short, my issue was a non-issue - I simply deleted the extraneous files from previous deployment mechanisms and now my web app file system is syncing in line with the Bitbucket repo.
Looking at the source this pipe performs the deployment using the kudu zip push deployment for a web app. In a zip push files and directories found in the site that aren’t being overwritten by the deployment will be preserved, such as files deployed via FTP, created in the Functions portal or created by your app during runtime. I would suggest the way to remove files would be to use staging environment and a slot swap as part of deployment. Alternatively you could use the azure cli pipe to clean up/remove or an advanced method might be to try KuduSync.NET
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.