You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Azure DevOps Server本地版SQL DB Deploy如何添加证书信任?

在Azure DevOps Server 2019的SQL DB Deploy(版本0.*)步骤中添加TrustServerCertificate=True参数的方法
  • 打开目标发布管道,定位到对应的SQL DB Deploy(版本0.*)任务。
  • 根据任务的配置方式选择对应操作:
    1. 直接使用连接字符串配置:在任务的连接字符串输入框中,于原有内容末尾追加 ;TrustServerCertificate=True。例如原连接字符串为Data Source=SQL-SERVER;Initial Catalog=TargetDB;User ID=deploy-user;Password=xxx,修改后为:
      Data Source=SQL-SERVER;Initial Catalog=TargetDB;User ID=deploy-user;Password=xxx;TrustServerCertificate=True
      
    2. 分字段配置服务器/数据库信息:找到任务的高级选项卡,在Additional arguments输入框中添加以下参数:
      /p:TrustServerCertificate=True
      
  • 保存管道配置后重新执行发布任务,即可绕过证书链信任验证,解决报错问题。

内容的提问来源于stack exchange,提问作者AndyW

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.13 21:14:51