Azure Data Factory Copy Activity Fails – Azure IR Pre-login Handshake Timeout Across Regions

Gerrit Van Even 0 Reputation points
2025-06-20T10:14:57.5433333+00:00

Due to ill-supported support from within Azure, I try getting answers along this way:

We are encountering persistent failures in Azure Data Factory copy activities when writing to Azure SQL Database using the Azure Integration Runtime (both AutoResolve and dedicated).

The failure consistently occurs during the pre-login handshake phase. This happens despite correct configuration and full firewall access.

Error message: ErrorCode=SqlFailedToConnect Type=Microsoft.Data.SqlClient.SqlException Message=Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. Duration: [Pre-Login] initialization=74; handshake=14936; Type=System.ComponentModel.Win32Exception Message=The wait operation timed out

What we have verified:

SQL Server firewall allows all traffic (0.0.0.0 – 255.255.255.255)

Credentials are correct

Linked service test connections succeed

SSMS connections work from a non-corporate (home) network

Synapse pipelines in the same resource group and region can successfully write to the same SQL databases

The issue persists across:

Multiple Azure SQL Servers (in West Europe and UK West)

  Multiple Azure SQL Databases
  
     AutoResolveIntegrationRuntime and dedicated Azure IRs
     
        Dev and Prod Data Factory environments
        

All copy activities fail during the pre-login handshake when using Azure IR. However, pipelines in Azure Synapse can write to the same Azure SQL Databases without issue.

This suggests a platform-level networking or TLS issue inside Azure Data Factory’s integration runtime infrastructure, affecting connectivity to Azure SQL Database.

Request: Please escalate this to the Azure Data Factory engineering team. We suspect a backend connectivity issue between Azure IR and the SQL Database gateway(s), potentially due to routing or TLS handshake failures.

We are available to provide logs, pipeline activity run IDs, or perform additional tests if needed.

Thank you.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,625 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. J N S S Kasyap 3,625 Reputation points Microsoft External Staff Moderator
    2025-06-20T11:25:23.03+00:00

    Hi @Gerrit Van Even
    You're facing a frustrating issue with Azure Data Factory (ADF) copy activities failing during the pre-login handshake phase while connecting to Azure SQL Database, even though connections from Azure Synapse pipelines succeed under the same conditions. This does strongly point toward an internal issue with the Azure Integration Runtime (IR) networking or TLS negotiation. 

    Here are some troubleshooting steps and considerations: 

    If you're using a VNet-Injected IR, double-check Network Security Groups (NSGs) and User-Defined Routes (UDRs). Ensure outbound access on port 1433 is open for Azure SQL and that Azure service tags like Sql, AzureCloud, and Storage are properly allowed. 

    Ensure your Azure IR is up-to-date. Though the default IR is managed by Microsoft, any custom IR should be regularly updated to avoid connectivity bugs. 

    Confirm that the SQL Database enforces a compatible TLS version (1.2 or above). ADF uses modern TLS standards, but any policy mismatches could cause pre-login handshake failures. 

    Use built-in retry policies in the ADF Copy activity to mitigate transient issues. However, if the issue persistent pre-login failures often indicate deeper infra problems. 

    I hope this helps! Let me know if you have any other questions or need further assistance.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.