Share via

Function app with system assigned identity has developed issue where Keyvault references in Environment Variables no longer resolve

Del Hamilton 0 Reputation points
2026-06-15T20:54:06.0066667+00:00

I've been working with a number of function apps over the past week, most have one or more environment variable values in the format "@Microsoft.KeyVault(VaultName={my-vault-name};SecretName={secret})". After working fine all last week, today two of the functions have run into an issue where they are unable to resolve these values and therefore the function apps crash. In the Environment variables portal blade of the function app there is the error icon and Key vault link - when pressed it shows the details and OtherReasons as the issue. I have, I think, carefully compared the function with others that are working correctly and they match exactly. In the Identity blade, I checked permissions and it confirms that the identity has the role "Key Vault Secrets User" to Keyvault. In Keyvault, In Keyvault, IAM, Role assignments, the function app identity is listed with the same role as other function apps where there is no issue.

I am at a loss to understand why this has just stopped working without any changes, that I'm aware of.

Azure Key Vault
Azure Key Vault

An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.