These steps are for getting .NET Core 2.1 MSTest tests to support building up the environment variables that an Azure Function uses both in a local environment and in Azure DevOps CI.
- Need to use live resources for integration testing because Event Hub doesn't have an emulator
- This means I have connection strings that must be treated like secrets (can't use
UseDevelopment=true
for everything)
- This means I have connection strings that must be treated like secrets (can't use
- Can't easily build up my own configuration using
ConfigurationBuilder
in the application because I'm using Azure Functions (and Webjobs)- Can't use something like this
- Need to be able to run locally and in Azure DevOps (VSTS)