You may have already read my post on how to create an SCCM device collection to get Azure AD Joined devices (https://t.co/uJ5eBAtutT).
This post is an update, so you can now forget the first one.
With one of the latest SCCM update (sorry did not notice earlier – but at least the last update 1710) you can update your device collection membership rule to use the Out of the Box (no need anymore to update the hardware inventory class (MOF).
Just use the following statement criteria in your query:
- Attribute class: System Resource
- Attribute: AADTenantID
- Operator: IsNotNull