增量ARM配置会删除WebApp二进制文件 [英] Incremental ARM provisioning erases WebApp binaries

查看:58
本文介绍了增量ARM配置会删除WebApp二进制文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在Azure DevOps中有一个CI / CD管道,它使用ARM模板为WebApp配置资源组,并使用Azure App Service Deploy部署Asp.Net Core应用程序任务。


当我第二次运行增量资源配置时,WebApp实例上的所有二进制文件都消失了。 在进行增量部署时,是否有可能以某种方式保留二进制文件?


解决方案

< blockquote>

只是为了突出显示,部署模式 - 增量
模式
将部署作为增量更新处理资源组。它保留资源组
中存在的未更改的资源,但未在模板中指定。而在
完整模式
删除模板中没有的资源。默认情况下,使用增量模式。


使用   Azure
App Service Deploy
  < span style ="font-size:10.0pt; font-family:'Verdana',sans-serif;颜色:#242729; background:white; font-weight:normal">任务,    
正在使用

 
使用Web Deploy发布
  选项,
还有一个附加选项
  '
删除
目标附加文件
'
取消选中
这个选项,看看是否有帮助。


Kudu只会删除以前部署的文件,但会从当前的
中删除。  查看此文档以查看: 
https://github.com/projectkudu/KuduSync




Hi,

I have a CI/CD pipeline in Azure DevOps that provisions resource group with WebApp using ARM template and deploys Asp.Net Core app using Azure App Service Deploy task.

When I run incremental resource provisioning the second time, all binaries on WebApp instance are gone.  Is it possible somehow to preserve binaries when doing incremental deployment?

解决方案

Just to highlight, Deployment Mode -Incremental mode handles deployments as incremental updates to the resource group. It leaves unchanged resources that exist in the resource group but are not specified in the template. Whereas in Complete mode deletes resources that are not in your template. By default, Incremental mode is used.

When using the Azure App Service Deploy task, and you are using the Publish using Web Deploy option, there is an additional option to Remove Additional Files at Destination, Uncheck this option and see if that helps. If the issue persists, could you please provide more details on the template you are using? Are you using PowerShell to do the ARM deploy?

Kudu will only delete the files which are part of previous deployment but removed from current one.  Take a look at this document to review: https://github.com/projectkudu/KuduSync.



这篇关于增量ARM配置会删除WebApp二进制文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆