Azure Data Explorer Cluster

Luis Loaysa Admin 0 Reputation points
2025-06-20T07:44:25.0933333+00:00

Hi there,

I am having some issues with KQL in Azure Data Explorer Cluster, I have made sure that I have admin permissions to the Cluster and the database itself but when running KQL queries they just get stuck in Preparing to run, no matter how big or small.

This wasn't the case before, I am a little lost with how to troubleshoot this. The automated troubleshooting is not helping much.

I hope someone can help with this.

Regards,

Luis

Azure Data Explorer
Azure Data Explorer
An Azure data analytics service for real-time analysis on large volumes of data streaming from sources including applications, websites, and internet of things devices.
576 questions
{count} votes

1 answer

Sort by: Most helpful
  1. J N S S Kasyap 3,625 Reputation points Microsoft External Staff Moderator
    2025-06-20T08:44:12.5866667+00:00

    Hi @Luis Loaysa Admin
    You're having a frustrating time with your KQL queries getting stuck in the "Preparing to run" state in Azure Data Explorer  here are some targeted troubleshooting tips: 

    • In the Azure portal, navigate to your ADX cluster > Monitoring > Metrics or Cluster Health, and look for signs of degraded engine nodes or backpressure. 
    • If the cluster is experiencing high ingestion load or query concurrency, new queries may not be dispatched. Check CPU/memory and concurrent query limits. 
    • In a working query window, run .show operations to see if your queries are stuck in a pre-execution state. This can confirm whether they reached the engine at all. 
    • If you’re using tools like the web UI or Azure portal, try switching to Kusto Explorer or Kusto CLI to rule out frontend browser/session issues. 

    If these steps don’t resolve the issue, it might be helpful to gather additional information. Here are some follow-up questions you could consider:

    • Can you confirm if this issue occurs with all queries or just specific ones?
    • Have there been any changes to the cluster configuration or workload patterns recently?
    • Are there any error messages in the query history?
    • How long have the queries been stuck in the "Preparing to run" state?
    • Are you able to run any simpler queries successfully, or are they all impacted?

    I hope this helps you get back on track! Let me know if you have any other questions or need further assistance.


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.