[英]Azure DataFactory v2 Linked Service with Integration Runtime
客户端服务器上的自托管IR设置显示连接到我的ADFv2。 创建链接服务超时。 我可以看到此设置与以前的成功设置之间的唯一区别是,SQL Connection需要启用信任服务器证书刻度。
我不知道如何向我的json sqlconnection文件添加信任服务器证书。
删除了下面的SqlServerLinkedService.json的服务器名和密码
{
"properties": {
"type": "SqlServer",
"typeProperties": {
"connectionString": {
"type": "SecureString",
"value": "Server=<servername>;Database=Master;User
ID=admin;Password=<password>;Timeout=60"
}
},
"connectVia": {
"type": "integrationRuntimeReference",
"referenceName": "Test-IR"
}
},
"name": "SqlServerLinkedService"
}
New-AzureRmDataFactoryV2LinkedServiceEncryptedCredential -DataFactoryName
$dataFactoryName -ResourceGroupName $ResourceGroupName -
IntegrationRuntimeName "TEST-IR" -File ".\SQLServerLinkedService.json
" > encryptedSQLServerLinkedService.json
给我错误:
New-AzureRmDataFactoryV2LinkedServiceEncryptedCredential : Unable to
connect to the remote server caused by A connection attempt failed because
the connected party did not properly respond after a period of time, or
established connection failed because connected host has failed to respond
<ip address removed>:8050 At line:1 char:1
+ New-AzureRmDataFactoryV2LinkedServiceEncryptedCredential -DataFactory ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [New-
AzureRmData...yptedCredential], GeneralException
+ FullyQualifiedErrorId :
Microsoft.Azure.Commands.DataFactoryV2.NewAzureDataFactoryLinkedServiceEncryptedCredentialCommand
您可以在连接字符串中使用TrustServerCertificate。 https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/connection-string-syntax#using-trustservercertificate
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.