Azure-docs: Add section: local settings

Created on 28 Mar 2019  Â·  5Comments  Â·  Source: MicrosoftDocs/azure-docs

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


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri1 assigned-to-author azure-functionsvc doc-enhancement triaged

All 5 comments

@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

Was this page helpful?
0 / 5 - 0 ratings