我正在使用PowerShell命令将ARM模板部署到Azure Data Factory v2
New-AzureRmResourceGroupDeployment -Name MyDeployment -ResourceGroupName myResourceGroup -TemplateFile C:\work\arm_template.json -TemplateParameterFile C:\work\arm_template_parameters.json
工厂中有两个Oracle 12c链接服务 . 部署失败,错误消息指出这些链接服务有问题 . 消息不提供任何细节:
Resource Microsoft.DataFactory/factories/linkedServices 'myDataFactory/myLinkedServiceOne' failed with message '{
"code": "BadRequest",
"message": "Error message not found.
在部署失败后,我可以看到Azure Cloud 中的数据工厂的所有资源,但是这两个链接服务(以及依赖于链接服务的管道)
我知道的问题是我不知道连接字符串应该是什么样子 . 我没有在MS文档中找到它所以我完全完成了它 . 它们如下(arm-template-parameters.json):
"myLinkedServiceOne_connectionString": {
"value": "Host=mydatabase.host.net;Port=1536;SID=someSid;User Id=someUser;Password=somePassword;"
},
我的问题是:在ARM参数文件中Oracle DB连接字符串应该如何?
1 回答
这是因为您的Integration Runtime处于脱机状态 . 请重新启动它并再试一次 .
根据this doc,您的连接字符串看起来很好 .
但是,如果您使用ODBC连接器,则应遵循this doc .