Hello Javier Huamani,
You're encountering a known compatibility issue between Grafana v11.x and the Azure Data Explorer (ADX) plugin—specifically when defining Kusto Query variables on dashboards.
Since upgrading to Grafana v11 (and now 11.6.3), attempts to create a variable via KQL result in this error:
TypeError: Cannot read properties of undefined (reading 'map')
This stems from either:
- Undefined or malformed query results being passed into the variable control widget, or
- A mismatch between the ADX plugin version and Grafana v11.x APIs
1.So, validate the KQL query
Please run your same query directly in the ADX Web UI and confirm it returns a well-formed table. If the result set is ever empty or missing columns, the plugin may break. Add a fallback like | take 1
or include essential columns explicitly.
2. Upgrade to the latest ADX plugin (v6.x+)
- Azure Data Explorer Datasource plugin v6.0.1 (May 2025) includes bug fixes and Grafana v11 compatibility improvements Microsoft LearnGitHub.
- In Azure Managed Grafana, ensure your workspace is using the newest plugin and reinstall it if needed.
3. Reinstall the plugin
- Even if you're on the latest version, reinstalling can clear corruption or caching artifacts—per recommendations
4. Disable dashboard-level transformations
- If transformations are applied to query results before variable processing, temporarily disable them to isolate the issue
5. Inspect browser developer console
- More detailed errors often appear here if the plugin tries accessing undefined properties
And Ensure Grafana v11.6.3 is paired with ADX plugin v6 +or newer.
- Reinstall the ADX plugin:
- In Azure portal, go to Managed Grafana workspace → Plugins → Azure Data Explorer → Uninstall and then reinstall.
- Reboot your workspace if necessary (to refresh plugin metadata).
- Try creating the variable again using a validated query (e.g. including
| take 1
).
Overall, the best fix is: upgrade to ADX plugin v6.+, reinstall, and validate your query.
If that doesn’t work, consider a panel-based variable or downgrade Grafana temporarily while awaiting plugin maintenance.
If the comment helpful, please click Upvote it.
Thanks