Soru

Zorluk: OrtaSystem-Assigned and User-Assigned Managed Identities

You are deploying a web application to Azure App Service. The application must retrieve database credentials from an Azure Key Vault. To follow organizational security policies, you decide to use a user-assigned managed identity to authenticate the application.

Which of the following actions are required to configure this security solution? (Select TWO.)

  1. Associate the user-assigned managed identity with the App Service instance.Cevap
  2. Configure an Azure Key Vault access policy or Azure RBAC role assignment that grants Secret Get permissions to the user-assigned managed identity.Cevap
  3. C
    Enable the system-assigned managed identity on the App Service and assign the Key Vault permissions to it.
  4. D
    Create an access policy in Azure Key Vault that grants Secret Get permissions directly to the App Service Plan.

Cevap

The correct actions are to associate the user-assigned managed identity with the App Service instance, and to configure an Azure Key Vault access policy or Azure RBAC role assignment that grants Secret Get permissions to the user-assigned managed identity.
To authenticate using a user-assigned managed identity, you must first associate the identity with the App Service. Then, you must grant the identity permissions to the Key Vault using access policies or role assignments.

Adım Adım Çözüm

1
Assign the identity to the compute resource.
The App Service is associated with the user-assigned managed identity, enabling it to request Microsoft Entra ID tokens using this identity.
Before an Azure resource can use a user-assigned managed identity, the identity must be linked to the resource configuration.
2
Grant access to the target resource.
The user-assigned managed identity is authorized to perform get operations on Key Vault secrets.
By default, identities have no permissions. You must explicitly configure access policies or RBAC roles to grant access to the Key Vault.

Anahtar Kavram

Configuring a user-assigned managed identity to authenticate and authorize access to Azure Key Vault.
Bu soruyu puanla