azureazure-devopsazure-web-app-serviceazure-webjobscontinuous-delivery

Azure WebJobs CD ereasing wwwroot content


I'm publishing 2 web jobs to the respective paths:

Azure AppService Configuration

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:

WebJob Cd Tasks

I was expecting having to republish my API every time I publish my web job.


Solution

  • I can reproduce the issue when I tried to deploy files to the Virtual application path, and I found the site\wwwroot folder will be back to the old last version.

    Workaround

    If I change the task version from AzureRmWebAppDeployment@4 to AzureRmWebAppDeployment@3, it works and will not make change to the files in the site\wwwroot folder. I also find a known issue here for your reference.

    enter image description here