Azure Functions Database Connection String

前端 未结 14 697
谎友^
谎友^ 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:27

    I believe common practice is use environment variables for azure functions, then you can setup the environment variables in the Azure Function:

    (Function App Settings -> Configure app settings -> App settings section)

    Maybe would be more helpful if you can also let us know which language you are using?

提交回复
热议问题