Windows virtual desktop is continually evolving, and now the time has come to dig deep and further configure it to optimize costs and improve performance. A previous article (here) discussed using FSLogix to segregate user profiles to make them non-persistent for the WVD environments. From this post, let's further discuss how we can separate office content from the user profiles and what benefits we can expect from it.
It's essential to understand the differences between Profile Container and Office Container for the proper use and maximum benefit.
Profile Container
Profile Container is used to redirect the full user profile, including MyDocument, Desktop, Pictures, etc. Profile Container is used in non-persistent, virtual environments, such as Virtual Desktops. When using Profile Container, the entire user’s profile, except for data that is excluded using the redirections.xml, is included in the profile container. For Windows virtual desktop, we are using FSLogix with Azure files or Azure NetApp files. Refer (here)
Office Container
Office Container is generally implemented with another profile solution such as FSLogix User profiles, and it is designed to improve the performance of Microsoft Office in non-persistent environments. As opposed to Profile Container, Office Container redirects only the local user files for Microsoft Office. When configuring Office Container, each Office component is independently included based on the GPO's selected settings or the registry.
There are few benefits of separating the Office profile; these are what I see as the main advantages for the WVD environment.
It saves IOPS.
Office content such as Email, Outlook, OneDrive, Teams requires more IOPS since they are the main working tools these days. How often you save a file on a desktop, open a file from it, or delete a large number of files. All these actions are normal profile activities, and they are separated from the Office profile, so you do not need to worry about IOPS on a standard profile.
No backup, DR or HA
All these office data are just cache data that you maintain locally; you can always refer to the original were in Office 365. So, why do you need to back up those? Also, there is no need to have redundancy or high availability. In the event of a loss, you can always set a new office profile, and it will get synced from Office 365 cloud.
Optimize the cost
While considering saving IOPS, you can change your user profile to stay on standard file storage and consider implementing Office profile on Azure Premium files with high IOPS. This will have a significant save when you have a large number of WVD users. Also, you can exclude Office profile from Azure backup or your snapshots, which will eventually save unnecessary cost to your organization.
FSLogix is a set of solutions that enhance, enable, and simplify non-persistent Windows computing environments. FSLogix solutions are appropriate for Virtual environments in both public and private clouds. FSLogix solutions include:
Also, FSLogix is free to use when you have a license to use Windows Virtual Desktop.
From this article I’m only discussing the configurations which are required to enable office container in WVD environments, before proceeding you should have below environment ready, please visit my previous blog articles for configuring WVD and Configuring User profiles – (here)
You should have
for Office Container, we will be using the same Domain Joined Storage Account and Azure Files you already configured with User Profiles.
Refer - https://docs.microsoft.com/en-us/fslogix/configure-office-container-tutorial
After configuring Office Container, you can see two VHD’s attached to the VM when you logged in. One for the user profile and the other for the Office Profile. All the Office data you specified using GPO will be redirected to the Office profile except anything you specified in redirections.xml.
When you configured the Office profile, you can exclude some data copied to the VHD and maintain it in the local profile. One of the best use cases for this is the use of Teams in WVD. Teams have a large cache of around 4.5GB of data, and you do not want this in the office profile. Offloading this from cloud data saves you storage costs and optimizes the profile load as well.
In this scenario, you can use redirections.xml with configured teams cache location in it.
Redirection.xml for excluding Teams
<?xml version="1.0" encoding="UTF-8"?>
<FrxProfileFolderRedirection ExcludeCommonFolders="0">
<Excludes>
<Exclude Copy="0">AppData\Roaming\Microsoft\Teams\Service Worker\CasheStorage</Exclude>
<Exclude>… another exclude folders… </Exclude>
</Excludes>
<Includes/>
</FrxProfileFolderRedirection>
Save this in the same location where your FSlogix Profile resides (AzureFiles) and specify the path in the Group policy which you created for the Office Container configurations as below:
I hope this is useful.