Connecting Azure Data Factory to Dynamics 365 CE sql Connection

Dixit Jain 20 Reputation points
2025-05-16T10:18:18.61+00:00

Hi,

In Azure Data Factory, we can use Dynamics 365 Connector for executing FetchXml.

Wanted to know steps to connect ADF with Dynamics 365 CE Database, so that we can execute Sql query on Dynamics 365 CE instance.

Let me know if you have any question.

Regards,

Dj

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

Accepted answer
  1. Michele Ariis 2,040 Reputation points MVP
    2025-05-16T10:31:10.31+00:00

    Hi, to run T-SQL from ADF against Dataverse, first enable the TDS endpoint in Power Platform Admin Center (make sure ports 1433/5558 are open outbound), then create an app registration in Entra ID and add it as an Application User in Dataverse with read permissions; set up a Self-Hosted IR (recommended for most setups), create a SQL Server linked service in ADF pointing to <org>.crm.dynamics.com,5558 using Azure AD Service Principal auth, and finally use that connection in Copy or Data Flow activities - remember the TDS endpoint is read-only, times out after 5 minutes, doesn’t support all data types, and requires the org unique name as the DB name.


1 additional answer

Sort by: Most helpful
  1. Nandan Hegde 36,151 Reputation points MVP Volunteer Moderator
    2025-05-16T10:30:09.8233333+00:00

    Based on my understanding, there is no direct way to execute SQL queries on Dynamics 365 CE database.

    Neither in ADF nor any other tool in direct way.

    You can set up Azure Synapse link and query that data from Synapse in form of SQL
    https://learn.microsoft.com/en-us/power-apps/maker/data-platform/azure-synapse-link-synapse

    0 comments No comments

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.