I am sure I am missing the obvious and getting to grips with Azure functions.
Question
In debug what do I need to set up in order to read the Enviroment variables from keyVault?
It seems to return null in debug? is there a special settings in local.settings.Json?
thanks
local.settings.json? No, what you should do is put the reference to the configuration settings on azure instead of local.settings.json. And you need to give your function app fully access policy to key vault.
Have a look of this doc:
https://learn.microsoft.com/en-us/azure/app-service/app-service-key-vault-references#granting-your-app-access-to-key-vault
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With