简体   繁体   English

Azure 管道无法连接到 Azure Sql

[英]Azure pipeline unable to connect to Azure Sql

I am trying to use the copy data function in ADF to copy data from an in house server to an Azure database.我正在尝试使用 ADF 中的复制数据功能将数据从内部服务器复制到 Azure 数据库。 Now when I test the two connections they complete and I am able to pull data.现在,当我测试这两个连接时,它们已完成并且我能够提取数据。 It's almost like it's trying to use the on-premises runtime for the Azure connection.这几乎就像它试图将本地运行时用于 Azure 连接。 I have opened the firewall to Azure services but still unable to get it to validate.我已经为 Azure 服务打开了防火墙,但仍然无法对其进行验证。

And on top of this if I write it to a azure blob then copy it that data set it works最重要的是,如果我将它写入一个天蓝色的 blob,然后将它复制到它可以工作的数据集

However as soon as I try validate the copy it gives me the following error:但是,一旦我尝试验证副本,它就会给我以下错误:

Fail to connect to AzureDWCORP from Integration Runtime: onPremDBEngine.无法从集成运行时连接到 AzureDWCORP:onPremDBEngine。
Error message: Cannot connect to SQL Database: 'xxxxxx.database.windows.net',错误消息:无法连接到 SQL 数据库:'xxxxxx.database.windows.net',
Database: 'XXX_DEV', User: 'xxxxx'.数据库:'XXX_DEV',用户:'xxxxx'。

Check the linked service configuration is correct, and make sure the SQL Database firewall allows the integration runtime to access.检查链接服务配置是否正确,并确保 SQL 数据库防火墙允许集成运行时访问。 A network-related or instance-specific error occurred while establishing a connection to SQL Server.与 SQL Server 建立连接时发生与网络相关或特定于实例的错误。 The server was not found or was not accessible.服务器未找到或无法访问。 Verify that the instance name is correct and that SQL Server is configured to allow remote connections.验证实例名称是否正确以及 SQL Server 是否配置为允许远程连接。 (provider: TCP Provider, error: 0 - 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.), SqlErrorNumber=10060,Class=20,State=0, 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 . (provider: TCP Provider, error: 0 - 连接尝试失败,因为连接方在一段时间后没有正确响应,或者因为连接的主机没有响应而建立连接失败。), SqlErrorNumber=10060,Class=20, State=0,连接尝试失败,因为连接方在一段时间后没有正确响应,或者由于连接的主机没有响应而建立连接失败。

So if anyone ever has this same error what I did to get around it was to load the data into a Azure table storage then pull it out of that into the destination table.因此,如果有人遇到同样的错误,我所做的就是将数据加载到 Azure 表存储中,然后将其从该表中提取到目标表中。 This will allow you to switch between integrated run times.这将允许您在集成运行时间之间切换。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM