Sessionright

FSLogix Cloud Cache: How It Works and When Not to Use It

By Jay H.Published Updated 10 min read

Jay H. · Founder, Sessionright
Founder of Sessionright. Twenty years running Citrix, NetScaler, Citrix Cloud, NetScaler Console, Azure and Azure Virtual Desktop estates; writes the guides and reviews the platform's rules.

Users having trouble loading their profiles? Talk it through with a Sessionright engineer: 15 minutes, free.

FSLogix Cloud Cache runs each user's profile from a local disk on the session host and copies the changes to up to four remote storage providers. Microsoft's FSLogix high availability page calls it the "preferred" option (high availability options). One thing changed on 11 February 2025: Microsoft retired CcdMaxCacheSizeInMBs (limited cache) (feature deprecation). Since then, the local cache can grow to the full container size. If you sized host disks for a capped cache, check them again.

Below: the exact CCDLocations syntax, cache disk sizing, failure behaviour, and when a single replicated share is the better call.

What Cloud Cache does

Cloud Cache is an optional configuration for Profile and Office Data and Files Container (ODFC) containers. Its main job is to "mitigate short-term or intermittent connectivity problems with the remote storage providers" (Cloud Cache tutorial). It works like this (Cloud Cache overview):

  • Local cache. At first sign-in, FSLogix creates the user's container under C:\ProgramData\FSLogix\Cache. The user's session runs against that local copy.
  • Proxy file. A file named like Profile_%username%.vhd is mounted as the user's registered disk. It has the size of the cache but takes zero bytes on disk. By default it lives in C:\ProgramData\FSLogix\Proxy (configuration reference).
  • Queue and index files. A *.queue file per provider tracks *.index files of unwritten block-level changes.
  • Lock and meta files. The lock file exists only on the providers and records which VM holds the container. The meta file stores a sequence number, so Cloud Cache can tell which provider has the newest data.

Three operations matter:

Operation When it happens What it does
Hydrate The local cache lacks requested data, including during sign-in Reads from one provider, the first healthy one in CCDLocations
Flush Continuously, at sign-out, and when a provider comes back Writes changes to all providers at once, each on its own thread, with no throttling
Clone At sign-in, when a provider isn't at the same sequence Copies the full VHD(x) to that provider and holds pending writes locally until every provider matches

Microsoft notes that ping or Test-NetConnection results "are bad indicators" of how a provider performs under transactional I/O. A provider that keeps falling behind the local cache is a sign that it's underperforming (Cloud Cache overview).

CCDLocations syntax and provider types

Set CCDLocations (REG_SZ or MULTI_SZ) under HKLM\SOFTWARE\FSLogix\Profiles for Profile containers, or under HKLM\SOFTWARE\Policies\FSLogix\ODFC for ODFC. Each provider entry is type, an optional name, and connectionString, separated by commas. Providers are separated by ;. The first provider is the only one used for reads unless it becomes unhealthy, and every provider receives writes (configuration reference). Follow these rules:

  • type=smb is correct and type=SMB is not. connectionString is correct and connectionstring is not.
  • Don't put spaces around delimiters. Quote a name that contains spaces.
  • smb needs the full UNC path. azure must reference a protected key, never a plain-text connection string.
  • CCDLocations and VHDLocations must not both be present.
  • List providers in order of proximity, then preference (Cloud Cache overview).

Microsoft's tutorial sets an Azure Files provider plus a page blob provider like this (Cloud Cache tutorial):

$CCDLocations = 'type=smb,name="AZURE FILES PROVIDER",connectionString=\\<STORAGE-ACCOUNT-NAME>.file.core.windows.net\<SHARE-NAME>;type=azure,name="AZURE BLOB PROVIDER",connectionString="|fslogix/<KEY-NAME>|"'
New-ItemProperty -Path HKLM:\SOFTWARE\FSLogix\Profiles\ -Name CCDLocations -PropertyType string -value $CCDLocations -Force

That tutorial also recommends ClearCacheOnLogoff = 1, HealthyProvidersRequiredForRegister = 1, LockedRetryCount = 3, LockedRetryInterval = 15, ReAttachRetryCount = 3, ReAttachIntervalSeconds = 15 and VolumeType = VHDX. It leaves ProfileType = 0 and SizeInMBs = 30000 at their defaults.

Azure page blob providers

A page blob connection string carries the storage account key, and "the entire storage account can be accessed" with it. FSLogix stores the string in the VM's Credential Manager instead (protect the connection string):

& "C:\Program Files\FSLogix\Apps\frx.exe" add-secure-key -key <custom-key-name> -value $ConnectionString
& "C:\Program Files\FSLogix\Apps\frx.exe" list-secure-key

Then reference it as connectionString="|fslogix/<key-name>|". Page blobs can be used only through Cloud Cache, never with VHDLocations (container storage options).

Choosing a second provider

A second provider only helps if it fails independently. Microsoft says pairing Azure Files with page blobs isn't "unique enough to provide a sufficient level of isolation in the event of an outage." Its high availability example pairs Azure Files on ZRS with Azure NetApp Files instead (high availability options). For two regions, reverse the provider order on the hosts in the secondary region so that each region writes locally first. One example uses two SMB providers: type=smb,connectionString=\\primarystgprofiles\profiles;type=smb,connectionString=\\secondarystgprofiles\profiles (multiregion BCDR).

Local cache disk sizing and the documented requirements

Here's what Microsoft documents about the cache location (configuration reference):

  • CacheDirectory (default C:\ProgramData\FSLogix\Cache) must be on storage that is highly available and high performing, "similar to SSD or NVMe attached storage."
  • CacheDirectory is read before Group Policy applies. If a gold image is applied at boot, you can't rely on Group Policy to set it, so put it in the image.
  • CacheDirectory and ProxyDirectory must not point to the same location. Microsoft recommends moving ProxyDirectory only when there is no C drive.
  • ClearCacheOnLogoff defaults to 0, which keeps every user's cache on the host after sign-out. Microsoft also warns that reusing old caches "may lead to low disk space events" (Cloud Cache overview). On pooled hosts, set it to 1.

Since limited cache was retired, each user's cache can grow to that container's SizeInMBs, which defaults to 30000 (configuration reference). The Azure Architecture Center gives a starting point (multiregion BCDR):

  1. Use Premium managed disks for the cache.
  2. Make the cache disk at least as large as the largest expected profile VHD(x).
  3. Allocate at least 30 GB per concurrent user, then adjust to measured profile sizes. A host that peaks at 10 concurrent users therefore starts at 300 GB of cache space.

The cache can sit on the OS disk, a data disk or the temporary disk, but temporary disks "have many caveats" (high availability options). To measure real usage, run Get-CloudCacheDisk and read CacheSizeOnDisk (in bytes) for each signed-in user (Get-CloudCacheDisk).

For storage I/O, Microsoft's example per-user figures are 10 IOPS steady state and 50 IOPS at sign-in and sign-out (container storage options). Every provider receives every write, so size each one for the full load, not a share of it.

Failure behaviour when a provider is unreachable

Cloud Cache tests each provider by doing I/O on its lock file. By default it does this every 60 seconds, and a single failed lock operation marks the provider not connected (Get-CloudCacheProvider). After that (Cloud Cache overview):

  • During the session, changes queue locally and flush when the provider returns. If every provider is down, the local cache keeps working and grows, up to SizeInMBs.
  • On a cache miss, a read that can't be hydrated from any provider "will cause a session hang or worse a system crash (BSOD)."
  • At sign-in, a provider that is behind gets a full clone, and pending writes stay in the local cache until it catches up.

The register and unregister settings decide what users experience (configuration reference):

Setting Default Effect
HealthyProvidersRequiredForRegister 0 Sign-in always allowed, even with no providers. Microsoft's tutorial recommends 1. Pair it with PreventLoginWithFailure or PreventLoginWithTempProfile
HealthyProvidersRequiredForUnregister 1 Sign-out held until this many providers are healthy. Setting 0 is not recommended and can permanently delete session data
CcdUnregisterTimeout 0 0 holds sign-out until the providers return, possibly forever. Otherwise, the number of seconds to wait
ClearCacheOnForcedUnregister 0 0 keeps the local cache after a forced sign-out so you can recover data. 1 deletes it, and registry data saved during the session can be lost

When sign-out hangs, Get-CloudCacheDisk shows why in its State property: WaitingForUnhealthyProviders, WaitingForWriteQueueFlush, WaitingForSync or WaitingForZeroHandleCount. Get-CloudCacheProvider shows Connected, AccessMode (NoAccess means a problem with the provider, or another machine holds the lock) and LastLockOperation for each provider. Both cmdlets ship preloaded with FSLogix and don't need administrative rights (Microsoft.FSLogix module).

Get-CloudCacheDisk | Select-Object Path, State, CacheSizeOnDisk
Get-CloudCacheProvider | Select-Object Name, Connected, AccessMode, LastLockOperation, RemotePath

In Event Viewer, open Applications and Services Logs > Microsoft > FSLogix > CloudCache > Operational. Event 56 shows which providers are online, and event 5 shows the proxy lock (Cloud Cache tutorial). There's also a multi-region trap: if a user signs in to a second region's host pool while the first region holds the lock, the default configuration blocks the sign-in and logs ERROR_LOCK_VIOLATION 33 (0x21) (multiregion BCDR). For other profile errors, see our FSLogix event ID 26 guide and the FSLogix profile troubleshooting guide.

When a plain share with storage-level replication is the better call

Microsoft recommends Cloud Cache for high availability and cross-region recovery. It goes further and says to use it "instead of storage-specific replication mechanisms" for multiregion AVD (multiregion BCDR). For Azure Virtual Desktop, Microsoft recommends Azure Files for profile containers "for most of our customers" (AVD storage options). A plain VHDLocations share on it is still the better trade in these cases:

  • You need in-region resilience only, and ZRS is available. ZRS replicates an Azure Files share across three availability zones, though not every region supports zones. FSLogix itself then adds no resiliency, and network or dependency problems reaching the share can make sessions unstable or disconnect them (high availability options). In return: no cache disk, no sign-out holds, one write path.
  • Your hosts can't carry the cache. Cloud Cache "can increase sign-in and sign-out times compared to traditional VHDLocations, especially when you use low-performance storage" (multiregion BCDR). Without Premium cache space per concurrent user, stay on VHDLocations.
  • Your only second provider shares a failure domain with the first. If your only option is Azure Files plus page blobs, you pay for double writes without the isolation Microsoft says you need (high availability options).
  • Profiles aren't worth recovering. Microsoft's "no profile recovery" option, with new profiles created in the failover region, is "the most cost effective in terms of infrastructure cost." Microsoft also says business-critical data belongs in OneDrive or SharePoint, not in the profile (BCDR options).

Know the limits of storage-only replication before you choose it (multiregion BCDR):

Storage option Documented limit
Azure Files Premium No GRS. Use Cloud Cache for cross-region copies
Azure Files GRS Needs a region pair, and RPO and RTO are higher than with Cloud Cache
Azure NetApp Files Cross-zone and cross-region replication are mutually exclusive per volume. Failover isn't transparent
Azure NetApp Files, zone placement only "Doesn't provide enough redundancy for FSLogix high availability using standard containers" (high availability options)

For share setup, Kerberos and permissions on either platform, see our Azure Files and NetApp Files guide.

FAQ

What is FSLogix Cloud Cache?

It's an FSLogix configuration that runs Profile or ODFC containers from a local cache on the session host. It keeps one to four remote providers up to date from that cache (configuration reference).

Does Cloud Cache give FSLogix high availability?

For the profile container, yes. That's the configuration Microsoft prefers for high availability within a region. It doesn't protect the VM, the network or other dependencies (high availability options).

Can I use VHDLocations and CCDLocations together?

No. The reference says they must not both be present, and Cloud Cache settings apply only when CCDLocations is used.

Can FSLogix store profiles in Azure Blob storage?

Only Azure page blobs, and only as a Cloud Cache provider (type=azure), with the connection string protected by frx add-secure-key (container storage options).

Why is user sign-out stuck with Cloud Cache?

Fewer providers are healthy than HealthyProvidersRequiredForUnregister requires, and with CcdUnregisterTimeout at 0 the hold has no limit. Get-CloudCacheDisk will show WaitingForUnhealthyProviders or WaitingForWriteQueueFlush.

Want a second pair of eyes?

The Sessionright assessment is a read-only review of your Azure Virtual Desktop estate, including profile storage. An engineer reviews the report before you get it. Sessionright for Azure Virtual Desktop is read-only by default, and every change it proposes waits for your approval and is logged (security model). If you would rather talk it through, book a 15-minute call: no install, no sales deck.

Sources

Want this watched for you, with the fix drafted before you ask?

Sessionright is an AI operator for Azure Virtual Desktop: it checks session hosts, scaling plans, FSLogix and cost continuously, attaches the evidence, and proposes fixes for a named approver to sign. It has run against simulated estates and Sessionright's own Azure lab tenant so far. To see what it finds on your own estate, run the free assessment: one command in Azure Cloud Shell reads your estate, never changes it, and writes an HTML report in about five minutes for a typical estate. Your estate data stays with you unless you choose to email yourself the HTML report through Sessionright. Design partner program: 90-day free Operator pilot, then 50% off year 1; list price at signing held to month 24. Engineer-led assessments are 50% off for design partners. Outside the program the onboarding assessment is $2,500, up to 500 users, one tenant.

Not ready for that? Talk to a Sessionright engineer: 15 minutes, free, and you leave with a next step.

Or get the next guide by email. One email per new guide, no marketing list.

New Sessionright guides by email. No marketing drip; unsubscribe in one click.

Related guides

Citrix and NetScaler are trademarks of Citrix Systems, Inc. and/or its affiliates. Azure is a trademark of the Microsoft group of companies. Sessionright is not affiliated with or endorsed by Cloud Software Group, Citrix or Microsoft.