Table of Contents

In this blog, I’m going to show you how to configure profiles in Azure Windows virtual desktop, and how to set up FSLogix profile service with Azure Windows virtual desktop. Okay first a little bit about FSlogix, FSlogix is now part of Microsoft and Microsoft is making the product available for profile management in Windows virtual desktops, this is a good thing per Microsoft documentation user profile disks are being depreciated.

Benefits of Installing FSLogix on WVD

  1. FSLogix profile containers are high performance and resolve performance issues that have historically blocked cached exchange mode.
  2. Without FSLogix profile containers, OneDrive for Business is not supported in non-persistent RDSH or VDI environments.
  3. Maintain user context in non-persistent environments
  4. Minimize sign in times for non-persistent environments
  5. Optimize file IO between host/client and remote profile store
  6. Native (Local) profile experience, eliminating many compatibility issues with solutions using visible redirection, such as User Profile Disk (UPD).
  7. Simplify the management of applications and ‘Gold Images’
  8. Specify the version of Java to be utilized by specific URL and applications

I’m going to go over the basics of FSlogix installation using file shares to hold profile containers this is the process outlined in Microsoft documentation. So this is the plan I have a managed image with all my software just like we did in the last blog ( WVD Golden image Customization and updates using Shared Image Gallery ) I’m going to deploy that to a new VM and configure FS logic that will then be turned into a managed image.

So with that here’s what I’m going to cover in the demo

  1. Prepare a virtual machine to act as a file share for user profiles
  2. Grant the Windows Virtual Desktop users with the required Permissions on the created share.
  3. Deploy a new VM from the template
  4. Install and configure FSlogix software
  5. Convert that VM to a new template
  6. Deploy the Windows virtual desktop pool using the new template
  7. Test the profiles

Prepare a virtual machine to act as a file share for user profiles

Add the Windows Virtual Desktop Active Directory users to an Active Directory security group. This security group will be used to authenticate the Windows Virtual Desktop users to the file share virtual machine you just created. Configure Windows Virtual Desktop (WVD) to use FSLogix profile containers as a user profile storage

Grant the Windows Virtual Desktop users with the required Permissions on the created share

Create a new folder, Right-click the new folder, select Properties, select Sharing, then select Advanced sharing…. Select Share this folder, select Permissions…, then select Add…., Search for the security group to which you added the Windows Virtual Desktop users,

Configure Windows Virtual Desktop (WVD) to use FSLogix profile containers as a user profile storage

Then make sure that group has Full Control. 

Configure Windows Virtual Desktop (WVD) to use FSLogix profile containers as a user profile storage

After adding the security group, right-click the folder, select Properties, select Sharing, then copy down the Network Path to use for later.

  Configure Windows Virtual Desktop (WVD) to use FSLogix profile containers as a user profile storage

Deploy a new VM from the template

Open Create a virtual machine blade

  • Subscription: Select the subscription where the new VM will be created.
  • Resource group: Create a new resource group or use an existing one.
  • Virtual machine name: Enter a name for the Master virtual machine (Ex. WVD-MSTR-FSX)
  • Region: Select the (Region) where you want to create the host pool.
  • Availability Zone: (1,2,3)
  • Image: Select the image created in previous article (Azure Shared Image Gallery and Windows Virtual Desktop) (Ex. WVDPRDSIG/WVD-Master01-image-20200818/latest – Gen1)
  • Size: Select VM Size (Ex. D2s_V3)
  • License Type: Windows Client
 

Configure Windows Virtual Desktop (WVD) to use FSLogix profile containers as a user profile storage  

For the rest of configuration, you can follow the ( Step 2: Create VM from the created Managed Disk )

Configure Windows Virtual Desktop (WVD) to use FSLogix profile containers as a user profile storage

Install and configure FSlogix software

Configure FSlogix software: Option 1 (Manuel values creation using Regedit)

  1. Download the FSLogix agent using this link
  2. Extract the right Release (64 or 32) and run FSLogixAppsSetup to install the FSLogix agent.
 

Configure Windows Virtual Desktop (WVD) to use FSLogix profile containers as a user profile storage

  1. From the start menu, run RegEdit as an administrator. Navigate to Computer\HKEY_LOCAL_MACHINE\software\FSLogix.
  2. Create a key named Profiles.
  3. Create the following values for the Profiles key:
NameTypeData/Value
EnabledDWORD1
VHDLocationsMulti-String Value“Network path for file share”

Configure Windows Virtual Desktop (WVD) to use FSLogix profile containers as a user profile storage

Configure FSlogix software: Option 2 (Registry file)

Just follow the Same Steps in option 1 from 1 to 4

Then you have to download and install this Registry file

Configure Windows Virtual Desktop (WVD) to use FSLogix profile containers as a user profile storage

Modify VHDLocations with “Network path for file share”

Configure Windows Virtual Desktop (WVD) to use FSLogix profile containers as a user profile storage

Configure FSlogix software: Option 3 (Use FSLogix Group Policy (GPO) Template Files)

  1. Connect to Domain Controller
  2. Download the FSLogix agent using this link
  3. Extract the right Release (64 or 32)
  4. Copy the ADMX file (fslogix.admx) to C:\Windows\PolicyDefinitions
  5. Copy the ADML file (fslogix.adml) to C:\Windows\PolicyDefinitions\en-US
  6. Run GPEDIT.MSC
  7. Create New GPO and linked to WVD OU

    Configure Windows Virtual Desktop (WVD) to use FSLogix profile containers as a user profile storage

  8. Browse to Computer Configuration > Policies > Administrative Templates > FSLogix > Profile Containers > VHD Location (Enable it)
  9. Modify VHDLocations with “Network path for file share”
 

Configure Windows Virtual Desktop (WVD) to use FSLogix profile containers as a user profile storage

  • Browse to Computer Configuration > Policies > Administrative Templates > FSLogix > Profile Containers > Enabled (Enable it)
 Configure Windows Virtual Desktop (WVD) to use FSLogix profile containers as a user profile storage
 
  • NOTE: Windows Virtual Desktop doesn’t require an open inbound port 3389 for users to access the host pool’s VMs. We don’t recommend to open inbound port 3389 on your WVD VMs.

Convert that VM to a new template

Follow the same Step that we highlighted earlier in Azure Shared Image Gallery and Windows Virtual Desktop to

  1. Sysprep and Create a Virtual Machine Capture

Configure Windows Virtual Desktop (WVD) to use FSLogix profile containers as a user profile storage

  1. Add an image to the Shared Image Gallery

Configure Windows Virtual Desktop (WVD) to use FSLogix profile containers as a user profile storage

Deploy the Windows virtual desktop pool using the new template

Just like we have done before in this article (Deploy a Windows Virtual Desktop Host pool with the custom image) Please follow this section to Creating your new host pool

Configure Windows Virtual Desktop (WVD) to use FSLogix profile containers as a user profile storage

  • Select Image Type Gallery
  • Click on Browse all images and disks > My Items > Click on the Latest Image (Ex. WVD-MSTR-FSX-image-20200830172419)
  • Rest of Steps are same like previous article (Creating your new host pool)

Configure Windows Virtual Desktop (WVD) to use FSLogix profile containers as a user profile storage

Configure Windows Virtual Desktop (WVD) to use FSLogix profile containers as a user profile storage

Verify FSLogix Profile Container on File Share.

Access Assignments

Go to Assignments under Newly created Hostpool Application group and assign WVD Users Group.

Configure Windows Virtual Desktop (WVD) to use FSLogix profile containers as a user profile storage

Access Testing Profile Creation Varication

Logon as a specific user and check if the Profile Container is being created on the File Share. See the example below.

Configure Windows Virtual Desktop (WVD) to use FSLogix profile containers as a user profile storage

Verify Profile Creation through WVD Session host.

Configure Windows Virtual Desktop (WVD) to use FSLogix profile containers as a user profile storage

Verify Profile Creation through File Share.

Configure Windows Virtual Desktop (WVD) to use FSLogix profile containers as a user profile storage

Azure Files integration with Azure Active Directory Domain Service

FSLogix profile containers’ performance and features take advantage of the cloud. On August 7th, 2019, Microsoft Azure Files announced the general availability of Azure Files authentication with Azure Active Directory Domain Service (AD DS). By addressing both cost and administrative overhead, Azure Files with Azure AD DS Authentication is a premium solution for user profiles in the Windows Virtual Desktop service.

Best practices for Windows Virtual Desktop

Windows Virtual Desktop offers full control over size, type, and count of VMs that are being used by customers. To ensure your Windows Virtual Desktop environment follows best practices:

  • Azure Files storage account must be in the same region as the session host VMs.
  • Azure Files permissions should match permissions described in Requirements – Profile Containers.
  • Each host pool must be built of the same type and size VM based on the same master image.
  • Each host pool VM must be in the same resource group to aid management, scaling and updating.
  • For optimal performance, the storage solution and the FSLogix profile container should be in the same data center location.
  • The storage account containing the master image must be in the same region and subscription where the VMs are being provisioned.
Share:

administrator

Microsoft MVP & MCT | Azure Service Delivery Lead with over 12 years of experience in Microsoft solutions and Professional services, Leading the Azure team to help our customers to build successful Azure practices, Blogger, Speaker, and Community leader. Focus on Azure, Cloud Security, Modern Workspace, AVD, Infrastructure as Code, Endpoint Management, Office 365, EMS.

2 Comments

  • Parvez, September 9, 2020 @ 3:50 pm

    Thank You, Mahmoud. Document on leveraging Azure File for FSlogix whould be great. Buz have a File Server VM on Azure will cost more compared to AZ Files

    • Mahmoud A. ATALLAH, September 9, 2020 @ 6:06 pm

      Hi Parvez,

      Totally agree with you Fileserver compute will cost more compared azure files, but As you may know Azure Files was not globally available for all reigns specially for West Europe, that’s why i used fileserver while creating this blog, but i had to implement Azure Netapp Files for our customers instead 🙂 . BTW, i’m planing to create another blogpost about Azure Files with WVD as well as Azure NetApp Files with WVD

Comments are closed.