Consider to add a short section to this page briefly describe how to use settings for local debug.
I can see where to set them in Azure Portal for live deployment, but for local debug I can't seem to find out how to read them from local.settings.json (or if even that is the right approach) or if I should use Environment vars?
Tried dependency injection of IConfiguration and also I tried Environment.GetEnvironmentVariable. Just think this should be clearer in this webpage. Also using settings is good practice and should be encouraged.
Page: https://docs.microsoft.com/en-us/azure/azure-functions/functions-develop-local
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@dirkesquire Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.
I'm using Visual Studio Code (if that helps)
@dirkesquire I think the local.settings.json should be the same. please find the references here: Work with Azure Functions Core Tools#Local settings file
@dirkesquire this article is intended to get folks to the correct local development tool article, but we haven't had one for VS Code. There is a new VS Code dev article being worked on in our private repo that will address this issue.
Thanks @ToMakeSense the content you link to is the same info that we are using in the new article.
@dirkesquire if you don't find the new VS Code dev guide sufficient, please reopen this or create a new issue. #please-close