In this post I will show you how to create Dynamic device groups in Azure Active Directory. Dynamic device groups are often used in Intune configurations.
First, we need to add a new group via Azure AD:

On the “new group” page:
- enter a group name
- change membership type to: Dynamic Device (see dynamic user post for dynamic user groups)
- click on add dynamic query

You can use the rule builder or rule syntax text box to create or edit a dynamic membership rule.
Rule builder:
- And/or: only use this option if you want to configure this rule based on more then just OS type or for example multiple OS types to one group. Make sure you use and / or correctly.
- Property: DeviceOSType
- Operator: Contains
- Value: Windows
Rule syntax:
- (device.deviceOSType -contains “Windows”)
After adding the query click save and create. It can take a few minutes, depending on the query, for the group to show any members.

