FSLogix Profile Container Corruption and Cloud Cache Sync Problems: Troubleshooting in AVD
By Mirko Peters · · Updated
Start with the FSLogix logs, then check antivirus exclusions, redirections.xml, container size, storage and Cloud Cache sizing. A checklist for corrupted profile containers and Cloud Cache failures in Azure Virtual Desktop, based on Microsoft Learn.
For a corrupted FSLogix container or a Cloud Cache that will not sync, start with the logs, then work through the causes Microsoft documents: antivirus interference, redirections, container size, storage and network health, and VM sizing. This article follows that order. It also says clearly where the Learn pages stop. They describe causes and prevention in detail, but they do not provide a step-by-step repair for a damaged VHD(x) file.
Key points
- Read C:\ProgramData\FSLogix\Logs\Profile\Profile_%date%.log first. Search for LoadProfile and the user's name, then follow the process id.
- Microsoft Learn names antivirus products as one of the most common causes of container corruption, so check the documented exclusions.
- Keep redirections.xml simple. Excluding the wrong profile folders can cause unexpected results.
- Cloud Cache needs more VM resources. Learn suggests starting with a 2:1 ratio of vCPU to user.
- If Cloud Cache cannot read data from any provider, Learn warns of a session hang or even a crash, so watch provider health and capacity.
Step 1: Collect and read the logs
Learn names three log types: client event logs, text log files and event trace logs. The FSLogix Support Tool can gather them into one archive before you open a support case.
- Event Viewer: Applications and Services Logs > FSLogix. Cloud Cache events are in the Admin or Operational log under CloudCache.
- Text logs:
C:\ProgramData\FSLogix\Logs. They need logging settings to be configured. The most useful file isProfile_%date%.login theProfilesubfolder.
To read the profile log, follow Learn's sequence:
- Open the latest
Profile_%date%.log. - Search for the sign-in with
LoadProfile: <samaccountname>. - Confirm the time matches the reported issue.
- Note the process id for that user and use it to follow the whole sign-in or sign-out sequence, because other users may log at the same time.
- Look for
Begin Session: Logon,Begin Session: Logoff,loadProfile time:andunloadProfile time:.
Entries are prefixed [INFO], [WARN:xxxxxx] or [ERROR:xxxxxx]. The FSLogix codes page separates two things. The code after [WARN: or [ERROR: comes from Windows and corresponds to a Windows system error code, so decode it with the system error code documentation or NET HELPMSG. FSLogix's own status values appear as lines such as Status set to 28: No user session config found. Among them are 11 (can't open virtual disk), 12 (can't attach to virtual disk) and 17 (error while formatting virtual disk). No code is described as "corrupt".
Step 2: Check antivirus exclusions
Learn states that antivirus products are one of the most common causes of container corruption. If antivirus software scans or processes data into or out of the container, corruption can follow. Review the antivirus file and folder exclusions in the FSLogix prerequisites and compare them with your endpoint protection configuration.
For slow or failed sign-ins, Learn also lists third-party firewall or intrusion prevention software on the same VM. The suggested test is to disable it temporarily and reproduce the issue. With Cloud Cache, FSLogix can use HTTPS to reach Azure page blobs, so check that path as well.
Step 3: Review redirections.xml
Learn cautions against excluding profile data just to save capacity. The folders in a profile are not random, and a misconfigured redirections.xml can cause unexpected results. The advice is to keep the file simple. Learn also notes that adding exclusions later does not remove data already stored in the container.
Step 4: Check container size and free space
Learn's sign-in troubleshooting page states that the container must have more than 200 MB to attach successfully; it does not say more precisely what that figure measures. To check:
- Read the
SizeInMBssetting on the VM. - Find the user's container on the SMB share.
- Right-click the VHD(x) file, select Properties and compare Size on disk with
SizeInMBs.
FSLogix expands a container automatically when you set a larger SizeInMBs, and the change affects all users with dynamic disks where it applies. VHD disk compaction is enabled by default in version 2210 (2.9.8361.52623) and later. Learn also recommends an alert when the file share drops below 20 percent free space. A full storage provider can hang sessions and block containers from mounting or detaching.
Step 5: Check network, DNS and the Kerberos change
Container attach fails if the VM cannot resolve or reach the storage path. Learn suggests testing from another VM and running Test-NetConnection -ComputerName <server FQDN> -CommonTCPPort SMB.
Learn also repeats a notice, still worded as an upcoming change: the April 2026 Windows Server update changes the default Kerberos encryption type from RC4 to AES-SHA1. File shares that host FSLogix containers and are not upgraded to AES-SHA1 might have access issues after this change is applied, so Learn advises completing the upgrade before installing the update.
Step 6: Understand Cloud Cache sync behavior
Cloud Cache uses the locally mounted container to send periodic updates to remote storage providers. Points from Learn that help with diagnosis:
- The local cache lives in
C:\ProgramData\FSLogix\Cacheand only grows to the container maximum set bySizeInMBs. - Providers are used in the order of
CCDLocations. One provider is used for reading, while writes go to all of them. - If a provider falls behind the local copy, that can indicate an underperforming provider. Learn says
PingandTest-NetConnectionresults are poor indicators of transactional I/O performance. - At sign-in, if a provider is not at the same sequence, Cloud Cache performs a full VHD(x) clone, keeping pending writes in the local cache until all providers match.
- At sign-out, the user's sign-out is delayed until all providers are at the same sequence. The delay depends on
HealthyProvidersRequiredForUnregisterandCcdUnregisterTimeout. - If all providers become unhealthy during a session, the local cache keeps working and growing until a provider recovers.
The serious warning: if a read is requested and Cloud Cache cannot hydrate the data from any provider, this can cause a session hang or, worse, a system crash.
Step 7: Size the VMs
Learn says Cloud Cache puts an even greater load on the VM and suggests starting at a 2:1 ratio of vCPU to user. It also notes extra I/O and storage needs for the local cache. Too many sessions per VM or too little CPU, memory or disk performance can make sign-ins slow or fail.
What the pages read do not cover
The Learn pages used here have no dedicated Cloud Cache troubleshooting steps and no procedure to repair a corrupt VHD. If the steps above find nothing, gather logs with the FSLogix Support Tool and open a support case. Before touching a damaged container, make a copy. Learn warns that deleting the wrong data can lead to data loss or profile corruption.
Related
Sources
- Microsoft Learn: FSLogix troubleshooting events, logs and diagnostics
- Microsoft Learn: Troubleshoot container corruption
- Microsoft Learn: Cloud Cache in FSLogix
- Microsoft Learn: Troubleshoot long or failed sign-ins
- Microsoft Learn: Troubleshoot container size or low disk space
- Microsoft Learn: FSLogix error codes
FAQ
What is the most common cause of FSLogix container corruption?
Microsoft Learn says antivirus products are one of the most common causes. If antivirus software scans or processes data into or out of the container, it can lead to corruption. Learn points to its documented antivirus file and folder exclusions.
Where are FSLogix logs stored?
Microsoft Learn lists three kinds: client event logs under Event Viewer, Applications and Services Logs, FSLogix; text logs in C:\ProgramData\FSLogix\Logs; and event trace logs. The Profile_%date%.log file in the Profile subfolder is the most common one to read first, and Cloud Cache events appear under the CloudCache node.
Where does Cloud Cache keep its local copy?
According to Microsoft Learn, in C:\ProgramData\FSLogix\Cache. Learn adds that the local cache only grows up to the maximum container size set in SizeInMBs. Cloud Cache flushes changes lazily and asynchronously to all storage providers, and a sign-out is delayed until all providers are at the same sequence.
How many providers does Cloud Cache read from?
Learn says only one provider is used when data is hydrated, chosen by the order of entries in CCDLocations, while data is written to all providers. It advises listing providers by proximity and then preference.
Do the Learn pages give a repair procedure for a corrupt VHD?
The pages read for this article do not. They describe causes and prevention, and they warn that deleting the wrong data from a container could lead to data loss or profile corruption. Back up the container before any repair attempt.