I'm publishing 2 web jobs to the respective paths:
But, every time, the content inside site\wwwroot is erased, and I have an API project published there, so, every time I need to republish the API after.
I can't find a solution anywhere about this, why is this happening?
This is my web jobs CD:
I was expecting having to republish my API every time I publish my web job.







I can reproduce the issue when I tried to deploy files to the Virtual application path, and I found the
site\wwwrootfolder will be back to the old last version.Workaround
If I change the task version from
AzureRmWebAppDeployment@4toAzureRmWebAppDeployment@3, it works and will not make change to the files in thesite\wwwrootfolder. I also find a known issue here for your reference.