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

ARM模板+CICD部署Azure函数时连接字符串为空的原因

问题:Azure函数ARM模板部署后连接字符串为空且类型错误

我的Azure函数ARM模板包含如下connectionStrings配置段:

],
      "connectionStrings":[
        {
          "name":"ConnectionString",
          "value":"[parameters('ConnectionString')]"
        }
      ]

我通过ARM模板部署时覆盖了对应参数,部署完成后在Azure门户中看到该连接字符串为空,同时被错误标记为MySQL(实际应为SQL Server连接字符串)。该连接字符串作为机密存储在发布流水线变量中,具体内容如下:

Server=tcp:sxxxxxxxxx-dev-centralus-001.database.windows.net,1433;Initial Catalog=xxxxxxxx-dev-centralus-001;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;Authentication=\"Active Directory Default\";

请问为何部署后连接字符串为空?

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.24 05:22:02