Azure AD Dynamic Device Group Using Display Name Property | Azure Virtual Desktop | VM Name

Let’s learn how to create Azure AD Dynamic Device Group Using Display Name Property. I have seen displayname property is useful to create Azure AD dynamic device groups for Azure Virtual Desktop VMs.

AAD dynamic Device groups are similar to dynamic device collections in SCCM. Azure AD (AAD) dynamic device group is a set of devices grouped based on a common attribute value.

I agree that query using display name is an old way of grouping devices or virtual machines into a dynamic group.

You know there are better options (not optimal) to tag physical devices in the Autopilot world using devicePhysicalIds.

Patch My PC

Create Azure AD Dynamic Device Group

Let’s create Azure AD Dynamic Device Group for Azure Virtual Desktop (a.k.a WVD). This dynamic Azure AD device group is based on hostnames.

Azure AD Dynamic Device Group Using Display Name Property | Azure Virtual Desktop | VM Name
Azure AD Dynamic Device Group Using Display Name Property | Azure Virtual Desktop | VM Name

Select SecurityGroup Type from the drop-down option.

Enter Group Name “Namaste Techies WVD Device Groups” (any name is fine).

Enter Group Description “Namaste Techies WVD Device Groups” (any description is fine).

Adaptiva

Select Dynamic Device as Membership type.

Click on Add Dynamic Query under Dynamic Device Members.

Azure AD Dynamic Device Group Using Display Name Property | Azure Virtual Desktop | VM Name
Azure AD Dynamic Device Group Using Display Name Property | Azure Virtual Desktop | VM Name

Hover over the properties column so that you get an option to select Azure AD dynamic device groups based on naming standards AVD (a.k.a WVD) VMs.

Azure AD Dynamic Device Group Using Display Name Property | Azure Virtual Desktop | VM Name 1

On the Dynamic Membership Rules blade, select DisplayName property column drop-down options. You have to select the displayName property from the Property drop-down as shown in the following screenshot.

NOTE! – Don’t rely only on one condition when you create Azure AD Dynamic device groups in WVD to be on the safer side. However, it would help if you were mindful of not making complex dynamic queries, and this could impact the automatic update of the Azure AD dynamic device group.

Azure AD Dynamic Device Group Using Display Name Property | Azure Virtual Desktop | VM Name
Azure AD Dynamic Device Group Using Display Name Property | Azure Virtual Desktop | VM Name

From the operator column, you can select the option name “StartWith” to select the hostname of Azure Virtual Desktop (a.k.a AVD) session hosts.

Azure AD Dynamic Device Group Using Display Name Property | Azure Virtual Desktop | VM Name 2

The hostname of my AVD VM starts with “namaste”.

In the value column, you can enter the hostname “Namaste” as shown in the below screenshot. This Azure AD dynamic query

Azure AD Dynamic Device Group Using Display Name Property | Azure Virtual Desktop | VM Name 3
Azure AD Dynamic Device Group Using Display Name Property | Azure Virtual Desktop | VM Name 10
  • Click on SAVE and CREATE button to complete the process of building Azure AD dynamic device group creation.

Validate AAD Dynamic Device Query?

You can validate the Azure AD dynamic device query using the method explained in the following blog post. Validate Azure AD Dynamic Group Rules | Intune.

Azure AD Dynamic Device Group Using Display Name Property | Azure Virtual Desktop | VM Name
Azure AD Dynamic Device Group Using Display Name Property | Azure Virtual Desktop | VM Name

AAD Dynamic Device Group Query using Display Name

The following AAD Dynamic Device Group Query is built using the Display Name property column. The rule syntax is given below:

(device.displayName -startsWith "namaste")
Azure AD Dynamic Device Group Using Display Name Property | Azure Virtual Desktop | VM Name 4
Azure AD Dynamic Device Group Using Display Name Property | Azure Virtual Desktop | VM Name

Result

You can check the members of the dynamic device group from the Members tab in the Azure AD Device group.

Azure AD Dynamic Device Group Using Display Name Property | Azure Virtual Desktop | VM Name
Azure AD Dynamic Device Group Using Display Name Property | Azure Virtual Desktop | VM Name

Resources

Author

Anoop is Microsoft MVP! He is a Solution Architect in enterprise client management with more than 20 years of experience (calculation done in 2021) in IT. He is Blogger, Speaker, and Local User Group HTMD Community leader. His main focus is on Device Management technologies like SCCM 2012, Current Branch, and Intune. He writes about ConfigMgr, Windows 11, Windows 10, Azure AD, Microsoft Intune, Windows 365, AVD, etc……………

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.