By Robert Smit | Azure MVP | Cloud Architect
Introduction
Managing local administrator passwords in Azure Virtual Desktop (AVD) environments has always been a challenge.
Static admin passwords create a massive security risk especially in cloud-native deployments using Entra ID joined virtual machines.
That’s where Windows Local Administrator Password Solution (LAPS) comes in.
In this guide, you’ll learn how to configure and manage Windows LAPS for Azure Virtual Desktop session hosts joined to Microsoft Entra ID, with full Intune integration and Microsoft Graph automation.
Why Use LAPS in Azure Virtual Desktop?
Deploying Windows LAPS in your Azure Virtual Desktop (AVD) environment provides several key benefits:
- Zero-trust compliance: Unique local admin credentials per VM, rotated automatically.
- Reduced lateral movement: Even if one host is compromised, other hosts remain protected.
- Automation-friendly: Password rotation and backup to Entra ID are policy-driven.
- Native integration: Works with Intune and Microsoft Graph without Group Policy or domain controllers.
Prerequisites & Supported Scenarios
- Azure / Entra ID–joined or Hybrid-joined devices.
- Windows 10, Windows 11, or Server 2022 with LAPS support (April 2023+ builds).
- Microsoft Intune (for policy management).
- Graph API access (for password retrieval automation).
Note: Azure AD–registered only devices are not supported.
Step-by-Step: Enable Windows LAPS for Entra ID
- Enable LAPS in Entra ID:
- Go to Entra ID → Devices → Device Settings.
- Turn on Enable Local Administrator Password Solution (LAPS).


Applying LAPS to Azure Virtual Desktop Session Hosts
When creating new AVD session hosts, select “Join to Entra ID” as the domain join type.
Ensure Intune enrollment is automatic, so the LAPS policy applies instantly.
In my case I’ll add a local GPO , but this can be done with intune also


Retrieving the LAPS Password (Graph & PowerShell)
To retrieve the password for troubleshooting or automation:
Get-LapsAADPassword -DeviceName "HP-entra-01"Required permission: deviceLocalCredential.Read.All (Cloud Device Administrator or custom role). and make sure you are connected with the proper account to msgraph
Or just go to the intune portal and see the password.
Best Practices for LAPS in AVD
- Rotate passwords at least every 7–14 days.
- Use role-based access and Conditional Access for LAPS retrieval.
- Monitor retrieval logs and apply Just-in-Time access (PIM).
- Ensure Graph endpoints are reachable through Azure Firewall or proxy rules.
- Keep Windows and Intune policies up to date.
Troubleshooting Tips
- No password in Entra: Check Intune sync and network connectivity.
- Get-LapsAADPassword fails: Verify permissions and Entra role assignments.
- Password not rotating: Ensure minimum rotation period and LAPS policy compliance.
- Event ID missing: Manually trigger policy and check Windows Update build level.
Conclusion
Implementing Windows LAPS in Azure Virtual Desktop (AVD) environments with Entra ID joined devices significantly improves security posture and operational automation.
It’s a vital step toward a zero-trust, cloud-native management model.
By combining LAPS, Intune, and Microsoft Graph, organizations can securely manage admin access to session hosts without manual intervention or legacy infrastructure.
For more Azure and AVD guides, visit:
Robert Smit’s Azure Blog.
Author: Robert Smit [MVP]
Robert is also capable of transferring his knowledge to others which is a rare feature in the field of IT. He makes a point of not only solving issues but also of giving on the job training of his colleagues.
A customer says ” Robert has been a big influence on our technical staff and I have to come to know him as a brilliant specialist concerning Microsoft Products. He was Capable with his in-depth knowledge of Microsoft products to troubleshoot problems and develop our infrastructure to a higher level. I would certainly hire him again in the future. ”
Details of the Recommendation: “I have been coordinating with Robert implementing a very complex system. Although he was primarily a Microsoft infrastructure specialist; he was able to understand and debug .Net based complext Windows applications and websites. His input to improve performance of applications proved very helpful for the success of our project
View all posts by Robert Smit [MVP]
