Soru

Zorluk: KolayConfigure Azure App Service Web Apps

You are configuring an Azure App Service web app to securely retrieve database credentials from an Azure Key Vault. The solution must use a system-assigned managed identity to access the Key Vault without storing any credentials in the application code or settings.

Which two configuration steps should you perform?

  1. Enable a system-assigned managed identity for the App Service web app.Cevap
  2. Create an access policy in the Key Vault that grants the web app's identity Secret Get permissions.Cevap
  3. C
    Enable a user-assigned managed identity on the Key Vault.
  4. D
    Create an application setting in the web app that uses the @Microsoft.KeyVaultSecret(SecretUri=...) syntax.

Cevap

Enable a system-assigned managed identity for the App Service web app, and create an access policy in the Key Vault that grants the web app's identity Secret Get permissions.
To retrieve secrets securely, you must first enable a system-assigned managed identity on the App Service web app so it can authenticate to Azure resources. Second, you must authorize this identity in the Key Vault by creating an access policy that grants it Get permissions on secrets.

Adım Adım Çözüm

1
Enable the system-assigned managed identity on the web app.
The web app is registered in Microsoft Entra ID and gets a service principal identity.
This establishes a secure identity that the web app can use to authenticate with Key Vault without credentials.
2
Configure permissions on the Key Vault.
The managed identity is granted Get permissions on Key Vault secrets.
This authorizes the web app's identity to retrieve the specific secret values from Key Vault.

Anahtar Kavram

Configuring Azure App Service to securely access Key Vault secrets using managed identities
Bu soruyu puanla