Skip to content
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

Written By Anoop C Nair
Last Updated August 30, 2024
Posted In Azure AD
SHARE

Let’s learn how to create an Azure AD Dynamic Device Group Using the Display Name Property. I have seen that the display name property is useful for creating 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 (not optimal) options for tagging 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 host names.

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 Security -Group Type from the drop-down menu. Enter the Group Name “Namaste Techies WVD Device Groups” (any name is fine).

  • Enter Group Description “Namaste Techies WVD Device Groups” (any description is fine).
  • Select Dynamic Device as the 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.

On the Dynamic Membership Rules blade, select the DisplayName property column drop-down options. As shown in the following screenshot, you must select the displayName property from the Property drop-down.

NOTE: To be safer, don’t rely only on one condition when you create Azure AD Dynamic device groups in WVD. However, it would help if you were mindful of not making complex dynamic queries, which 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

You can select the option ” Starts With ” from the operator column to select the hostname of Azure Virtual Desktop (a.k.a AVD) session hosts.

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

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

  • Click on the SAVE and CREATE buttons 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 uses 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

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

We are on WhatsApp. To get the latest step-by-step guides and news updates, Join our Channel. Click here –HTMD WhatsApp.

Author

Anoop C Nair has been Microsoft MVP for 10 consecutive years from 2015 onwards. He is a Workplace Solution Architect with more than 22+ years of experience in Workplace technologies. He is a Blogger, Speaker, and Local User Group Community leader. His primary focus is on Device Management technologies like SCCM and Intune. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security, Career, etc.

Written by

Anoop C Nair is Workplace Technology solution architect with 25+ years of experience in global enterprise organizations such as JP Morgan, Capgemini, etc. Microsoft Certified Trainer. Microsoft MVP from 2015 onwards for consecutive 11+ years! He also conducts Intune and modern workplace tech training for enterprise organizations. He is Blogger, Speaker, and Founder of HTMD Community and HTMD Conference. His main focus is on Device Management technologies like Intune, Windows, Cloud PC. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security.

Discussion

Join the discussion

Your email address will not be published. Required fields are marked *

Related guides

Azure AD

Microsoft Azure Removes Default Internet Access for New Virtual Networks

Key Takeaways Here, we are discussing Microsoft Azure Removes Default Internet Access for New Virtual Networks. According to the latest news coming that After March 31, 2026, any newly created Virtual Network (VNet) will no longer have automatic access to the internet. This update was highlighted by Christiaan Brinkhoff on his social media platform. Microsoft […]

AC Anoop C Nair 4 min read
Azure AD

PowerShell Script to Track Upcoming Microsoft Entra App Secret Expirations

PowerShell Script to Track Upcoming Microsoft Entra App Secret Expirations! In this article, I’ll walk you through a powerful automation designed to enhance proactive security and lifecycle management for Microsoft Entra applications. You’ll learn how to monitor Entra app registrations and automate the detection of upcoming secret key expirations, ensuring your identity infrastructure stays secure […]

SN Sujin Nelladath 7 min read
Azure AD

How New TURN Relay IP Range Enhances RDP Shortpath for AVD and Windows 365

Let’s discuss How New TURN Relay IP Range Enhances RDP Shortpath for AVD and Windows 365. Microsoft is going to launch a new improvement on Windows 365 and Azure Virtual Desktop called TURN relay. This is a dedicated IP range across the Microsoft Azure public cloud. TURN Relays new range 51.5.0.0/16 enhances RDP Shortpath connectivity […]

AC Anoop C Nair 4 min read