Create a profile container with Azure Files and Azure Active Directory
In this article, you'll learn how to create an Azure Files share to store FSLogix profiles that can be accessed by hybrid user identities authenticated with Azure Active Directory (Azure AD). Azure AD users can now access an Azure file share using Kerberos authentication. This configuration uses Azure AD to issue the necessary Kerberos tickets to access the file share with the industry-standard SMB protocol. Your end-users can access Azure file shares over the internet without requiring a line-of-sight to domain controllers from Hybrid Azure AD-joined and Azure AD-joined VMs.
This feature is currently supported in the Azure Public cloud.
Configure your Azure storage account and file share
To store your FSLogix profiles on an Azure file share:
Create an Azure Storage account if you don't already have one.
Your Azure Storage account can't authenticate with both Azure AD and a second method like Active Directory Domain Services (AD DS) or Azure AD DS. You can only use one authentication method.
Create an Azure Files share under your storage account to store your FSLogix profiles if you haven't already.
Enable Azure Active Directory Kerberos authentication on Azure Files to enable access from Azure AD-joined VMs.
- When configuring the directory and file-level permissions, review the recommended list of permissions for FSLogix profiles at Configure the storage permissions for profile containers.
- Without proper directory-level permissions in place, a user can delete the user profile or access the personal information of a different user. It's important to make sure users have proper permissions to prevent accidental deletion from happening.
Configure the session hosts
To access Azure file shares from an Azure AD-joined VM for FSLogix profiles, you must configure the session hosts. To configure session hosts:
Enable the Azure AD Kerberos functionality using one of the following methods.
- Configure this Intune Policy CSP and apply it to the session host: Kerberos/CloudKerberosTicketRetrievalEnabled
- Configure this Group policy on the session host:
Administrative Templates\System\Kerberos\Allow retrieving the Azure AD Kerberos Ticket Granting Ticket during logon
- Create the following registry value on the session host:
reg add HKLM\SYSTEM\CurrentControlSet\Control\Lsa\Kerberos\Parameters /v CloudKerberosTicketRetrievalEnabled /t REG_DWORD /d 1
When you use Azure AD with a roaming profile solution like FSLogix, the credential keys in Credential Manager must belong to the profile that's currently loading. This will let you load your profile on many different VMs instead of being limited to just one. To enable this setting, create a new registry value by running the following command:
reg add HKLM\Software\Policies\Microsoft\AzureADAccount /v LoadCredKeyFromProfile /t REG_DWORD /d 1
The session hosts don't need network line-of-sight to the domain controller.
Configure FSLogix on the session host
This section will show you how to configure a VM with FSLogix. You'll need to follow these instructions every time you configure a session host. There are several options available that ensure the registry keys are set on all session hosts. You can set these options in an image or configure a group policy.
To configure FSLogix:
Update or install FSLogix on your session host, if needed.
If the session host is created using the Azure Virtual Desktop service, FSLogix should already be pre-installed.
Follow the instructions in Configure profile container registry settings to create the Enabled and VHDLocations registry values. Set the value of VHDLocations to
Test your deployment
Once you've installed and configured FSLogix, you can test your deployment by signing in with a user account that's been assigned to an application group on the host pool. The user account you sign in with must have permission to use the file share.
If the user has signed in before, they'll have an existing local profile that the service will use during this session. To avoid creating a local profile, either create a new user account to use for tests or use the configuration methods described in Tutorial: Configure profile container to redirect user profiles to enable the DeleteLocalProfileWhenVHDShouldApply setting.
Finally, verify the profile created in Azure Files after the user has successfully signed in:
Open the Azure portal and sign in with an administrative account.
From the sidebar, select Storage accounts.
Select the storage account you configured for your session host pool.
From the sidebar, select File shares.
Select the file share you configured to store the profiles.
If everything's set up correctly, you should see a directory with a name that's formatted like this:
- To troubleshoot FSLogix, see this troubleshooting guide.
Submit and view feedback for