Function app diagnostics says can't access KeyVault secrets, but environment variables says its connected

Gareth Doherty 21 Reputation points
2024-09-12T12:07:30.0166667+00:00

When my function app runs, it reads from env variables to get secrets from Key Vault. But its behaving as if it didn't get any values.

When I check env variables in Azure, it says the Key Vault reference is resolved

User's image

But in Function App Diagnostics it says that access is denied to secrets in Key Vault

User's image

I use Access Policies on KV and the Function Apps system identity has List,Get access to Secrets. And this is exactly how every other Function App in my subscription is configured.

But for some reason this one is not behaving.

Any suggestions on how to troubleshoot this further?

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.
1,314 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,110 questions
{count} votes

Your answer

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