Having a look through the documentation on azure functions, specifically this one. It's very clear how to setup integrations via the portal, but developing locally is very vague.
My code is structured below as follows:
[FunctionName("foobar")]
public static void Run([QueueTrigger("foo")]Foo myQueueItem, out object dbFoo)
{
//do cool stuff here
}
The queue trigger works very well with the Azure storage emulator but there are no instructions on how to setup the local.settings.json. The file that was auto-generated via visual studio and looks like:
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"AzureWebJobsDashboard": ""
}
}
Where would the connection information for cosmos db sit within this structure to enable the function to operate correctly?