0
votes

Dotnet Core Web API Deployment to Azure App Service using Azure Devops has option to remove all additional files at destination and Eclude files from the App_data folder.

The Web API has additional files like logs, web job, etc.

There is a provision in CI/CD to avoid deleting the Web Job but there is no provision to keep the file / remove selected Additional files at destination. Log file created by Web API getting deleted every time devops deploy the new but no need to remove that.

I think, using Powershell command, it can be remove selected additional files which we dont want. Other alternative is create log in storage instead of on App service.

I want to explore other alternate way even if log is created in App service.

Please advise.