EPM Just-In-Time (JIT) Privileges Removed Upon Sign-In on Entra ID-Joined Azure Virtual Desktops (AVD)
Symptom
Users elevated via EPM Just-In-Time (JIT) access lose their local administrator privileges upon subsequent sign-ins on Microsoft Entra ID–joined Azure Virtual Desktops (AVDs) or Azure Virtual Machines.
The EPM Agent successfully elevates the user initially, but the manually added local administrator entry is stripped out when the user disconnects and signs back in (with or without a system reboot).
Environment
EPM Windows Agent;EPM Agent
-
Idira Endpoint Privilege Manager (EPM)
-
Microsoft Entra ID–joined Azure Virtual Machines / Azure Virtual Desktops (AVD)
Cause
EPM JIT elevation relies on temporarily adding the targeted user to the local Administrators group on the endpoint. However, Microsoft Entra ID does not support manually elevating a user by modifying local administrator group membership (e.g., via standard local group additions or commands like net localgroup administrators /add).
By design, Azure automatically removes these manually added local admin entries upon subsequent user sign-ins.
Note: This behavior is expected, has been confirmed by Microsoft, and occurs completely independently of the EPM Agent.
Resolution
Because local administrator group modifications conflict with Azure's native design, using EPM JIT policies to manage local admin membership for this specific AVD use case is not supported.
To resolve this and grant consistent administrator access, you must rely on Azure's native Role-Based Access Control (RBAC):
-
Cease JIT Targeting for AVDs Ensure Microsoft Entra ID–joined AVDs are not targeted by EPM JIT elevation policies that rely on modifying local group membership.
-
Assign Native Azure Roles To grant persistent administrator access, assign the Virtual Machine Administrator Login role to the authorized users directly within Azure. This role ensures the user is automatically authorized as a local Administrator at sign-in using Microsoft's supported mechanism.
For instructions on configuring role assignments, review Microsoft's documentation: Sign in to a Windows virtual machine in Azure using Microsoft Entra ID