You are deploying a set of Azure Virtual Machines (VMs) that need to read configuration files from a shared Azure Storage account. To simplify access control, you want to create a managed identity as a standalone Azure resource that is shared across all the VMs and persists even if all the VMs are deleted. Which value should you specify for the type property in the identity section of the VM's Azure Resource Manager (ARM) template?
- ASystemAssigned
- UserAssignedAnswer
- CSystemAssigned, UserAssigned
- DNone
Answer
The correct property value is UserAssigned.
Setting the identity type to UserAssigned is correct because a user-assigned managed identity is created as a standalone Azure resource. This design allows it to be shared across multiple virtual machines in a scale set and ensures that the identity persists even if individual virtual machines are deleted or scaled down.
Step-by-Step Solution
Key Concept
Choosing between system-assigned and user-assigned managed identities based on lifecycle and sharing requirements.