We are developing the function locally and although we can use the ConfigurationBuilder().AddAzureKeyVault() in the startup to retrieve the Key Vault secrets, we are struggling to make the Queue trigger to get the connection string from the Key Vault. As can be seen below, the connection is currently retrieved from a AzureWebJobsStorage key present in the local.settings.json:
[FunctionName("myFunction")]
public async Task MyFunction([QueueTrigger("aQueue", Connection = "AzureWebJobsStorage")] Car myCar)
{
await getCarAsync(myCar.Name);
}
local.settings.json
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "DefaultEndpointsProtocol=https;AccountName=....",
"AzureWebJobsStorage": "UseDevelopmentStorage=true"
for local dev ? – Thomas