【发布时间】:2020-02-29 07:36:51
【问题描述】:
我正在尝试在 azure 数据工厂中参数化 mongo DB 连接的链接服务。我已经提到了文件here。 下面是我试图在链接服务的代码中更新的代码
{
"name": "MongoDB",
"properties": {
"type": "MongoDbV2",
"parameters": {
"LSHeatStackConnection": {
"type": "String",
"defaultValue": "mongodb://username:password@1.1.1.4:1800/dbname?authMechanism=SCRAM-SHA-1;authSource=admin"
}
},
"annotations": [],
"typeProperties": {
"connectionString": {
"type": "SecureString",
"value": "@{linkedService().LSHeatStackConnection}"
},
"database": "heatstack"
},
"connectVia": {
"referenceName": "DevIR",
"type": "IntegrationRuntimeReference"
}
}
}
但我在保存上述代码时遇到以下错误。
未能发布 ****DB(链接服务名称)。原因:至少一项资源部署操作失败。请列出部署操作以了解详细信息。使用详情请查看https://aka.ms/arm-debug。
当我尝试通过单击铅笔图标 来编辑链接服务并单击测试连接时,它显示成功。但是当我单击完成时,它会引发错误,并显示无法保存 *****DB。错误:无法加密子资源负载
【问题讨论】: