QuestionQ31

VerifiedSecure, monitor, troubleshoot Azure solutions

You are creating an Azure Function that calls external APIs by supplying an access token for the API. The access token is stored in a secret named token in an Azure Key Vault named mykeyvault.

You need to make sure that the Azure Function can access the token. Which value should you store in the Azure Functions app configuration?

Explanation

Azure Functions app settings can use an Azure Key Vault reference in the form @Microsoft.KeyVault(SecretUri=<secretUri>). The full data-plane URI for the token secret in mykeyvault is https://mykeyvault.vault.azure.net/secrets/token/; the function app’s configured identity must also have permission to read that secret.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!