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.