Reading settings from a Azure Function

前端 未结 3 1273
暗喜
暗喜 2021-02-04 01:26

I\'m new to Azure\'s function... I\'ve created a new timer function (will be fired every 30 minutes) and it has to perform a query on a URL, then push data on the buffer..

3条回答
  •  眼角桃花
    2021-02-04 01:39

    You can use System.Environment.GetEnvironmentVariable like this:

    var value = Environment.GetEnvironmentVariable("your_key_here")
    

    This gets settings whenever you're working locally or on Azure.

提交回复
热议问题