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
相关产品推荐
相关产品推荐

