> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connecting Azure Data Factory (ADF) to Insights

> Build an Azure Data Factory pipeline against legacy PlayFab Insights to orchestrate data movement and transform game event data at scale for downstream systems.

# Tutorial: Connecting Azure Data Factory (ADF) to Insights

This guide helps you get started using Azure Data Factory (ADF) along with Insights. After connecting, you can use Azure Data Factory to create workflows for orchestrating data movement and transforming game data at scale. To learn more about other tools you can connect Insights with, see [Connecting external tools to Insights](/services/playfab/data-analytics/legacy/connectivity).

In this tutorial you learn how to:

<Note>
  \[!div class="checklist"] \* Create a data factory in Azure \* Create a pipeline
</Note>

<Note>
  PlayFab Insights Management was retired on 3/31/2026. We recommend using [Azure Data Explorer (ADX) Connections](/services/playfab/data-analytics/export-data/data-connection-adx) to manage your performance and cost going forward. If your title is still using **Insights**, continue to see this article for implementation details. For more information, see [PlayFab Digest: March feature updates](https://developer.microsoft.com/en-us/games/articles/2026/04/playfab-digest-march-feature-updates/).
</Note>

## Prerequisites

### PlayFab account authenticated with AAD

You need a PlayFab account or user for which the authentication provider is set to Microsoft. The Microsoft authentication provider uses Azure Active Directory (AAD) for authentication which is required to use the Azure services. See [Azure Active Directory Authentication for Game Manager](/services/playfab/identity/dev-identity/authentication/aad-authentication) for instructions on creating an AAD-authenticated account or user.

To verify that the account, or user, is set to use the Microsoft authentication provider:

* Navigate to [developer.playfab.com](https://developer.playfab.com).
* Select **Sign in with Microsoft** to access your PlayFab account.

If you can sign in, then the account is set to use the Microsoft authentication provider.

### Game Manager permissions for Insights

You need to assign your account a [user role](/services/playfab/identity/dev-identity/permissions/playfab-user-roles) with the following Game Manager permissions enabled:

* Admin status.
* Access to the Explorer tab and associated data.
* Read and write access to Analytics data.

You can either create a new user role or add these permissions to an existing role.

### Other prerequisites

* [Create an Azure Active Directory (AAD) application and connect it to your title database](/services/playfab/data-analytics/legacy/connectivity/creating-AAD-app-for-insights)

## Create a new data factory

To create a new data factory:

1. Sign in to the [Azure portal](https://portal.azure.com). From the homepage under **Azure Services**, select **Create a resource**. Search for **Data Factory**, select it and then select **Create**. <img src="https://mintcdn.com/microsoft-4404708b/MjJ0-cTsb1bpaMcX/images/playfab/data-analytics/legacy/connectivity/adf-create-resource.png?fit=max&auto=format&n=MjJ0-cTsb1bpaMcX&q=85&s=16c50c669d45848a0d9b631456d9265b" alt="ADF Create Resource" width="1179" height="692" data-path="images/playfab/data-analytics/legacy/connectivity/adf-create-resource.png" />
2. Fill out the required fields:
   * For **Name**, choose a name for your data factory. The name must be *globally unique*.
   * For **Subscription**, select your Azure subscription in which you want to create the data factory.
   * For **Resource Group**, use one of the following steps:
     * Select **Use existing**, and select an existing resource group from the list.
     * Select **Create new**, and enter the name of a resource group.
   * You do not need to enable GIT right now, so uncheck the box below. <img src="https://mintcdn.com/microsoft-4404708b/MjJ0-cTsb1bpaMcX/images/playfab/data-analytics/legacy/connectivity/adf-new-data-factory.png?fit=max&auto=format&n=MjJ0-cTsb1bpaMcX&q=85&s=85a775cc184fc46853364491af635308" alt="ADF New Data Factory" width="1184" height="692" data-path="images/playfab/data-analytics/legacy/connectivity/adf-new-data-factory.png" />
3. Select **Create**. After the deployment completes, under **Next steps** select **Go to resource**.
4. To open the Data Factory UI in a separate tab, select **Author & Monitor**.

## Create a pipeline

We are now going to create a new pipeline to get data from Insights. To create a pipeline:

1. On the **Let's get started** page, select **Create pipeline**.
2. In the **Activities** panel under **Azure Data Explorer**, drag and drop an **Azure Data Explorer Command** into the blank workspace. In the bottom panel under **General**, fill out the name and description. <img src="https://mintcdn.com/microsoft-4404708b/MjJ0-cTsb1bpaMcX/images/playfab/data-analytics/legacy/connectivity/adf-explorer-command.png?fit=max&auto=format&n=MjJ0-cTsb1bpaMcX&q=85&s=84f37a750818fe0401711b4e5ed073ea" alt="ADF Explorer Command" width="998" height="944" data-path="images/playfab/data-analytics/legacy/connectivity/adf-explorer-command.png" />
3. Select the **Connection** tab and select **New**. <img src="https://mintcdn.com/microsoft-4404708b/MjJ0-cTsb1bpaMcX/images/playfab/data-analytics/legacy/connectivity/adf-explorer-command-connection.png?fit=max&auto=format&n=MjJ0-cTsb1bpaMcX&q=85&s=bd25602c12c24f97f4f41f18b7753d9e" alt="ADF Explorer Command Connection" width="937" height="224" data-path="images/playfab/data-analytics/legacy/connectivity/adf-explorer-command-connection.png" />
4. In the **New linked service (Azure Data Explorer (Kusto))** window, fill out the fields:
   * For **Name**, use the Title ID.
   * For **Account selection method**, select **Enter manually**.
   * For the **Endpoint**, use the PlayFab API endpoint, which is `https://insights.playfab.com`.
   * For **Service Principal ID**, enter your Client ID from your Azure app.
   * For **Service Principal Key**, enter your Client secret from your Azure app.
   * In the **Database** box, type the Title ID in all upper case. <img src="https://mintcdn.com/microsoft-4404708b/MjJ0-cTsb1bpaMcX/images/playfab/data-analytics/legacy/connectivity/adf-new-linked-service.png?fit=max&auto=format&n=MjJ0-cTsb1bpaMcX&q=85&s=c878805db8ac895e2230d4104e038532" alt="ADF New Linked Service" width="942" height="1273" data-path="images/playfab/data-analytics/legacy/connectivity/adf-new-linked-service.png" /> Select **Create**. Now the pipeline is ready. You can go back to the main pipeline view by clicking the pipeline name.
5. To verify that all of the information is correct, select **Test connection**. If everything is set up correctly, it returns a Connection successful response. <img src="https://mintcdn.com/microsoft-4404708b/MjJ0-cTsb1bpaMcX/images/playfab/data-analytics/legacy/connectivity/adf-test-connection.png?fit=max&auto=format&n=MjJ0-cTsb1bpaMcX&q=85&s=94738d63b129eefff8855a93807e3dea" alt="ADF Test Connection" width="1315" height="241" data-path="images/playfab/data-analytics/legacy/connectivity/adf-test-connection.png" />
6. To validate and debug the pipeline, in the toolbar above the workspace, select **Validate** and then select **Debug**.

## Additional resources

* [Azure Data Factory (ADF) documentation](https://learn.microsoft.com/en-us/azure/data-factory/)
* To learn about other tools to connect to Insights, see  [Connecting external tools to Insights](/services/playfab/data-analytics/legacy/connectivity)


## Related topics

- [Connecting external tools with Insights](/services/playfab/data-analytics/legacy/connectivity/index.md)
- [Connecting Azure Data Explorer to Insights](/services/playfab/data-analytics/legacy/connectivity/connecting-azure-data-explorer-to-insights.md)
- [Create a Microsoft Entra ID app for PlayFab Insights](/services/playfab/data-analytics/legacy/connectivity/creating-AAD-app-for-insights.md)
- [Connecting Python to Insights](/services/playfab/data-analytics/legacy/connectivity/connecting-python-to-insights.md)
- [Connecting Grafana to Insights](/services/playfab/data-analytics/legacy/connectivity/connecting-grafana-to-insights.md)
