← Free Scripts | Automation |Azure

Query-Based Device Collections

Logic App and Azure Functions that populate Entra ID groups from installed software and other device attributes, like SCCM query-based collections for Intune.

SCCM admins miss query-based collections when they move to Intune: groups that populate themselves from installed software or other device attributes.

This solution rebuilds that pattern with a Logic App and Azure Functions that evaluate device attributes and keep Entra ID groups populated to match. Use it to target apps, policies, or reporting at devices that have (or lack) a specific piece of software, without maintaining membership by hand.

Get it from the PowerStacks intune-query-based-collections repository:

GitHub
Entra ID groupsAzure FunctionsDynamic membership

Want simplified Intune reporting?

PowerStacks BI for Intune and App Store for Intune do the heavy lifting, all inside your own tenant, with nothing leaving it.