← Free Scripts | Automation |Azure

Query-Based Collections for Intune: Groups That Fill Themselves from Installed Software

Rebuild SCCM-style query-based collections in Intune with a Logic App and Azure Functions that keep Entra ID groups in sync with what devices have installed.

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.

Read the Blog

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.