I have a basic function which I build a docker image and deploy and it works fine, just return "Ok" on a POST.
I then changed my Main method to include adding configurationBuilder as such
.ConfigureAppConfiguration(configurationBuilder => { configurationBuilder.AddEnvironmentVariables(); //.AddJsonFile("local.settings.json", optional: true, reloadOnChange: true); })
In my trigger I Injected the IConfiguration into the trigger as such
public taffy_trigger(IConfiguration configuration) { this._configuration = configuration; }
If I now build the docker image and ensure it runs locally and the push it to the registry, update my azure function to the new tagged docker image, it now fails, with "Can't write the message because the call is complete"
I'm very confused here is this something you can't do on a function that is running as isolated on a Linux container ?
Is there something I am fundamentally missing ?