客户端服务器上的自托管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
答案 0 :(得分:0)
您可以在连接字符串中使用TrustServerCertificate。 https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/connection-string-syntax#using-trustservercertificate