Forum Discussion
Bob Clements
Jan 12, 2018Copper Contributor
Query with SCCM ComputerGroup
The following documentation provides some example queries using Computer Groups:
https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-computer-groups
I am attempting to run a qu...
Meir_Mendelovich
Microsoft
Jan 14, 2018Hi Bob,
Please provide us some more details so we can help you.
Does the following queries provide any results?
- ComputerGroup | where GroupSource == "SCCM" and Group == "Collection 001" | distinct Computer
- ComputerGroup | where GroupSource == "SCCM" and Group == "Collection 001" and TimeGenerated > ago(2d) | distinct Computer
- ComputerGroup | where GroupSource == "SCCM" and Group == "Collection 002" | distinct Computer
- ComputerGroup | where GroupSource == "SCCM" and Group == "Collection 002" and TimeGenerated > ago(2d) | distinct Computer
BTW: you forgot the "distinct Computer" in the Collection 002 query.
Thanks,
Meir
- Bob ClementsJan 16, 2018Copper Contributor
Hi Meir,
All 4 of the queries that you provided work as expected. I receive the list of computers that correspond to the different groups.
How would I take these results and run them against a table search? For example, one of the following conditions:
WaaSDeploymentStatus | where Computer in (WaaSGroup) | where DeploymentStatus=="Failed" UADriver | where Computer in (DriverGroup) | where Issue == "Driver will not migrate to new OS"