[英]How to configure app settings in CI/CD pipelines using azure tfs
I am try to create an CI/CD pipeline using azure tfs.我正在尝试使用 azure tfs 创建一个 CI/CD 管道。 I have successfully build and deployed pipeline using IIS web deployment utility.我已经使用 IIS web 部署实用程序成功构建和部署了管道。 But now, I want to deploy asp.net app to local on-premise machine.但是现在,我想将 asp.net 应用程序部署到本地本地机器。 But during build or release, I want to configure app settings, so that I can choose the connection strings and server locations.但是在构建或发布期间,我想配置应用程序设置,以便我可以选择连接字符串和服务器位置。 I followed a lot of tutorials on Microsoft website and other like this But, there is a problem, it asks for azure subscription.我在微软网站和其他类似的网站上关注了很多教程但是,有一个问题,它要求订阅 azure。 Do I need it in my case?我需要它吗? Is there any alternative approach or some tutorial I can follow to do such deployment?是否有任何替代方法或一些教程可以遵循来进行此类部署?
I do have a basic plan subscription, but I am haven't figured put how much azure app service utility will cost?我确实有一个基本计划订阅,但我还没有计算出 azure 应用服务实用程序的费用是多少?
Can someone guide me, if I am in right direction or share some resource I could follow?如果我的方向正确或分享一些我可以遵循的资源,有人可以指导我吗?
According to your question, you need to use IIS Web App Deploy task, so you do not need azure subscription.根据您的问题,您需要使用 IIS Web App Deploy 任务,因此您不需要 azure 订阅。 You can use the File Transforms & Variable Substitution
function that comes with IIS Web App Deploy
to configure connection strings and server locations through XML transformation
or XML variable substitution
. You can use the File Transforms & Variable Substitution
function that comes with IIS Web App Deploy
to configure connection strings and server locations through XML transformation
or XML variable substitution
. For details,please refer to this document .有关详细信息,请参阅此文档。
Or you can try to use File Transform task.或者您可以尝试使用文件转换任务。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.