Query Details
// This query identifies devices that have more than one physical disk. DiskDrive | summarize DiskCount=count() by Device | where DiskCount > 1
This query is designed to find devices that have multiple physical disks. Here's a simple breakdown of what it does:
Data Source: It starts with a table or dataset called DiskDrive, which contains information about physical disks on various devices.
Summarize: It groups the data by each device and counts the number of physical disks associated with each device. This is done using the summarize function, which creates a new column called DiskCount that holds the count of disks for each device.
Filter: It then filters the results to only include devices that have more than one disk. This is achieved with the where clause, which specifies that only devices with a DiskCount greater than 1 should be included in the final output.
In summary, the query lists all devices that have more than one physical disk attached to them.

Ugur Koc
Released: February 28, 2025
Tables
Keywords
Operators