Error when connecting to Azure SQL Database from Azure Data Factory

Cheah, Felix FC 0 Reputation points

I am trying connecting data factory to SQLMI using Managed identity. I was able to create the linked service and the test connection was successful. I tried a copy pipeline to query the SQL database and copy it to a storage account and that worked. I created a dataset and could preview the data from there. However, when I tried using that dataset in a data flow (also tried inline data) the connection fails and give this error: Cannot connect to SQL database: 'jdbc:sqlserver://(server name), 'Managed Identity (factory name): (name)'.[SQL Exception]Error Code:18456, Error Message: Login failed for user '<token-identified principal>'. ClientConnectionId:3dda9792-95c4-4561-aab2-66b28bf0b2ff, error

Azure SQL Database
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,151 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Nandan Hegde 29,551 Reputation points MVP

    Hey, My guess is you are using Self hosted IR to access your SQL MI database via ADF . Can you please confirm on that ? If that is the case, ADF dataflow doesnt support Self IR sources thereby leading to a failure in connection

  2. ShaktiSingh-MSFT 12,541 Reputation points Microsoft Employee

    Cheah, Felix FC

    Welcome to Microsoft Q&A forum.

    As I understand, you are getting error when trying to connect to Azure SQL Managed Instance from ADF with Managed Identity.

    Could you please let us know if you have followed the steps mentioned in the standard documentation without any issue:

    and successfully provisioned a Microsoft Entra administrator( ) for your Managed Instance?

    Let us know the result and also share the configuration details of the Azure SQL MI.


    0 comments No comments