Azure Functions Database Connection String

前端 未结 14 723
谎友^
谎友^ 2020-12-05 17:08

How do I add or access an app.config file in Azure functions to add a database connection string?

If you\'re not supposed to add an app.config

14条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-05 17:37

    Configuration Manager will be replaced by the new Asp.Net Core Configuration System in Functions Runtime v2.

    So if you are using .Net Core you should follow John Gallants Blog article: https://blog.jongallant.com/2018/01/azure-function-config/

    • Works with local.settings.json and Settings in Azure Function
    • Works with App Settings and Connection Strings

提交回复
热议问题