Can a shared user-assigned identity let VM1 and VM2 access storage1?
Short answer
A Assigning a shared user-assigned managed identity to VM1 and VM2 and granting it an RBAC role on storage1 lets both VMs authenticate to the storage account.
Question
After you answer a question in this section, you will NOT be able to return. As a result, these questions do not appear on the Review Screen.
You have an Azure subscription that contains two virtual machines named VM1 and VM2. Each virtual machine has system-assigned managed identity enabled.
You have an Azure Storage account named storage1. Public access from all networks is enabled for storage1.
You need to ensure that VM1 and VM2 can access storage1.
Solution: You create a user-assigned managed identity, assign the identity to each virtual machine, and then add each managed identity to a role on storage1.
Does this meet the goal?
Key Takeaways
The exam tests whether you recognize that a user-assigned managed identity can be attached to multiple VMs and authorized on a storage account, while the common trap is assuming existing system-assigned identities make the solution invalid.
This SC-500 scenario asks whether assigning a shared user-assigned managed identity to VM1 and VM2, then granting that identity an RBAC role on storage1, satisfies the requirement that both VMs access storage1. The answer is yes, provided the role grants the required storage data-plane permissions.
Common mistake: A common mistake is answering No because VM1 and VM2 already have system-assigned identities; managed identities are additive, and a shared user-assigned identity with a storage RBAC role still grants both VMs access.
Expert Analysis
Why the Answer Is Correct
The requirement is only that VM1 and VM2 can access storage1, and the proposed solution gives both VMs a user-assigned managed identity that is then authorized on storage1 with an RBAC role. A user-assigned managed identity can be assigned to multiple Azure VMs, so both VM1 and VM2 can authenticate as that identity to Azure Storage. Since storage1 has public access enabled, network reachability is not the blocker; the role assignment supplies the needed authorization, assuming it grants the required storage data-plane permissions such as a Storage Blob Data role. Existing system-assigned identities are irrelevant and do not prevent adding a user-assigned identity.
Why the Other Options Are Wrong
The only other option is "No," which would be correct only if the solution failed to grant access. A No answer usually rests on the mistaken idea that the pre-existing system-assigned identities block a user-assigned identity, but managed identities are additive. Another mistaken basis is that a storage account role cannot grant data access, but Entra ID RBAC roles can authorize managed identities for Azure Storage data-plane operations. Therefore, No is not supported by the scenario.
Community Comment Notes
One commenter focuses on the exact goal wording, "You need to ensure that VM1 and VM2 can access storage1," and notes that public access from all networks is already enabled, so the goal is access rather than network isolation. Alphazeero1 answers Yes and states that "The existing system-assigned identities do not make this solution invalid," emphasizing that the role must grant the required storage data access rather than only management access. This aligns with the analysis that a shared user-assigned identity with an appropriate RBAC role on storage1 satisfies the requirement.
Official Reference
- https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/overview
- https://learn.microsoft.com/en-us/azure/storage/common/storage-auth-aad-rbac-portal
These links open the official vendor documentation in a new tab.
Exam Strategy
For yes/no solution questions, restate the goal literally before evaluating the steps; here the goal is access to storage1, not removal of public network access. Then check whether the identity can be attached to both VMs and whether the role assignment provides storage data-plane permissions.
Frequently Asked Questions
Why is the solution correct when VM1 and VM2 already have system-assigned managed identities?
Does the RBAC role on storage1 need to be a storage data-plane role such as Storage Blob Data Reader?
Discussion 2 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 2
-
[email protected] 👍 1 Answered AWhat is the goal? "You need to ensure that VM1 and VM2 can access storage1." Existing situation: - VM1 and VM2 both have system-assigned managed identities. - Public access from all networks is enabled for storage1. Suggested solution from the question: You create a user-assigned managed identity, assign the identity to each virtual machine, and then add each managed identity to a role on storage1. Does this solution achieve the goal? Yes. But at what cost? 1. It is recommended to use user-assigned managed identity if multiple VMs need to access the same resource because we can assign a single user-assigned managed identity to both VMs. 2. If public access from all networks is enabled, anyone can read the contents of storage1 already. So there is no need to assign a role.
-
Alphazeero1 👍 1 Answered AYes. A user-assigned managed identity can be shared by VM1 and VM2 and granted access to storage1 through an appropriate role assignment. The existing system-assigned identities do not make this solution invalid. Important: The role must grant the required storage data access, not merely management access. Managed identities authenticate through Microsoft Entra ID and receive permissions through Azure RBAC. Exam tip: The question asks whether the solution works, not whether it is the simplest. Using the existing identities could avoid creating another identity, but the proposed solution still meets the goal.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All SC-500 Questions
Access 100 questions with complete answers and detailed explanations.
View Full SC-500 Practice Test →