How to add configuration values in AppSettings.json in Azure functions. Is there any structure for it?

后端 未结 7 2097
别那么骄傲
别那么骄傲 2021-02-12 18:51

What is the standard structure to add keys to appsettings.json? Also, how to read those values in our run.csx? Normally in app.config, we had Con

7条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-12 19:13

    As stated here

    These settings can also be read in your code as environment variables. In C#, use System.Environment.GetEnvironmentVariable or ConfigurationManager.AppSettings. In JavaScript, use process.env. Settings specified as a system environment variable take precedence over values in the local.settings.json file.

提交回复
热议问题