I am trying to dockerize azure functions by using the official microsoft/azure-functions-node8
image. I could not find any documentation at all regarding configuring the runtime, and whenever I run the runtime the following errors occur:
The listener for function 'Functions.health' was unable to start.
Microsoft.Azure.WebJobs.Host.Listeners.FunctionListenerException: The listener for function 'Functions.health' was unable to start. ---> System.AggregateException: One or more errors occurred. (Microsoft Azure WebJobs SDK 'Storage' connection string is missing or empty. The Microsoft Azure Storage account connection string can be set in the following ways:
1. Set the connection string named 'AzureWebJobsStorage' in the connectionStrings section of the .config file in the following format <add name="AzureWebJobsStorage" connectionString="DefaultEndpointsProtocol=http|https;AccountName=NAME;AccountKey=KEY" />, or
2. Set the environment variable named 'AzureWebJobsStorage', or
3. Set corresponding property of JobHostConfiguration.)
I google some bits and pieces around and managed to compose the following .config
file, but the runtime still shouts at me.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<connectionStrings>
<add name="AzureWebJobsStorage" connectionString="myconnectionstring"/>
</connectionStrings>
</configuration>
Is .config
file format documented anywhere?