You are hosting an ASP.NET Core web application in an Azure App Service. The application requires a database connection string stored as a secret named db-conn in an Azure Key Vault named prod-kv. You create a user-assigned managed identity named app-identity and associate it with the App Service. In prod-kv, you grant the Key Vault Secrets User role to app-identity using Azure RBAC. In the App Service configuration, you add an application setting named ConnectionStrings__DefaultConnection with the value @Microsoft.KeyVault(SecretUri=https://prod-kv.vault.azure.net/secrets/db-conn/). However, the App Service fails to resolve the Key Vault reference at runtime and the application cannot retrieve the database connection string. Which of the following actions should you take to resolve this issue?
- ADisable Azure RBAC on the Key Vault and configure a Key Vault Access Policy to grant Secret Get permissions to the App Service.
- BModify the application setting value to omit the trailing slash, changing it to @Microsoft.KeyVault(SecretUri=https://prod-kv.vault.azure.net/secrets/db-conn).
- Configure the App Service's keyVaultReferenceIdentity property to point to the resource ID of app-identity.Cevap
- DRemove the user-assigned identity, enable the system-assigned managed identity on the App Service, and grant it the Key Vault Secrets User role on the Key Vault.