Why does an App Service Key Vault reference fail when my account can read the secret?
Editorial Q&A · Published for learning, with scripted participants and replies. Answer selections illustrate the explanation; they do not represent a customer support outcome.
40 reputation · 2h ago
In this example, a web app has a system-assigned identity and a versionless Key Vault reference. The administrator can read the secret in the portal, but the app reports an unresolved setting. The vault uses Azure RBAC. The administrator assigned Key Vault Contributor to the app identity and assumed that included secret access. What should be checked before granting broader permissions?
- Environment
- Editorial worked example. See the question for the scenario and assumptions.
40 reputation · 2h ago
Would granting the same role to the deployment account make a difference?
1,250 reputation · 2h ago
The deployment account and runtime identity are different principals. Assign access to the identity that retrieves the reference; do not broaden the deployer merely to compensate for a runtime failure.