Microsoft AZ-140: FSLogix, Profiles and User Data — Study Guide

Part of the Microsoft Azure Virtual Desktop Specialty AZ-140 — Study Guide. Practice with verified answers in the Microsoft exam hub, or take timed practice tests on ExamRoll.io.

Overview

FSLogix provides container-based user profiles for Azure Virtual Desktop, attaching a user’s profile as a virtual disk over SMB during sign-in. This design eliminates legacy roaming-profile pitfalls, speeds sign-in, and stabilizes app state across nonpersistent session hosts. FSLogix separates profile state (Profile Container) from Microsoft 365 data and caches (Office Data File Container), and can layer resiliency with Cloud Cache. Correct storage selection, identity-based SMB permissions, and profile-size governance are essential to deliver low-latency sign-ins and high session density.

FSLogix Containers and Data Architecture

FSLogix Profile Containers store the entire user profile in a single virtual disk file located on SMB storage. At sign-in, the disk is mounted to C:\Users\username and the OS sees a native profile.

Office Data File Container (ODFC) separates high-churn Microsoft 365 data—Outlook OST/Dat files, OneDrive and Teams caches—into its own container. Benefits include:

Use redirections.xml to exclude volatile folders from the Profile Container to shrink growth and speed sign-in. Common exclusions include Teams cache, browser caches, Temp, and logs. When using ODFC, exclude Office-specific caches from the Profile Container to avoid duplication.

Example redirections.xml (place beside frxtray.exe or define via registry):

<?xml version="1.0" encoding="UTF-8"?>
<FrxProfileFolderRedirection ExcludeCommonFolders="0">
  <Exclude>
    <Path>%LOCALAPPDATA%\Microsoft\Teams\Cache</Path>
    <Path>%LOCALAPPDATA%\Microsoft\Teams\Service Worker</Path>
    <Path>%LOCALAPPDATA%\Temp</Path>
    <Path>%LOCALAPPDATA%\Packages\Microsoft.MicrosoftEdge_*\AC\#!001\Cache</Path>
    <Path>%APPDATA%\Microsoft\Teams\media-stack</Path>
  </Exclude>
</FrxProfileFolderRedirection>

Storage Platforms and Access Control

Selecting SMB storage for FSLogix is a performance and operational decision:

UNC paths and DNS:

Identity-based SMB authentication and permissions depend on the directory service and join state of your session hosts:

Minimum permissions (least privilege) for Azure Files in common scenarios:

Resiliency, Cloud Cache, and Operational Health

Cloud Cache writes to local cache on the session host and replicates to one or more remote SMB repositories. Benefits include continued operation during a transient storage outage and cross-region resiliency. Design considerations:

Example configuration (registry) for a profile container with Cloud Cache and ODFC:

reg add HKLM\SOFTWARE\FSLogix\Profiles /v Enabled /t REG_DWORD /d 1 /f
reg add HKLM\SOFTWARE\FSLogix\Profiles /v VolumeType /t REG_SZ /d VHDX /f
reg add HKLM\SOFTWARE\FSLogix\Profiles /v SizeInMBs /t REG_DWORD /d 30720 /f
reg add HKLM\SOFTWARE\FSLogix\Profiles /v IsDynamic /t REG_DWORD /d 1 /f
reg add HKLM\SOFTWARE\FSLogix\Profiles /v CCDLocations /t REG_MULTI_SZ /d "\\store1.file.core.windows.net\profiles\0!\\store2.file.core.windows.net\profiles\0" /f
reg add HKLM\SOFTWARE\FSLogix\Profiles /v DeleteLocalProfileWhenVHDShouldApply /t REG_DWORD /d 1 /f
reg add HKLM\SOFTWARE\FSLogix\ODFC /v Enabled /t REG_DWORD /d 1 /f
reg add HKLM\SOFTWARE\FSLogix\ODFC /v VolumeType /t REG_SZ /d VHDX /f
reg add HKLM\SOFTWARE\FSLogix\ODFC /v SizeInMBs /t REG_DWORD /d 10240 /f

Diagnosing failed sign-ins and profile locks:

Cleanup and hygiene:

Performance, Scale, and Session Density

Storage IOPS and latency directly determine sign-in time, app responsiveness, and how many concurrent sessions each host can carry:

Network path matters. Use private endpoints and ensure session hosts are in the same region as storage to avoid WAN latencies. Place hosts and storage in the same virtual network or peered networks with low-latency paths.

Managing Microsoft 365 Data and Profile Growth

Combine ODFC, OneDrive Files On-Demand, and Known Folder Move (KFM) to control growth:

Security, Backup, and Recovery

Practical Problem Scenario

Siemens AG needs to improve Azure Virtual Desktop sign-in times for 12,000 engineers using Windows 11 Enterprise multi-session with Microsoft 365 Apps, Teams, and OneDrive. Profiles are on an overloaded standard file share, causing high latency during morning logon storms and frequent profile lock incidents.

  1. Migrate profile storage to Azure NetApp Files Premium SMB volumes in the same region as the host pools.
  1. Separate Office caches using FSLogix ODFC and reduce Profile Container max size to 20 GB while setting ODFC to 10 GB, both as dynamic VHDX.
  1. Implement Cloud Cache with two CCD locations: primary ANF volume and secondary Azure Files Premium share in the paired region over private endpoints.
  1. Enforce least-privilege access with Azure RBAC and NTFS: assign the engineering AVD group Storage File Data SMB Share Contributor on the Azure Files secondary and grant Modify NTFS on both repositories; administrators receive Full Control. Enforce SMB encryption.
  1. Deploy OneDrive per-machine with Files On-Demand and enable Known Folder Move for Desktop, Documents, and Pictures. Keep OneDrive within the container but exclude transient Teams caches via redirections.xml.
  1. Tune FSLogix and monitor: enable DeleteLocalProfileWhenVHDShouldApply, set PreventLoginWithFailure to allow temporary local profiles only for Tier-0 break-glass accounts, and instrument sign-in telemetry.
  1. Protect and recover: configure ANF snapshot policies with hourly short-term and daily long-term retention; enable cross-region replication on critical volumes; enable Azure Backup for the Azure Files secondary. Test restoring an individual user VHDX monthly.

Session Host Images and Provisioning · All domains · Session Host Operations

Practice these questions → · Timed practice on ExamRoll.io →

Pass the whole exam — not just this question

You found this answer. Get every verified question and explanation in one place, and save hours of prep. Free to start.

Pass your exam →

Browse Microsoft →

Related guides

All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product