> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/data-database/azure-data-explorer.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Azure Data Explorer

Azure Data Explorer is a fast analytics database for large datasets. Run queries and management commands, and create and manage tables.

![Azure Data Explorer logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-f54008002f231fec2243b814df6b3fd8488330bd%2Fonedrive.png?alt=media)

|                    |                                                                                                |
| ------------------ | ---------------------------------------------------------------------------------------------- |
| **Category**       | [Data and databases](https://docs.fastn.ai/connectors/catalog/data-database.md)                |
| **Website**        | [kusto.windows.net](https://kusto.windows.net)                                                 |
| **Authentication** | OAuth 2.0                                                                                      |
| **Slug**           | `azureDataExplorer`                                                                            |
| **On fastn.ai**    | [Embed Azure Data Explorer in your product](https://fastn.ai/integrations/azure-data-explorer) |

## Setup

Your customers sign in to Azure Data Explorer through Fastn's own OAuth app, so nothing needs setting up first. To show your own app on the consent screen instead, add your OAuth app on the connector's **Auth** tab under **Manage providers**.

## Connect in Fastn

Your customers connect Azure Data Explorer from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **Azure Data Explorer**.
2. Select **Connect** on the Azure Data Explorer card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Keep the **Default** auth provider, or choose your own OAuth app if you added one. Pick the **Scopes** you need, select **Authorize**, then sign in to Azure Data Explorer and approve access in the window that opens.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-0e2bbdd7109cec207402cf6883484b8525b7fbf5%2Fconnect-oauth.png?alt=media" alt="The Connect Salesforce dialog for OAuth 2.0 with the Default auth provider, an optional account name, the Scopes selector and an Authorize button"><figcaption><p>A connect form for OAuth 2.0. Salesforce is shown here.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use Azure Data Explorer's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Cancel Query</td><td><code>cancelQuery</code></td><td>Requests cancellation of a currently running query, identified by the client request id returned from Show Running Queries.</td></tr><tr><td>Clear Table Data</td><td><code>clearTableData</code></td><td>Removes all rows from a table while keeping its schema intact. Requires Database Admin or Table Admin permission.</td></tr><tr><td>Create Merge Table</td><td><code>createMergeTable</code></td><td>Creates a table, or merges the supplied columns into an existing table of the same name rather than failing. Requires Database User permission.</td></tr><tr><td>Create Or Alter Function</td><td><code>createOrAlterFunction</code></td><td>Creates a stored function, or replaces the definition of an existing function of the same name, in the database metadata.</td></tr><tr><td>Create Table</td><td><code>createTable</code></td><td>Creates a new empty table in the database. If a table of the same name already exists the command succeeds without altering it. Requires Database User permission.</td></tr><tr><td>Drop Function</td><td><code>dropFunction</code></td><td>Removes a stored function from the database. Requires Database Admin or Function Admin permission.</td></tr><tr><td>Drop Materialized View</td><td><code>dropMaterializedView</code></td><td>Removes a materialized view and its materialized data from the database. Requires Database Admin or Materialized View Admin permission.</td></tr><tr><td>Drop Table</td><td><code>dropTable</code></td><td>Permanently removes a table and all of its data from the database. Requires Database Admin or Table Admin permission and cannot be undone once the retention period elapses.</td></tr><tr><td>Ingest Inline Into Table</td><td><code>ingestInlineIntoTable</code></td><td>Ingests a small batch of comma-separated rows supplied inline into an existing table. Intended for testing and small volumes rather than production data loading.</td></tr><tr><td>Rename Table</td><td><code>renameTable</code></td><td>Renames an existing table within the database. Requires Database Admin or Table Admin permission.</td></tr></tbody></table>

<details>

<summary>View 45 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Run Management Command</td><td><code>runManagementCommand</code></td><td>Runs any Kusto management command against a database. Use this escape hatch for control commands that do not have a dedicated action; the command text must begin with a dot.</td></tr><tr><td>Run Query</td><td><code>runQuery</code></td><td>Runs a KQL query against a database on an Azure Data Explorer cluster and returns the result tables. Use the cluster's engine host, for example mycluster.westus.kusto.windows.net.</td></tr><tr><td>Run Query V2</td><td><code>runQueryV2</code></td><td>Runs a KQL query using the v2 query endpoint, which returns a streaming frame-based response with richer result metadata than v1.</td></tr><tr><td>Set Or Append Table From Query</td><td><code>setOrAppendTableFromQuery</code></td><td>Appends the results of a KQL query into a table, creating the table from the query's result schema if it does not already exist.</td></tr><tr><td>Set Or Replace Table From Query</td><td><code>setOrReplaceTableFromQuery</code></td><td>Replaces the entire contents of a table with the results of a KQL query, creating the table if it does not already exist.</td></tr><tr><td>Show Cluster</td><td><code>showCluster</code></td><td>Returns the list of nodes composing the Azure Data Explorer cluster, including each node's machine name, state and role.</td></tr><tr><td>Show Cluster Principal Roles</td><td><code>showClusterPrincipalRoles</code></td><td>Returns the cluster-level security roles held by the connected identity, such as AllDatabasesAdmin or AllDatabasesViewer.</td></tr><tr><td>Show Cluster Principals</td><td><code>showClusterPrincipals</code></td><td>Returns every principal assigned a cluster-level security role, together with the role granted and the principal's display name and type.</td></tr><tr><td>Show Commands</td><td><code>showCommands</code></td><td>Returns the management commands recently executed on the cluster, including their text, state, duration and resource utilisation.</td></tr><tr><td>Show Commands And Queries</td><td><code>showCommandsAndQueries</code></td><td>Returns a combined view of the management commands and queries recently executed on the cluster, useful for auditing and workload analysis.</td></tr><tr><td>Show Continuous Exports</td><td><code>showContinuousExports</code></td><td>Returns the continuous export jobs defined in the database, which periodically export query results to an external table.</td></tr><tr><td>Show Database</td><td><code>showDatabase</code></td><td>Returns the properties of a single database, including its name, persistent storage location, version and access mode.</td></tr><tr><td>Show Database Caching Policy</td><td><code>showDatabaseCachingPolicy</code></td><td>Returns the caching policy of a database, which controls how much recent data is kept in the cluster's hot cache.</td></tr><tr><td>Show Database Extents</td><td><code>showDatabaseExtents</code></td><td>Returns the extents (data shards) across all tables in the database, with each extent's id, row count and size.</td></tr><tr><td>Show Database Principal Roles</td><td><code>showDatabasePrincipalRoles</code></td><td>Returns the security roles the connected identity holds on the specified database.</td></tr><tr><td>Show Database Principals</td><td><code>showDatabasePrincipals</code></td><td>Returns every principal assigned a security role on the database, such as admins, users, viewers and ingestors.</td></tr><tr><td>Show Database Retention Policy</td><td><code>showDatabaseRetentionPolicy</code></td><td>Returns the retention policy of a database, which controls how long ingested data is kept before it is automatically removed.</td></tr><tr><td>Show Database Schema</td><td><code>showDatabaseSchema</code></td><td>Returns a flat list of the database structure, with one row per column across all tables in the database.</td></tr><tr><td>Show Database Schema As JSON</td><td><code>showDatabaseSchemaAsJson</code></td><td>Returns the complete structure of a database as a single JSON document describing every table, column and data type.</td></tr><tr><td>Show Database Schema Violations</td><td><code>showDatabaseSchemaViolations</code></td><td>Returns any schema validation issues detected within the database, such as update policies or functions referencing missing entities.</td></tr><tr><td>Show Databases</td><td><code>showDatabases</code></td><td>Returns one record per database on the cluster that the connected identity has access to, including database name, persistent storage and pretty name.</td></tr><tr><td>Show Databases Entities</td><td><code>showDatabasesEntities</code></td><td>Returns the entities contained in the cluster's databases, such as tables, materialized views and functions, in a single flat list.</td></tr><tr><td>Show External Table Schema</td><td><code>showExternalTableSchema</code></td><td>Returns the schema of a single external table as a JSON document describing its columns and data types.</td></tr><tr><td>Show External Tables</td><td><code>showExternalTables</code></td><td>Returns all external tables defined in the database, which expose data held outside the cluster such as in blob storage or a data lake.</td></tr><tr><td>Show Function</td><td><code>showFunction</code></td><td>Returns the definition of a single stored function, including its parameter list and body.</td></tr><tr><td>Show Functions</td><td><code>showFunctions</code></td><td>Returns all stored functions in the database, with their name, parameters, body, folder and documentation string.</td></tr><tr><td>Show Ingestion Failures</td><td><code>showIngestionFailures</code></td><td>Returns recent ingestion failures for the database, including the failing operation, error reason and originating data source.</td></tr><tr><td>Show Journal</td><td><code>showJournal</code></td><td>Returns the metadata operation journal for the database in context, recording schema and policy changes and the principal that made each one.</td></tr><tr><td>Show Materialized View</td><td><code>showMaterializedView</code></td><td>Returns the definition and current state of a single materialized view, including its source table and last materialization time.</td></tr><tr><td>Show Materialized Views</td><td><code>showMaterializedViews</code></td><td>Returns all materialized views in the database, including their source table, aggregation query and current health state.</td></tr><tr><td>Show Operations</td><td><code>showOperations</code></td><td>Returns the set of admin operations recorded on the cluster, including each operation's id, state, start time and duration.</td></tr><tr><td>Show Queries</td><td><code>showQueries</code></td><td>Returns the recently completed queries the connected identity is permitted to see, with their text, duration, state and resource consumption.</td></tr><tr><td>Show Running Queries</td><td><code>showRunningQueries</code></td><td>Returns the queries currently executing on the cluster, including the client request id needed to cancel a running query.</td></tr><tr><td>Show Table</td><td><code>showTable</code></td><td>Returns the definition of a single table, including its column names and data types.</td></tr><tr><td>Show Table Caching Policy</td><td><code>showTableCachingPolicy</code></td><td>Returns the caching policy applied to a single table, controlling how much of its data is held in hot cache.</td></tr><tr><td>Show Table Details</td><td><code>showTableDetails</code></td><td>Returns detailed statistics for a single table, including row count, extent count, original and compressed data size and hot cache size.</td></tr><tr><td>Show Table Extents</td><td><code>showTableExtents</code></td><td>Returns the extents (data shards) belonging to a table, with each extent's id, row count, size and creation time.</td></tr><tr><td>Show Table Ingestion Mappings</td><td><code>showTableIngestionMappings</code></td><td>Returns the ingestion mappings defined on a table, which describe how incoming source fields map onto the table's columns.</td></tr><tr><td>Show Table Principals</td><td><code>showTablePrincipals</code></td><td>Returns every principal assigned a security role on the specified table, such as admins and ingestors.</td></tr><tr><td>Show Table Retention Policy</td><td><code>showTableRetentionPolicy</code></td><td>Returns the retention policy applied to a single table, including its soft-delete period and recoverability setting.</td></tr><tr><td>Show Table Schema As JSON</td><td><code>showTableSchemaAsJson</code></td><td>Returns a table's schema as a JSON document, the same shape returned when the table is created.</td></tr><tr><td>Show Table Update Policy</td><td><code>showTableUpdatePolicy</code></td><td>Returns the update policy of a table, which defines transformations automatically applied when data is ingested into a source table.</td></tr><tr><td>Show Tables</td><td><code>showTables</code></td><td>Returns every table in the database, with its name, owning database, folder and documentation string.</td></tr><tr><td>Show Tables Details</td><td><code>showTablesDetails</code></td><td>Returns detailed statistics for every table in the database, including row count, extent count, total data size and hot cache size.</td></tr><tr><td>Show Version</td><td><code>showVersion</code></td><td>Returns the build and service version information for an Azure Data Explorer cluster. This is a cluster-scoped management command and needs no database context.</td></tr></tbody></table>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/data-database/azure-data-explorer.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
