Azure Functions App Containers Key Vault is not working

Alain Osorio Rodriguez 0 Reputation points
2024-08-12T10:08:03.8966667+00:00

Hi,

I'm encountering an issue with Azure Functions running in App Containers. Currently, all secrets are stored in plain text, which is not secure.

I attempted to follow the documentation to integrate Azure Key Vault for secret management by using the syntax like @Microsoft.KeyVault(SecretUri=uri), but it doesn't seem to be working as expected. I've tried several different methods, but none have been successful.

Could any of you please advise on the correct approach to securely integrate Azure Key Vault with Azure Functions in App Containers? Is there a specific configuration or step that I'm missing?

Thank you for your help.

Best regards,

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,560 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 29,936 Reputation points Microsoft Employee
    2024-08-14T01:31:47.5733333+00:00

    Hi @Alain Osorio Rodriguez

    There's actually a key vault detector that you can utilize to determine any issues between your function app and your function app.

    1. In the portal, navigate to your app.
    2. Select Diagnose and solve problems.
    3. Choose Availability and Performance and select Web app down.
    4. Find Key Vault Application Settings Diagnostics and click More info.

    As for the container app, the key vault references should be injected as environment variables being. This means you should see these variables during container start up in the log tail.

    0 comments No comments

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.