Azure App Services部署插槽转换 [英] Azure App Services Deployment Slot Transformations

查看:68
本文介绍了Azure App Services部署插槽转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开始使用Azure应用服务中的部署插槽来进行生产任务.我遇到的问题是,我似乎找不到在appsetting和connectionstrings之外的web.config上进行转换的方法.我似乎缺少了一些东西,但是我需要能够调整其他配置,从日志记录级别到其他集成配置部分.

I would like to start using the deployment slots in my Azure App Services for a staging to production task. The problem that I am running into is I can't seem to find a way to do transformations on the web.config outside of the appsetting and connectionstrings. I seem to be missing something, but I need to be able to adjust other configurations, from logging levels, to other integrated config sections.

我们目前一直在使用带有msdeploy和Parameters.xml文件的构建服务器中的直接部署来完成许多工作,但是不适用于部署插槽.

We currently have been using direct deployments from our build server with msdeploy and Parameters.xml file to do much of this work, however that won't work with deployment slots.

推荐答案

创建其他部署插槽时,可以从现有实例克隆所有设置,也可以不复制任何内容.根据文档:

When you create the additional deployment slot, you can clone all settings from the existing instance, or dont copy anything. As per documentation:

"您可以从任何现有插槽克隆配置.被克隆包括应用程序设置,连接字符串,语言框架版本,Web套接字,HTTP版本和平台位数."


在新的部署插槽的设置">配置"下,您可以通过选择部署插槽设置"在此处指定特定于新的部署插槽的任何设置.


In the new deployment slot, under Settings > Configuration, you can specify any settings here to be specific to the new deployment slot by selecting "Deployment slot setting".

这篇关于Azure App Services部署插槽转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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