Find Devices With Multiple Physical Disks
Query
// This query identifies devices that have more than one physical disk.
DiskDrive
| summarize DiskCount=count() by Device
| where DiskCount > 1Explanation
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
summarizefunction, which creates a new column calledDiskCountthat 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
whereclause, which specifies that only devices with aDiskCountgreater 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.
Details

Ugur Koc
Released: February 28, 2025
Tables
Keywords
Operators