The repeated MFA prompts and intermittent failures in a non‑persistent Windows 11 VDI with FSLogix are consistent with how Microsoft Entra ID authentication and FSLogix profile roaming interact.
Key points from the documented behavior:
- PRT (Primary Refresh Token) and device join state
- For the best SSO and MFA experience, VMs should be Microsoft Entra joined or Hybrid Microsoft Entra joined.
- When the VM is Entra joined/Hybrid joined, a PRT is created at sign‑in and is then used by Outlook, Teams, OneDrive, and other Microsoft 365 apps to authenticate silently.
- Standard domain‑joined VMs rely on the Microsoft Entra ID plug‑in instead of a PRT, which leads to repeated authentication prompts at every sign‑in for Microsoft 365 apps.
- FSLogix and Entra broker data
- Starting with FSLogix 2210 (2.9.8361.52326) and later, FSLogix no longer roams the following locations as part of the user profile:
-
%USERPROFILE%\AppData\Local\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy -
%USERPROFILE%\AppData\Local\Packages\Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy -
%USERPROFILE%\AppData\Local\Microsoft\TokenBroker
-
- These locations are directly related to Microsoft Entra ID broker and token data. If they are not handled correctly in a non‑persistent environment, users can be forced to re‑authenticate frequently and may see failures when tokens are refreshed after long sessions.
- Starting with FSLogix 2210 (2.9.8361.52326) and later, FSLogix no longer roams the following locations as part of the user profile:
- Recommended FSLogix configuration
- Install the latest FSLogix version.
- Configure the
RoamIdentitysetting (via registry or Group Policy) and set it to1so that identity‑related data is roamed correctly with the FSLogix profile. - This is the supported way to handle Entra ID broker/token data; manually including or excluding those folders in
redirections.xmlis not required and can be unreliable.
- Session lifetime and re‑authentication
- Microsoft Entra ID uses a default rolling 90‑day sign‑in frequency and separate controls for MFA re‑authentication.
- When policy or token conditions require a fresh sign‑in (for example, after a long‑running session, device state changes, or policy evaluation), users will be prompted again, which is expected.
- However, with non‑persistent VDI and missing/incorrect roaming of identity data, these prompts can occur more often and may fail, as seen in the error dialog.
Practical remediation steps based on the above:
- Ensure the VDI VMs are Microsoft Entra joined or Hybrid Entra joined, not only domain‑joined, so that users obtain a PRT at sign‑in.
- Upgrade FSLogix to the latest release.
- Enable
RoamIdentity=1(registry or Group Policy) instead of relying on customredirections.xmlentries for the AAD Broker and TokenBroker paths. - After applying these changes, test with a new user session to confirm that Outlook and Teams no longer prompt for MFA on every sign‑in and that long‑running sessions can refresh authentication without error.
References: