Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Environment variable example
public class FunctionAppConfiguration : IFunctionAppConfiguration
public void Build(IFunctionHostBuilder builder)
.Setup((serviceCollection, commandRegistry) =>
.AddCosmosRepository(Environment.GetEnvironmentVariable("cosmosConnectionString", EnvironmentVariableTarget.Process));
// rest of registration
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"AzureWebJobsDashboard": "UseDevelopmentStorage=true",
"cosmosConnectionString": "a connection string"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.