具有集成运行时的 Azure 数据工厂 v2 链接服务



客户端服务器上的自托管 IR 设置,显示连接到我的 ADFv2。创建链接服务超时。我可以看到此设置与以前成功设置之间的唯一区别是SQL连接需要启用信任服务器证书刻度。

我不知道如何将信任服务器证书添加到我的 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://learn.microsoft.com/en-us/dotnet/framework/data/adonet/connection-string-syntax#using-trustservercertificate

相关内容

  • 没有找到相关文章

最新更新