Azure Functions how to add application settings to bindings

azure, azure-functions, binding, c#, settings

Solution

I already found the solution. Just add:

using System.Configuration;

and add this line to code with the key ("simpleValue") value:

ConfigurationManager.AppSettings["simpleValue"]

Problem

I'm trying to add some custom binding using my app settings for my Azure Function. I need to receive only string a string from my settings. I would like to get simpleValue from my settings. ``` { "bindings": [ { "name": "someValue", "type": "stringSetting", "connection": "simpleValue", "direction": "in" } ], "disabled": false } ``` and the get it in Run method: ``` static void GetOrders(TraceWriter log, string someValue) { log.Info(someValue); } ``` Is it even possible. Maybe there is other way to do it?

Original source