> ## 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 to Azure Data Explorer

> Configure a PlayFab Data Connection to Azure Data Explorer for near real-time ingestion of PlayStream and telemetry events into your ADX cluster and database.

# Configuring your data connection to Azure Data Explorer (ADX)

Data Connections now allows you to export to Azure Data Explorer for near-real time ingestion and distribution of your data. After you configure a data connection with your ADX cluster information, PlayFab exports your data into the ADX cluster specified.

<Note>
  Don't have a ADX cluster yet? See [Create a free Azure Data Explorer cluster](https://learn.microsoft.com/en-us/azure/data-explorer/start-for-free-web-ui).
</Note>

## Create an Azure Data Explorer Data Connection in PlayFab

### Step 1: Navigate to the data connections tab

<img src="https://mintcdn.com/microsoft-4404708b/IwSYTY5BEqd_x-HK/images/playfab/data-analytics/export-data/navigate-to-data-connections-tab.png?fit=max&auto=format&n=IwSYTY5BEqd_x-HK&q=85&s=a6a1ae52f205f7b84499d2448ec91e46" alt="Screenshot of PlayFab data connections tab" width="1317" height="586" data-path="images/playfab/data-analytics/export-data/navigate-to-data-connections-tab.png" />

* Sign in to PlayFab and navigate to your title.
* Select the “Data” section in the left-hand menu
* Select the “Data Connections” tab

### Step 2: Configure a new Data Connection

* Select the “New Connection” button.
* Choose the “Destination Type” to be “Azure Data Explorer”
* Populate the fields using the following values

| Value       | Details                                                                                                                                             |
| :---------- | :-------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name        | The friendly name of your data connection. This name allows you to find the data connection later to edit it. Put a descriptive name here.          |
| Cluster URI | The Azure Data Explorer cluster URI. This field information is available in your Azure Data Explorer cluster details.                               |
| Database    | The database name. The PlayFab ingestion service creates a table in this database and ingests the data to that table.                               |
| Table       | The name of the table in the database that PlayFab ingests the data into. If the table doesn't exist, then the ingestion service creates the table. |

<img src="https://mintcdn.com/microsoft-4404708b/IwSYTY5BEqd_x-HK/images/playfab/data-analytics/export-data/Config-ADX-Data-Connections.png?fit=max&auto=format&n=IwSYTY5BEqd_x-HK&q=85&s=efd9308c245e4c9603d6668d9e2df7ed" alt="Screenshot of configuring and ADX data connection" width="650" height="800" data-path="images/playfab/data-analytics/export-data/Config-ADX-Data-Connections.png" />

<Note>
  We recommend using a table name that does not exist. If you use an existing table and the schema is not what PlayFab is expecting, then the schema will be modified.
</Note>

### Step 3: Run commands

* Run the following commands in order as they appear in the onboarding flow individually in your ADX clusters
  <img src="https://mintcdn.com/microsoft-4404708b/IwSYTY5BEqd_x-HK/images/playfab/data-analytics/export-data/grant-aad-access.png?fit=max&auto=format&n=IwSYTY5BEqd_x-HK&q=85&s=b54b5157d6e254d69d4415a8b0941f55" alt="Screenshot of granting access to AAD App" width="1494" height="303" data-path="images/playfab/data-analytics/export-data/grant-aad-access.png" />


## Related topics

- [Connecting Azure Data Explorer to Insights](/services/playfab/data-analytics/legacy/connectivity/connecting-azure-data-explorer-to-insights.md)
- [Connecting external tools with Insights](/services/playfab/data-analytics/legacy/connectivity/index.md)
- [Connecting Azure Data Factory (ADF) to Insights](/services/playfab/data-analytics/legacy/connectivity/connecting-azure-data-factory-to-insights.md)
- [Data Connections - Overview](/services/playfab/data-analytics/export-data/data-connection-overview.md)
- [Event Partitioning overview (Preview)](/services/playfab/data-analytics/export-data/event-partitioning-overview.md)
