How Should App1 Access Azure Files Without Storage Account Keys?
You have an Azure Storage account named storage1 that contains Azure Files shares. You have an application named App1 that uses a system-assigned managed identity to access the shares. Administrators access the shares by using storage account keys. You need to ensure that App1 access the shares without using the storage account keys. What should you do on storage1?
Community Insight
This question tests the difference between authenticating with a managed identity and authorizing that identity on Azure Files; the trap is disabling shared key access and breaking administrators who still use storage account keys.
Azure Files data-plane access for a managed identity is granted through an Azure RBAC role assignment, not by disabling shared key access. The page confirms that assigning Storage File Data Privileged Reader to App1's system-assigned identity lets it authenticate without storage account keys while admins keep key-based access.
Many candidates choose B and disable shared key access, but that blocks the administrators who still need storage account keys and does not by itself grant App1 data-plane permissions.
Community Discussion (8 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
App1 already has a system-assigned managed identity, so authentication to Microsoft Entra ID is in place; what is missing is authorization to the Azure Files data plane. Assigning Storage File Data Privileged Reader to that identity grants the required read access to the file share through Azure RBAC, and the app can obtain an OAuth token instead of using a storage account key. This is the least-disruptive fix because administrators can continue using storage account keys as described. As scruzer noted, "being authenticated isn't enough" — the managed identity needs an explicit role assignment before it has any file data access.Why the Other Options Are Wrong
Option A stores and rotates keys in Azure Key Vault, but App1 would still authenticate with a storage account key, so it does not meet the requirement. Option B disables shared key authorization and would indeed block key use, but it also blocks the administrators who still access shares with storage account keys and is broader than necessary. Option C changes the Azure portal's default authorization method for browsing files; it is a portal convenience setting, not a data-plane RBAC grant for App1. The community was split, but ash_niyaz's point that "disabling key access entirely would break that requirement" matches the scenario's explicit administrator constraint.Community Comment Notes
Eltooth, scruzer and Greens all focus on the missing data-plane role for the managed identity, with Greens noting that Azure Files OAuth access uses the "Privileged" file data roles. rameshms85 and bferdan prefer B to force keyless access, but that reasoning treats enforcement as the goal and overlooks the administrators who still rely on keys. chips and ash_niyaz make the decisive observation that key access must remain available for administrators, so the correct action is to authorize App1's identity rather than disable shared keys. The vote split is a useful reminder that the source key is not authority; the scenario wording decides the answer.Official Reference
Exam Strategy
Read what must keep working: admins still use storage account keys, so avoid any option that disables shared key access. Then focus on the missing authorization step for App1's managed identity and assign the appropriate Azure Files data-plane RBAC role.
Frequently Asked Questions
Why not disable storage account key access on storage1?
Administrators still access the shares with storage account keys, so disabling shared key access would break their access unless they first migrate to Microsoft Entra ID.
Which Azure RBAC role lets App1's managed identity read Azure Files?
Storage File Data Privileged Reader grants read access to Azure Files data; assign it to App1's managed identity at the share or storage-account scope.
Related Analysis
Practice All SC-500 Questions
Access 100 questions with complete answers and detailed explanations.
View Full SC-500 Practice Test →