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
The best way to do this is to add a Connection String from the Azure portal:
They will then be available using the same logic as if they were in a web.config, e.g.
var conn = System.Configuration.ConfigurationManager
.ConnectionStrings["MyConn"].ConnectionString;
Or if you're using a non-.NET language, you can use App Settings instead, which become simple environment variables at runtime that your functions can access.