You are configuring an Azure Function App to retrieve a database connection string from Azure Key Vault using a Key Vault reference in the application settings. Which of the following is a requirement for the reference to resolve successfully?
- The Function App's managed identity must be granted GET permissions for secrets in the Key Vault.Cevap
- BThe application setting value must use the @Vault(SecretUri=...) prefix syntax.
- CThe Function App must use a user-assigned identity created automatically by the Key Vault.
- DThe Function App must be deployed on a Consumption plan to support Key Vault references.
Cevap
The Function App's managed identity must be granted GET permissions for secrets in the Key Vault.
For Key Vault references to resolve successfully, the Function App's managed identity (whether system-assigned or user-assigned) must be granted the GET permission on secrets in the Key Vault. This allows the Azure Functions runtime to retrieve the connection string on behalf of the application.
Adım Adım Çözüm
Anahtar Kavram
Configuring Azure Functions to securely retrieve secrets using Key Vault references and managed identities.