{"id":3385,"date":"2023-08-25T14:30:22","date_gmt":"2023-08-25T19:30:22","guid":{"rendered":"https:\/\/microsoftgeek.com\/?p=3385"},"modified":"2023-08-25T14:31:01","modified_gmt":"2023-08-25T19:31:01","slug":"setting-up-fslogix-with-azure-virtual-desktop","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=3385","title":{"rendered":"Setting up FSLogix with Azure Virtual Desktop"},"content":{"rendered":"\n<p>Implementing FSLogix within your Azure Virtual Desktop environment provides an optimized experience for your end users. For example, a non-persistent Pooled Windows AVD host pool will allow the user to have a decreased sign-in time because user profiles are stored in the VHD(X) file that gets mounted every time the user signs into the session host.<\/p>\n\n\n\n<p>You can implement this in various ways, but I will show you how to do this with Azure Files in this blog. Azure Files is an Azure service that allows you to scale it on-demand, and it doesn\u2019t depend on a VM running at all times like having a typical Windows File Server.<\/p>\n\n\n\n<p>Below is a quick summary of deploying an FSLogix Profile container using Azure Files.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a&nbsp;<strong>Storage Account<\/strong>&nbsp;with a&nbsp;<strong>Private Endpoint<\/strong><\/li>\n\n\n\n<li>Create a&nbsp;<strong>File Share<\/strong>&nbsp;in the storage account<\/li>\n\n\n\n<li>Enable&nbsp;<strong>Active Directory Authentication<\/strong>&nbsp;on the storage account<\/li>\n\n\n\n<li>Configure&nbsp;<strong>access control<\/strong>&nbsp;in the storage account and&nbsp;<strong>NTFS<\/strong>&nbsp;permissions of the Azure File Share<\/li>\n\n\n\n<li>Install&nbsp;<strong>FSLogix<\/strong>&nbsp;in your&nbsp;<strong>AVD host pool<\/strong><\/li>\n\n\n\n<li>Test the results.<\/li>\n<\/ol>\n\n\n\n<p><strong>Note:<\/strong><strong>&nbsp;<\/strong>Depending on your setup in Azure, you can configure FSLogix to work via a GPO. In this blog, I will be deploying a basic AVD setup, and I plan to go into further detail about FSLogix and GPO configurations.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Create a new resource group to store resources.<\/h2>\n\n\n\n<p>Login into your Azure Portal Account to perform the steps provided below.<\/p>\n\n\n\n<p>Once you have logged into your Azure Portal, search for&nbsp;<strong>Resource Groups, click<\/strong>&nbsp;<strong>+ Create,&nbsp;<\/strong>and then fill in the required information. Once you are finished entering the details, click&nbsp;<strong>Review + create<\/strong>.<\/p>\n\n\n\n<p><strong>Note:&nbsp;<\/strong>With any resource group I create, I like to follow Microsoft\u2019s naming convention recommendations in the Microsoft doc below.<\/p>\n\n\n\n<p><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/cloud-adoption-framework\/ready\/azure-best-practices\/resource-abbreviations\" target=\"_blank\" rel=\"noreferrer noopener\">Recommended abbreviations for Azure resource types \u2013 Cloud Adoption Framework | Microsoft Docs<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-project-details-image1.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Details\" class=\"wp-image-240903\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Create a Storage account<\/h2>\n\n\n\n<p>Once your resource group is created, create a new storage account. You can search for&nbsp;<strong>Storage Account&nbsp;<\/strong>or click it on the left-hand resource blade.<\/p>\n\n\n\n<p>Select your&nbsp;<strong>Subscription&nbsp;<\/strong>and&nbsp;<strong>resource group&nbsp;<\/strong>that you just created, and if you haven\u2019t made one, choose the option to create a new one. Next, give the storage account a name; it must be globally unique and select your Azure location.<\/p>\n\n\n\n<p>Click on the&nbsp;<strong>Advanced tab&nbsp;<\/strong>and go through any additional settings you want to configure for this storage account, but we will use the default options for this example. Once finished reviewing the Advanced settings, click on the&nbsp;<strong>Networking&nbsp;<\/strong>tab.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-create-new-storage-account-image2.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Create A New Storage Account\" class=\"wp-image-240897\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-security-image3.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Security\" class=\"wp-image-240905\"\/><\/figure>\n\n\n\n<p>Select the preferred&nbsp;<strong>Network connectivity&nbsp;<\/strong>you want to use; in this example, I will leave the default settings since this is a lab environment. In a real-world scenario, you will want to use a Private Endpoint connection or set specific access from selected virtual networks or IP addresses. I will later cover Private Endpoint configurations with storage accounts in a later blog.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-network-connectivity-image4.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Network Connectivity\" class=\"wp-image-240902\"\/><\/figure>\n\n\n\n<p>Continue through the next tab,&nbsp;<strong>Recovery,<\/strong>&nbsp;and in my example, I am using the default settings.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-recovery-image5.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Recovery\" class=\"wp-image-240904\"\/><\/figure>\n\n\n\n<p>Once finished, click on&nbsp;<strong>Encryption,&nbsp;<\/strong>and in this example, I am using the default settings.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-encryption-image6.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Encryption\" class=\"wp-image-240900\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Create a File Share<\/h2>\n\n\n\n<p>Go to your newly created Storage account, click&nbsp;<strong>+ File Share,<\/strong>&nbsp;and fill in the required fields. For this file share, I will use the&nbsp;<strong>Hot&nbsp;<\/strong>tier for Storage.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-create-a-file-share-image7-1024x290.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Create A File Share\" class=\"wp-image-240896\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-name-file-share-tier-hot-image8.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Name File Share Tier Hot\" class=\"wp-image-240901\"\/><\/figure>\n\n\n\n<p>Once the new file share is created, you can use the default quota that is set to 5 TiB or edit the quota to a specific amount. For my example, I will use 100 GB.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-edit-quota-image9-1024x263.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Edit Quota\" class=\"wp-image-240898\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Enable Active Directory authentication on the Storage account.<\/h2>\n\n\n\n<p>You will need to log in to a VM where you can connect to the Storage account to be able to set permissions. In my example, I have set up a domain controller in Azure with my domain, so I can access Active Directory Users and Computers to complete the steps below. Download the AzFilesHybrid PowerShell module from&nbsp;<a href=\"https:\/\/github.com\/Azure-Samples\/azure-files-samples\/releases\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>. After downloading, unzip the file to a folder like c:\\AzFilesHybrid.<\/p>\n\n\n\n<p>Start an elevated PowerShell prompt and run the following commands:<\/p>\n\n\n\n<p><code>Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser<\/code><\/p>\n\n\n\n<p>Install NuGet by running the following command:<\/p>\n\n\n\n<p><code>Install-PackageProvider -Name NuGet -Force.<\/code><\/p>\n\n\n\n<p>Within the PowerShell prompt, navigate to c:\\AzFilesHybrid, and run the following command:<\/p>\n\n\n\n<p><code>Import-Module -Name .\\AzFilesHybrid.psd1<\/code><\/p>\n\n\n\n<p>Type&nbsp;<strong>A&nbsp;<\/strong>for&nbsp;<strong>Yes to All<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-elevated-powershell-image10.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Elevated PowerShell\" class=\"wp-image-240899\"\/><\/figure>\n\n\n\n<p>Connect to Azure via PowerShell by running the following command:<\/p>\n\n\n\n<p><code>Connect-AzAccount<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-connect-to-azure-via-powershell-image11-1024x543.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Connect to Azure via PowerShell\" class=\"wp-image-240911\"\/><\/figure>\n\n\n\n<p>Select an Azure Subscription by running the following command:<code>Select-AzSubscription -SubscriptionName \"&lt;your subscription name&gt;\"<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-subscription-name-image12.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Subscription Name\" class=\"wp-image-240934\"\/><\/figure>\n\n\n\n<p>To connect the Storage account with Active Directory, run the following command:<\/p>\n\n\n\n<p><code>join-AzStorageaccountForAuth -ResourceGroupName \"&lt;Resource Group Name&gt;\" -Name \"&lt;Storage Account Name&gt;\" -DomainAccountType \"ComputerAccount\" -OrganizationalUnitDistinguishedName \"&lt;OU Distinguished Name&gt;\"<\/code><\/p>\n\n\n\n<p><strong>My example will be<\/strong><\/p>\n\n\n\n<p><code>join-AzStorageaccountForAuth -ResourceGroupName \"rg-avd-test\" -Name \"fslogixavdtest1\" -DomainAccountType \"ComputerAccount\" -OrganizationalUnitDistinguishedName \"CN=Computers,DC=virtual-dba,DC=com\"<\/code><\/p>\n\n\n\n<p>If you are having issues finding the Organizational Unit Distinguished Name go into&nbsp;<strong>View \u2013 Advanced Features \u2013 Active Directory Users and Computers \u2013 Attribute Editor \u2013 distingushedName<\/strong><\/p>\n\n\n\n<p>I am going to connect this storage account into the Computers OU. You can pick any OU that works for you.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-organizational-unit-distinguished-name-image13.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Organizational Unit Distinguished Name\" class=\"wp-image-240924\"\/><\/figure>\n\n\n\n<p>After you have your script ready, run the above command, and your results should show below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-storage-account-image14.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Storage Account\" class=\"wp-image-240929\"\/><\/figure>\n\n\n\n<p>Close the PowerShell prompt and check in&nbsp;<strong>Active Directory Users and Computers<\/strong>&nbsp;if it now shows a computer account object.<\/p>\n\n\n\n<p>In Azure, if you go back to the&nbsp;<strong>Storage account \u2013 File shares,<\/strong>&nbsp;you will see that it shows&nbsp;<strong>Active Directory<\/strong>&nbsp;configured.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-active-directory-configured-image15-1024x365.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Active Directory Configured\" class=\"wp-image-240913\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Configure Storage account Access control (IAM)<\/h2>\n\n\n\n<p>Permission will now be granted to the Storage account; there must be an Administrator or a group of administrators with the&nbsp;<strong>Storage File Data SMB Elevated Contributor&nbsp;<\/strong>rights to set NTFS permissions on the file share. Next to the Administrator, all users that will utilize the FSLogix profile container need to have&nbsp;<strong>Storage File SMB Share Contributor&nbsp;<\/strong>rights.<\/p>\n\n\n\n<p>To make things cleaner, I created two&nbsp;<strong>AD Security groups&nbsp;<\/strong>and have added my Administrator accounts to the&nbsp;<strong>FSLogix Share Elevated Contributor&nbsp;<\/strong>security group<strong>&nbsp;<\/strong>and my regular user test accounts to the&nbsp;<strong>FSLogix Share Contributor&nbsp;<\/strong>security group.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-security-groups-image16.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Security Groups\" class=\"wp-image-240925\"\/><\/figure>\n\n\n\n<p>Navigate to the&nbsp;<strong>Storage Account&nbsp;<\/strong>within the Azure portal and open the&nbsp;<strong>Access control (IAM)&nbsp;<\/strong>blade and click&nbsp;<strong>Add role assignment.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-access-control-image17-1024x445.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Access Control\" class=\"wp-image-240912\"\/><\/figure>\n\n\n\n<p>In the search, find the role&nbsp;<strong>Storage File Data SMB Share Elevated Contributor&nbsp;<\/strong>and then add the security group or users you have created and then do the same for&nbsp;<strong>Storage File Data SMB Share Contributor<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-storage-file-data-smb-elevated-contributor-image18-1024x386.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Storage File Data SMB Elevated Contributor\" class=\"wp-image-240932\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-storage-file-data-smb-share-contributor-image19.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Storage File Data SMB Share Contributor\" class=\"wp-image-240933\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6: Configure NTFS rights on the Azure File Share<\/h2>\n\n\n\n<p>We will now need to set rights on the NTFS level, but we need to obtain the full UNC path of the file share. You can get that by going to the&nbsp;<strong>Storage account \u2013 File share \u2013 \u201cName of File share\u201d \u2013 properties.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-storage-account-properties-image20.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Storage Account Properties\" class=\"wp-image-240930\"\/><\/figure>\n\n\n\n<p>Open up a text editor of your choice and remove the&nbsp;<strong>\u201chttps:\/\/\u201d<\/strong>&nbsp;and replace it like the below, and then open up File Explorer and map the file share.<\/p>\n\n\n\n<p><code>\\\\fslogixavdtest1.file.core.windows.net\\fslogixprofiles<\/code><\/p>\n\n\n\n<p>In&nbsp;<strong>File Explorer,&nbsp;<\/strong>click on&nbsp;<strong>Properties,&nbsp;<\/strong>the&nbsp;<strong>Security&nbsp;<\/strong>tab, and&nbsp;<strong>Advanced.&nbsp;<\/strong>I have added the two security groups I created earlier<strong>&nbsp;FSLogix Share Contributors<\/strong>&nbsp;(this will be my FSLogix Users for AVD) with&nbsp;<strong>modified&nbsp;<\/strong>access and&nbsp;<strong>FSLogix Share Elevated Contributors&nbsp;<\/strong>with&nbsp;<strong>Full control&nbsp;<\/strong>access.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-contributor-access-image21.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Contributor Access\" class=\"wp-image-240916\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 7: Create your Azure Virtual Desktop Session Hosts<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-session-hosts-image22.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Session Hosts\" class=\"wp-image-240926\"\/><\/figure>\n\n\n\n<p>Fill out the required fields under the&nbsp;<strong>Basic&nbsp;<\/strong>tab. I have provided a screenshot of my configuration. For my example, I am using&nbsp;<strong>Pooled&nbsp;<\/strong>and&nbsp;<strong>Breadth-first.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-create-host-pool-image23.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Create Host Pool\" class=\"wp-image-240917\"\/><\/figure>\n\n\n\n<p>On the&nbsp;<strong>Virtual Machines&nbsp;<\/strong>tab, you can decide if you want to have the VMs deployed now or if you can do it later. In my example, I will configure the VMs to be deployed. In a normal Azure Virtual Desktop deployment, I would set up a master image and use that to deploy everything. I will do a future blog on deploying AVD with a master image. The image you will want to use is&nbsp;<strong>Windows 10 or Windows 11 Multi-session.&nbsp;<\/strong>For my example, I chose&nbsp;<strong>Windows 11 Multi-session.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-virtual-machines-image24.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Virtual Machines\" class=\"wp-image-240936\"\/><\/figure>\n\n\n\n<p>Under the&nbsp;<strong>Network and security&nbsp;<\/strong>tab, fill out the required information. In my example, I will have the deployment domain join the session hosts to my test domain. I also have set an&nbsp;<strong>Organizational Unit path<\/strong>&nbsp;where the computer objects will be stored in Active Directory. This AVD deployment will have public access VMs since this is a lab environment, but in a production deployment, you should have this locked down without public access.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-network-and-security-image25.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Network and Security\" class=\"wp-image-240923\"\/><\/figure>\n\n\n\n<p>On the next tab,&nbsp;<strong>Workspace&nbsp;<\/strong>decides if you want to have a desktop app group. For my example, I am going to create this new Workspace. So go ahead, tab the rest of the settings, and click&nbsp;<strong>Review and create<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-workspace-image26.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Workspace\" class=\"wp-image-240937\"\/><\/figure>\n\n\n\n<p>Confirm deployment finished.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-active-directory-image27.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Active Directory\" class=\"wp-image-240914\"\/><\/figure>\n\n\n\n<p>Active Directory<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 8: Install FSLogix Profile Container in your AVD host pool.<\/h2>\n\n\n\n<p>In my example, I deployed two session hosts; however, it is better practice to deploy this using a master\/gold image. As I mentioned, I plan to do a future blog using a master\/gold image with AVD. If you don\u2019t have a master\/gold image, you will have to log in to your session host VMs and manually download the latest FSLogix software.<\/p>\n\n\n\n<p>Next, navigate to the resource group where your session hosts live and RDP into the AVD session VM. My example session hosts are domain joined with my lab domain configuration. This configuration will work the same if you are a hybrid setup with native Domain Controllers in Azure. I downloaded the FSLogix software and copied and pasted it to my two example session hosts.<\/p>\n\n\n\n<p>Once you have moved the zipped folder over to the session hosts, extract the package, navigate to X64 \u2013 Release, and run FSLogixAppsSetup.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-install-image28-1024x381.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Install\" class=\"wp-image-240921\"\/><\/figure>\n\n\n\n<p>Click&nbsp;<strong>Install.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-install-accept-terms-image29.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Install Accept Terms\" class=\"wp-image-240920\"\/><\/figure>\n\n\n\n<p>Once the installation is finished, click&nbsp;<strong>restart.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-setup-successful-image30.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Setup Successful\" class=\"wp-image-240927\"\/><\/figure>\n\n\n\n<p>Once the session host, VM has restarted, RDP back into and open up&nbsp;<strong>Registry Editor<\/strong>&nbsp;and navigate to&nbsp;<strong>HKEY_LOCAL_MACHINE\\Software\\FSLogix\\Profiles.&nbsp;<\/strong>Right-click on<strong>&nbsp;Profiles<\/strong>&nbsp;and create a&nbsp;<strong>\u201cDWORD (32-bit) Value\u201d named \u201cEnable\u201d with its value set to 1.&nbsp;<\/strong>You then need to set the location for the VHD encased profile data. Right-click on<strong>&nbsp;Profiles&nbsp;<\/strong>again, create a&nbsp;<strong>\u201cMulti-String Value\u201d<\/strong>&nbsp;named&nbsp;<strong>\u201cVHDLocations,\u201d<\/strong>&nbsp;and change it to your file server UNC path.<\/p>\n\n\n\n<p>If you see an error message when you hit enter from entering the \u201cMult-String Value,\u201d just click&nbsp;<strong>OK<\/strong>. This is where the permissions that we set up for the FSLogix users will come into place. Once you have finished, restart the session host VM to ensure all Registry settings changed get configured.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-multi-string-value-error-image31.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Multi String Value Error\" class=\"wp-image-240922\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-flipflopprofiledirectoryname-image32-1024x469.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop FlipFlopProfileDirectoryName\" class=\"wp-image-240919\"\/><\/figure>\n\n\n\n<p>One additional registry configuration I like to make is to add&nbsp;<strong>FlipFlopProfileDirectoryName.&nbsp;<\/strong>This is one of my personal preferences, but it will present things cleaner with the FSLogix profiles.<strong>&nbsp;<\/strong>I have provided a link below with additional registry configuration settings you can add for your FSLogix setup.<\/p>\n\n\n\n<p><a href=\"https:\/\/learn.microsoft.com\/en-us\/fslogix\/profile-container-configuration-reference\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>FSLogix Profile Container registry configuration settings \u2013 FSLogix | Microsoft Learn<\/strong><\/a><\/p>\n\n\n\n<p><strong>FlipFlopProfileDirectoryName<br>Type DWORD<br>Default Value 0<br>Data values and use<br>When set to \u20181\u2019, the SID folder is created as \u201c%username%%sid%\u201d instead of the default<br>\u201c%sid%%username%.\u201d This setting has the same effect as setting SIDDirNamePattern = \u201c%username%%sid%\u201d and SIDDirNameMatch = \u201c%username%%sid%\u201d.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 9: Test the results<\/h2>\n\n\n\n<p>In my test, I have created three users in my Azure portal, and I will go ahead and sign onto one of the session hosts via the link Microsoft provides in this doc below.<\/p>\n\n\n\n<p><a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/virtual-desktop\/user-documentation\/connect-web\" target=\"_blank\" rel=\"noreferrer noopener\">Connect Azure Virtual Desktop with the web client \u2013 Azure | Microsoft Learn<\/a>.<\/p>\n\n\n\n<p>For the example, I used<\/p>\n\n\n\n<p><a href=\"https:\/\/rdweb.wvd.microsoft.com\/arm\/webclient\/index.html\">https:\/\/rdweb.wvd.microsoft.com\/arm\/webclient\/index.html<\/a><\/p>\n\n\n\n<p>If you are having issues where your AVD users aren\u2019t able to connect to any session hosts, there are two roles that the users need to be assigned to, which are&nbsp;<strong>Desktop Virtualization User &amp; Virtual Machine User Login.<\/strong><\/p>\n\n\n\n<p>I signed as my test users&nbsp;<strong>avdtest1<\/strong>,&nbsp;<strong>avdtest2<\/strong>, and&nbsp;<strong>avdtest3<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-test.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Test\" class=\"wp-image-240941\"\/><\/figure>\n\n\n\n<p>FSLogix App Services will display.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-display-image34-1024x545.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Display\" class=\"wp-image-240918\"\/><\/figure>\n\n\n\n<p>I went back to my storage account, and the three test users I used, profile directories, are showing up in my storage account.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-storage-account-test-users-showing-image35-1024x196.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Storage Account Test Users Showing\" class=\"wp-image-240931\"\/><\/figure>\n\n\n\n<p>In the session host VMs, I went into&nbsp;<strong>Computer Management&nbsp;<\/strong>the user profiles are showing up.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-computer-management-image36-1024x199.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Computer Management\" class=\"wp-image-240915\"\/><\/figure>\n\n\n\n<p>Once I signed off the session host VMs the disk profiles disappeared as expected.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/setting-up-fslogix-with-azure-virtual-desktop-sign-off-image37-1024x341.png\" alt=\"Setting up FSlogix with Azure Virtual Desktop Sign Off\" class=\"wp-image-240928\"\/><\/figure>\n\n\n\n<p>This was a simple guide on how you can create a quick test environment if you want to implement FSLogix with Azure Virtual Desktop.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Implementing FSLogix within your Azure Virtual Desktop environment provides an optimized experience for your end users. For example, a non-persistent Pooled Windows AVD host pool will allow the user to have a decreased sign-in time because user profiles are stored in the VHD(X) file that gets mounted every time the user signs into the session [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[69,35],"tags":[],"class_list":["post-3385","post","type-post","status-publish","format-standard","hentry","category-azure","category-cloud-computing"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/3385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3385"}],"version-history":[{"count":2,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/3385\/revisions"}],"predecessor-version":[{"id":3387,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/3385\/revisions\/3387"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}