简体   繁体   English

如何使用 azure tfs 在 CI/CD 管道中配置应用程序设置

[英]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.

相关问题 使用 Azure DevOps CI/CD 管道自动部署 ADF 管道 - Automated Deployment of ADF Pipelines using Azure DevOps CI/CD Pipelines 在 Azure CI/CD 管道中使用 npm 工作区来构建 React Web 应用程序? - Using npm workspaces in Azure CI/CD pipelines to build React web app? 如何在Azure Pipelines for CI / CD中使用较新版本的Maven进行构建 - How to use newer versions of Maven for builds in Azure Pipelines for CI/CD 如何配置 Azure CI/CD 以更新最新更改 - How to configure Azure CI/CD to update latest changes 使用 Azure 部署组的 Angular 8 APP 的 Azure CI/CD 管道 - Azure CI/CD pipeline for Angular 8 APP using Azure Deployment Groups Azure DevOps CI/CD 部署 Web 或 Function 应用程序更改 Z9463F832F8B5261Z 管道中的应用程序设置中的值FBD8403F8185CABED1FCE - Azure DevOps CI/CD Deploy Web or Function App changing the values in appsettings in YAML Pipelines 使用 VSTS CI/CD 部署 azure web app 和他们的 webjobs - deployment of azure web app and thier webjobs using VSTS CI/CD 在Azure中部署Angular应用程序并使用VSTS配置CI / CD - Deploying Angular app in Azure and configuring CI/CD using VSTS 使用或不使用触发器为 Azure 数据工厂创建 CI 和 CD 管道 - Creating CI and CD pipelines for Azure data factory with or without triggers 如何通过 CI/CD 管道将 Azure 函数部署到函数应用中? - How to deploy an Azure function into a function app through a CI/CD pipeline?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM