FSLogix - Reduce profile container size - exclude Teams Cache with redirections.xml

Found this article which helped me save a ton of space on FSLogix profile disks.
https://techcommunity.microsoft.com/t5/azure-virtual-desktop/wvd-fslogix-reduce-profile-container-size-exclude-teams-cache/m-p/1503683

You will have to create a redirections.xml to let FSLogix know what it should not redirect to user's VHDX.
https://docs.microsoft.com/en-us/fslogix/manage-profile-content-cncpt

For example create a redirections.xml file and place it in the root of the Azure Files share. Example XML below.

<?xml version="1.0" encoding="UTF-8"?><FrxProfileFolderRedirection>
<Excludes>
<Exclude Copy="0">AppData\Local\SquirrelTemp</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Teams\Current\Locales</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Teams\Packages\SquirrelTemp</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Teams\current\resources\locales</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Teams\Current\Locales</Exclude>
<Exclude Copy="0">AppData\Roaming\Microsoft\Teams\Service Worker\CacheStorage</Exclude>
<Exclude Copy="0">AppData\Roaming\Microsoft\Teams\Application Cache</Exclude>
<Exclude Copy="0">AppData\Roaming\Microsoft\Teams\Cache</Exclude>
<Exclude Copy="0">AppData\Roaming\Microsoft Teams\Logs</Exclude>
<Exclude Copy="0">AppData\Roaming\Microsoft\Teams\media-stack</Exclude>
</Excludes>
</FrxProfileFolderRedirection>

Additionally you have to add this to the NMM FSLogix registry entry.

"RedirXMLSourceFolder"="\\ActualStorageAccountName.file.core.windows.net\ActualShareNameProfiles"

2

Comments (4 comments)

Avatar
Chuck Mikuzis

0
Avatar
Jim-Barry Behar

Brian Fantana, if I may ask, what is the purpose of these rows?

<Exclude>Desktop</Exclude>
<Exclude>Documents</Exclude>
<Exclude>Favorites</Exclude>

Why wouldn't you want these folders to flow into the FSLogix VHDX? In my case, I pretty much redirect documents and desktop to OneDrive, but we have a customer that doesn't want to use OneDrive coming up (we're working hard to convince them otherwise)...

Thanks in advance for your time and explanation.

PS: how is this working for your Teams users? Any improvements or gotchas to be concerned with?

 

0
Avatar
Brian Fantana
(Edited )

Jim-Barry Behar good catch! Sorry about that. I was previously on NFA and forgot to take that out of my initial post. My actual production NMM environments are not excluding desktop, documents and favorites. I just forgot to take that out of my example.

Great idea about redirecting to OneDrive, I might have to do that as well.

Seems to be working just fine for all our users with Teams. Haven't noticed any side effects or anything like that.

Thanks again for finding that error in my initial post. Would hate to lead others in the wrong direction. 60% of the time I'm right, every time.

0
Avatar
Travis Lamming

You guys dont see any performance issues, redirecting to one drive for the documents/desktop/favorites folder? We always redirected those to file shares for performance reasons and to keep the VHDX file from bloating. The default 30 gig limit on these user disks can fill up fast, and opening giant profiles for users seems like it would cause performance issues.

Please sign in to leave a comment.