You are designing a deployment architecture for a set of five independent Azure App Service web apps. Each web app must access a shared Azure Key Vault to retrieve common application settings. Each web app is managed and scaled independently, and some may be deleted or recreated during routine updates. You need to configure a managed identity solution that minimizes administrative overhead for granting Key Vault permissions and ensures that the identity credentials persist even if individual web apps are deleted.
Which managed identity configuration should you implement to meet these requirements?
- A single user-assigned managed identity assigned to all five App Services, with that identity granted the necessary access permissions on the Key Vault.Cevap
- BA system-assigned managed identity enabled on each App Service, with each individual identity granted the necessary access permissions on the Key Vault.
- CA single system-assigned managed identity configured at the App Service Plan level, allowing all App Services within the plan to inherit the identity.
- DA single user-assigned managed identity assigned to all five App Services, relying on default Key Vault settings that automatically authorize any identity created in the same Microsoft Entra tenant.
Cevap
A single user-assigned managed identity assigned to all five App Services, with that identity granted the necessary access permissions on the Key Vault.
Using a single user-assigned managed identity is the optimal choice because it exists as a standalone Azure resource. It can be shared across multiple Azure App Services, allowing you to configure a single access control rule (RBAC role or Key Vault access policy) on the Key Vault. Additionally, its lifecycle is independent of the App Services; deleting or recreating the web apps does not delete the user-assigned identity, avoiding the need to reconfigure Key Vault permissions.
Adım Adım Çözüm
Anahtar Kavram
Architectural and lifecycle differences between system-assigned and user-assigned managed identities.
Tahmini Süre:1m 30s