Skip to main content

Connect to Azure Data Explorer (ADX)

What you'll build

A connection to your Azure Data Explorer (Kusto) clusters so your agent can query logs and telemetry. The wizard tests connectivity per-cluster before saving. Learn more → Kusto Tools.

Prerequisites​

  • An Azure Data Explorer cluster with at least one database
  • Admin access to grant database permissions (or someone who can)
  • An agent created in the SRE Agent portal with a managed identity

Steps​

Step 1: Get cluster details​

Find your cluster URL in the Azure portal or from your team:

https://{cluster-name}.{region}.kusto.windows.net

Note the database name you want to query — you'll need both the cluster URL and database name in the format https://{cluster-url}/{database-name}.

Step 2: Grant agent permissions​

Your agent's managed identity needs database access. Run this KQL command in the Azure Data Explorer web UI or Kusto Explorer:

.add database {database-name} viewers ('aadapp={agent-managed-identity-id}')

Replace {agent-managed-identity-id} with your agent's managed identity client ID (found in the Azure portal under your agent resource → Identity).

Step 3: Open the connector wizard​

  1. In the SRE Agent portal, go to Builder > Connectors in the left sidebar
  2. Click Add connector
  3. Select the Azure Data Explorer card from the Telemetry category
  4. Click Next

Step 4: Set up the connector​

In the Set up connector step:

  1. Enter a Name for the connector (e.g., production-logs)
  2. Select a Managed identity — choose the identity that has permissions on your ADX clusters
  3. Click Next

Step 5: Configure your clusters​

In the Add clusters step, the Cluster Group heading describes how clusters within a group share the same managed identity:

Add clusters step showing cluster groups with group name, managed identity, and cluster URL fields
  1. To add a cluster group, click + Create new group at the top of the step — the new group appears at the top of the list
  2. Enter a Group name (default: ClusterGroup) — this labels the cluster group
  3. Under Clusters, enter your cluster URL in the format https://{cluster-url}/{database-name}
    • A new row appears automatically when you fill the current one — add as many cluster URIs as needed
  4. Select the Managed identity for this group (default: (inherit) uses the connector-level identity)
  5. Repeat steps 1–4 to add additional cluster groups with different identities
  6. Click Next

Step 6: Test connection and save​

In the Review + test connection step:

  1. Review your connector configuration — the connector name, identity, and cluster groups are displayed
  2. Each cluster group shows a Not tested badge
  3. Click Test connection — the button changes to Testing connection... while each cluster is probed individually
  4. Review the per-cluster results:
    • ✅ Green checkmark — cluster is reachable
    • ❌ Red X — cluster failed with an error message displayed inline
  5. Once testing completes, the button changes to Add connector — click it to save

If any cluster fails, check the Troubleshooting section. Fix the failing clusters and re-run Test connection before saving — the connector works best when all clusters pass connectivity checks.

Checkpoint: The connector appears in your Connectors list.

Editing an existing connector

When you edit an existing Azure Data Explorer connector, the wizard opens directly at the Add clusters step — you can update clusters and re-test without reconfiguring the connector name or identity.

Step 7: Verify access​

Ask your agent:

List the tables in the production-logs database

The agent should return a list of tables from your connected cluster.

What you learned​

  • How to find your ADX cluster URL and grant the agent database access
  • How to configure cluster groups with multiple cluster URIs
  • How to test connectivity per-cluster before saving
  • How to verify the connection by querying tables through chat

Troubleshooting​

IssueSolution
Red X on a specific clusterVerify the cluster URL format (https://{cluster-url}/{database-name}), ensure managed identity has Viewer role on that cluster, check firewall rules
All clusters failConfirm the managed identity has permissions — run .show database {db} principals in ADX to verify
"Not tested" badge doesn't clearClick Test connection to run connectivity checks — the badge clears after testing completes
Identity dropdown emptyYour agent needs a managed identity configured — go to Azure portal → your agent resource → Identity

Next steps​

ResourceWhat you'll learn
Create Kusto ToolBuild reusable parameterized queries
Kusto ToolsUnderstand deterministic vs. flexible query approaches
Diagnose with 3P ObservabilityUse Kusto data for incident diagnosis
Was this page helpful?