I am deploying a python web app using Web App on Linux service and using a DevOps release pipeline. The pipeline task that I am using is called AzureRmWebAppDeployment@4
.
Between deployments, the files in the container are not being removed and this is causing issues.
I noticed if I am using a different type of app service (i.e. Web App on Windows) and if the deployment method is set to Web Deploy
the option for Remove additional files at destination
exists (see screenshot). However we are using a Zip Deploy
method and prefer to be using a linux service. without that combination of app service and deployment method, this option is not available to me.
Can anybody suggest an alternate method for deleting the container contents upon deployment? Also, any insight as to why this option is not available through the pipeline task when using Zip Deploy and Linux?
Thanks in advance for any help provided.
Could not find the modules: 'Az.Accounts' with Version: '1.0.0'. If the module was recently installed, retry after restarting the Azure Pipelines task agent
I found this article and tried the suggestions but still not working out. Are you familiar with this error message? – Fabiano