Created
March 8, 2018 22:49
-
-
Save sebfia/91d045faae847536d9e1511ef86c65e3 to your computer and use it in GitHub Desktop.
New ASP.NET way of configuring Azure Function apps with beta runtime.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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