Skip to content

Instantly share code, notes, and snippets.

@sebfia
Created March 8, 2018 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebfia/91d045faae847536d9e1511ef86c65e3 to your computer and use it in GitHub Desktop.
Save sebfia/91d045faae847536d9e1511ef86c65e3 to your computer and use it in GitHub Desktop.
New ASP.NET way of configuring Azure Function apps with beta runtime.
//package Microsoft.Extensions.Configuration
open Microsoft.Extensions.Configuration
let config =
ConfigurationBuilder()
.SetBasePath(context.FunctionAppDirectory)
.AddJsonFile("local.settings.json", true, true)
.AddEnvironmentVariables()
.Build()
let storageKey = config.["AzureWebJobsStorage"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment