Unable to connect the Azure SQL DB from ADF

Apoorv Osatwal 11 Reputation points
2020-10-12T18:24:55.033+00:00

Hi All,

I am unable to connect the azure SQL DB from Azure data factory. I am getting below error message, although my linked service is showing connection successful when testing connection to DB. Also I am able to connect to Azure SQL DB manually with same credentials. Also I have increased the DB size . Completely clueless now.

Operation on target Copy_sw1 failed: ErrorCode=SqlFailedToConnect,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Cannot connect to SQL Database:, Database: , User: . Check the linked service configuration is correct, and make sure the SQL Database firewall allows the integration runtime to access.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=System.Data.SqlClient.SqlException,Message=A network-related or instance-specific error occurred while establishing a connection to 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. (provider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.),Source=.Net SqlClient Data Provider,SqlErrorNumber=10061,Class=20,ErrorCode=-2146232060,State=0,Errors=[{Class=20,Number=10061,State=0,Message=A network-related or instance-specific error occurred while establishing a connection to 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. (provider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.),},],''Type=System.ComponentModel.Win32Exception,Message=No connection could be made because the target machine actively refused it,Source=,'
Azure SQL Database
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
{count} votes

1 answer

Sort by: Most helpful
  1. Rehman 1 Reputation point
    2020-12-09T14:41:14.767+00:00

    Hi @HarithaMaddi-MSFT ,
    I am facing the same issue when trying to create credentials for the External SQL Server Database hosted in Azure VM.
    I used the following PowerShell Code Snippet from
    create-data-source
    46609-image.png

    Please guide me I am doing anything wrong.

    0 comments No comments

Your answer

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