Create a profile container with Azure NetApp Files and AD DS
We recommend using FSLogix profile containers as a user profile solution for the Azure Virtual Desktop service. FSLogix profile containers store a complete user profile in a single container and are designed to roam profiles in non-persistent remote computing environments like Azure Virtual Desktop. When you sign in, the container dynamically attaches to the computing environment using a locally supported virtual hard disk (VHD) and Hyper-V virtual hard disk (VHDX). These advanced filter-driver technologies allow the user profile to be immediately available and appear in the system exactly like a local user profile. To learn more about FSLogix profile containers, see FSLogix profile containers and Azure files.
You can create FSLogix profile containers using Azure NetApp Files, an easy-to-use Azure native platform service that helps customers quickly and reliably provision enterprise-grade SMB volumes for their Azure Virtual Desktop environments. To learn more about Azure NetApp Files, see What is Azure NetApp Files?
This guide will show you how to set up an Azure NetApp Files account and create FSLogix profile containers in Azure Virtual Desktop.
This article assumes you already have host pools set up and grouped into one or more tenants in your Azure Virtual Desktop environment. To learn how to set up tenants, see Create a tenant in Azure Virtual Desktop and our Tech Community blog post.
The instructions in this guide are specifically for Azure Virtual Desktop users. If you're looking for more general guidance for how to set up Azure NetApp Files and create FSLogix profile containers outside of Azure Virtual Desktop, see the Set up Azure NetApp Files and create an NFS volume quickstart.
This article doesn't cover best practices for securing access to the Azure NetApp Files share.
If you're looking for comparison material about the different FSLogix Profile Container storage options on Azure, see Storage options for FSLogix profile containers.
Before you can create an FSLogix profile container for a host pool, you must:
- Set up and configure Azure Virtual Desktop
- Provision a Azure Virtual Desktop host pool
Set up your Azure NetApp Files account
To get started, you need to set up an Azure NetApp Files account.
Sign in to the Azure portal. Make sure your account has contributor or administrator permissions.
Select the Azure Cloud Shell icon to the right of the search bar to open Azure Cloud Shell.
Once Azure Cloud Shell is open, select PowerShell.
If this is your first time using Azure Cloud Shell, create a storage account in the same subscription you keep your Azure NetApp Files and Azure Virtual Desktop.
Once Azure Cloud Shell loads, run the following two cmdlets.
az account set --subscription <subscriptionID>
az provider register --namespace Microsoft.NetApp --wait
In the left side of the window, select All services. Enter Azure NetApp Files into the search box that appears at the top of the menu.
Select Azure NetApp Files in the search results, then select Create.
Select the Add button.
When the New NetApp account tab opens, enter the following values:
- For Name, enter your NetApp account name.
- For Subscription, select the subscription for the storage account you set up in step 4 from the drop-down menu.
- For Resource group, either select an existing resource group from the drop-down menu or create a new one by selecting Create new.
- For Location, select the region for your NetApp account from the drop-down menu. This region must be the same region as your session host VMs.
Azure NetApp Files currently doesn't support mounting of a volume across regions.
When you're finished, select Create to create your NetApp account.
Create a capacity pool
Next, create a new capacity pool:
Go to the Azure NetApp Files menu and select your new account.
In your account menu, select Capacity pools under Storage service.
Select Add pool.
When the New capacity pool tab opens, enter the following values:
- For Name, enter a name for the new capacity pool.
- For Service level, select your desired value from the drop-down menu. We recommend Premium for most environments.
The Premium setting provides the minimum throughput available for a Premium Service level, which is 256 MBps. You may need to adjust this throughput for a production environment. Final throughput is based on the relationship described in Throughput limits.
- For Size (TiB), enter the capacity pool size that best fits your needs. The minimum size is 4 TiB.
When you're finished, select OK.
Join an Active Directory connection
After that, you need to join an Active Directory connection.
Select Active Directory connections in the menu on the left side of the page, then select the Join button to open the Join Active Directory page.
Enter the following values in the Join Active Directory page to join a connection:
- For Primary DNS, enter the IP address of the DNS server in your environment that can resolve the domain name.
- For Domain, enter your fully qualified domain name (FQDN).
- For SMB Server (Computer Account) Prefix, enter the string you want to append to the computer account name.
- For Username, enter the name of the account with permissions to perform domain join.
- For Password, enter the account's password.
Create a new volume
Next, you'll need to create a new volume.
Select Volumes, then select Add volume.
When the Create a volume tab opens, enter the following values:
- For Volume name, enter a name for the new volume.
- For Capacity pool, select the capacity pool you just created from the drop-down menu.
- For Quota (GiB), enter the volume size appropriate for your environment.
- For Virtual network, select an existing virtual network that has connectivity to the domain controller from the drop-down menu.
- Under Subnet, select Create new. Keep in mind that this subnet will be delegated to Azure NetApp Files.
Select Next: Protocol >> to open the Protocol tab and configure your volume access parameters.
Configure volume access parameters
After you create the volume, configure the volume access parameters.
Select SMB as the protocol type.
Under Configuration in the Active Directory drop-down menu, select the same directory that you originally connected in Join an Active Directory connection. Keep in mind that there's a limit of one Active Directory per subscription.
In the Share name text box, enter the name of the share used by the session host pool and its users.
Select Review + create at the bottom of the page. This opens the validation page. After your volume is validated successfully, select Create.
At this point, the new volume will start to deploy. Once deployment is complete, you can use the Azure NetApp Files share.
To see the mount path, select Go to resource and look for it in the Overview tab.
Configure FSLogix on session host virtual machines (VMs)
This section is based on Create a profile container for a host pool using a file share.
Download the FSLogix agent .zip file while you're still remoted in the session host VM.
Unzip the downloaded file.
In the file, go to x64 > Releases and run FSLogixAppsSetup.exe. The installation menu will open.
If you have a product key, enter it in the Product Key text box.
Select the check box next to I agree to the license terms and conditions.
Navigate to C:\Program Files\FSLogix\Apps to confirm the agent installed.
From the Start menu, run RegEdit as administrator.
Navigate to Computer\HKEY_LOCAL_MACHINE\software\FSLogix.
Create a key named Profiles.
Create a value named Enabled with a REG_DWORD type set to a data value of 1.
Create a value named VHDLocations with a Multi-String type and set its data value to the URI for the Azure NetApp Files share.
Create a value named DeleteLocalProfileWhenVHDShouldApply with a DWORD value of 1 to avoid problems with existing local profiles before you sign in.
Be careful when creating the DeleteLocalProfileWhenVHDShouldApply value. When the FSLogix Profiles system determines a user should have an FSLogix profile, but a local profile already exists, Profile Container will permanently delete the local profile. The user will then be signed in with the new FSLogix profile.
Assign users to session host
Open PowerShell ISE as administrator and sign in to Azure Virtual Desktop.
Run the following cmdlets:
Import-Module Microsoft.RdInfra.RdPowershell # (Optional) Install-Module Microsoft.RdInfra.RdPowershell $brokerurl = "https://rdbroker.wvd.microsoft.com" Add-RdsAccount -DeploymentUrl $brokerurl
When prompted for credentials, enter the credentials for the user with the Tenant Creator or RDS Owner/RDS Contributor roles on the Azure Virtual Desktop tenant.
Run the following cmdlets to assign a user to a Remote Desktop group:
$wvdTenant = "<your-wvd-tenant>" $hostPool = "<wvd-pool>" $appGroup = "Desktop Application Group" $user = "<user-principal>" Add-RdsAppGroupUser $wvdTenant $hostPool $appGroup $user
Make sure users can access the Azure NetApp File share
Open your internet browser and go to https://rdweb.wvd.microsoft.com/arm/webclient.
Sign in with the credentials of a user assigned to the Remote Desktop group.
Once you've established the user session, sign in to the Azure portal with an administrative account.
Open Azure NetApp Files, select your Azure NetApp Files account, and then select Volumes. Once the Volumes menu opens, select the corresponding volume.
Go to the Overview tab and confirm that the FSLogix profile container is using space.
Connect directly to any VM part of the host pool using Remote Desktop and open the File Explorer. Then navigate to the Mount path (in the following example, the mount path is \\anf-SMB-3863.gt1107.onmicrosoft.com\anf-VOL).
Within this folder, there should be a profile VHD (or VHDX) like the one in the following example.
You can use FSLogix profile containers to set up a user profile share. To learn how to create user profile shares with your new containers, see Create a profile container for a host pool using a file share.
You can also create an Azure Files file share to store your FSLogix profile in. To learn more, see Create an Azure Files file share with a domain controller.