5
votes

I'm using Azure pipeline to deploy my asp.net web site on an app service. Before deploy, i need to remove some files on the remove app service. The only way is to use kudu api? Or i can use poweshell script to access and manipulate files directly?

Thanks

1

1 Answers

5
votes

If you are using the 'Deploy Azure App Service' task you are able to explicitly select the way you deploy the application. By setting that to 'WebDeploy' you are able to set the task to remove any files that are on the App Service but are not present in the deployment package.

Configuration would look as follows:

enter image description here