Give Session Hosts Minimal Access to FSLogix Storage
Short answer
C Enable a system-assigned managed identity on each session host and grant it a narrowly scoped role on account1 for the FSLogix profile containers.
Question
You plan to deploy an Azure Virtual Desktop host pool that will contain multiple session hosts and use FSLogix profile containers. The profile containers will be stored in account1.
You need to provide the session hosts with access to account1. The solution must minimize the number of permissions granted to each session host.
What should you use?
Key Takeaways
It tests the choice between distributing secrets (SAS, access keys, user accounts) and using a resource's own identity — the trap is thinking an expiring SAS is the most minimal option.
This AZ-140 question tests how Azure Virtual Desktop session hosts should authenticate to the storage account holding FSLogix profile containers. The answer is (C): use a managed identity so each host authenticates without stored secrets while the role assignment stays scoped to account1.
Common mistake: Option B, a shared access signature, looks minimal because it expires, but an SAS must be minted from an account key and copied to every session host, distributing a secret and requiring rotation — exactly what the question asks to avoid.
Expert Analysis
The Boundary Being Tested
This question turns on the line between an identity that a resource already has and a credential you hand to a resource. Option A (a Microsoft Entra user account) and option D (an access key) both put a secret into the picture: a user account would need an interactive sign-in or a stored password on every session host, and an access key is a long-lived, highly privileged account-level secret that must be copied to and rotated on each host. Option B (a shared access signature) is a delegated, time-bound token — but an SAS is still something you generate, distribute and refresh, and granting account-level access would be broader than needed. None of these minimise permissions per host.
Why Option C Wins
Option C, a managed identity, is the identity of the session host virtual machines themselves. With a system-assigned managed identity enabled on each VM, the host authenticates to storage using its Entra service principal and a Microsoft Entra token — no password, key or SAS is stored anywhere. Role assignments are then scoped tightly: grant Storage Blob Data Contributor (or Reader plus a narrower data role) on account1 or on the FSLogix container share specifically, and only to that identity. That satisfies both requirements at once: access to account1, and the minimum number of permissions per host, because the role assignment can be scoped to the exact container rather than to the whole account or subscription.
Where Candidates Slip
The trap is that a SAS looks "minimal" because it expires — but it still requires an account key to mint, spreads a secret across every session host, and does not scale when hosts are added or replaced. Managed identities also support automatic rotation and work naturally with FSLogix containers stored on Azure Files accessed over SMB with Entra-joined hosts, which is the pattern this host pool scenario implies.
Exam Strategy
Read the constraint first: 'minimise the number of permissions granted to each session host' means eliminating per-host secrets. Eliminate any option that requires copying, minting or rotating a credential onto the hosts — access keys and SAS both do this, and a user account adds interactive auth. What remains is the identity already attached to the VM, then confirm the storage role is scoped to the container rather than the whole account.
Frequently Asked Questions
Why not use an access key or SAS for FSLogix containers on account1?
Which role should the managed identity get on account1?
Does this change if the session hosts are Entra joined?
Community Votes
100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 1 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 1
-
GarrethM 👍 1 Answered CCorrect answer: C. A managed identity, A managed identity allows Azure resources, such as Azure Virtual Desktop session hosts, to authenticate to other Azure services without storing credentials.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All AZ-140 Questions
Access 64 questions with complete answers and detailed explanations.
View Full AZ-140 Practice Test →