Query data in the Data Product
This article outlines how to access and query your data.
The Azure Operator Insights Data Product stores enriched and processed data, which is available for querying with the Consumption URL.
A deployed Data Product, see Create an Azure Operator Insights Data Product.
Get access to the ADX cluster
Access to the data is controlled by role-based access control (RBAC).
- In the Azure portal, select the Data Product resource and open the Permissions pane. You must have the
Readerrole. If you do not, contact an owner of the resource to grant you
- In the Overview pane, copy the Consumption URL.
- Open the Azure Data Explorer web UI and select Add > Connection.
- Paste your Consumption URL in the connection box and select Add.
For more information, see Add a cluster connection in the Azure Data Explorer web UI.
Perform a query
Now that you have access to your data, confirm you can run a query.
- In the Azure Data Explorer web UI, expand the drop-down for the Data Product Consumption URL for which you added a connection.
- Double-click on the database you want to run your queries against. This database is set as the context in the banner above the query editor.
- In the query editor, run one of the following simple queries to check access to the data.
// Lists all available tables in the database. .show tables // Returns the schema of the named table. Replace $TableName with the name of table in the database. $TableName | getschema // Take the first entry of the table. Replace $TableName with the name of table in the database. $TableName | take 1
With access to the data, you can run queries to gain insights or you can visualize and analyze your data. These queries are written in Kusto Query Language (KQL).
Aggregated data in the Data Product is stored in materialized views. These views can be queried like tables, or by using the materialized_view() function. Queries against materialized views are highly performant when using the