Azure-functions-vs-build-sdk: Blank value in local settings ignored

Created on 26 Apr 2019  路  2Comments  路  Source: Azure/azure-functions-vs-build-sdk

I have a value in my settings QueuePrefix which I'm using to prefix my queue names so I can test against different environments locally.

I'm using this in my queue triggers locally:

public static Task Run([QueueTrigger("%QueuePrefix%my-queue-name", Connection = "Storage")] ...

This was working so I could test one environment without a prefix and one with. I'm not sure what has changed (possibly since updating to V2) but this no longer seems to work with blank values.

I get this misleading error when I start the functions app:

Skipping 'QueuePrefix' from local settings as it's already defined in current environment variables.

And then the following error when it tries to index my function:

[08/04/2019 08:45:15] Error indexing method 'MyFunction'
[08/04/2019 08:45:15] Microsoft.Azure.WebJobs.Host: Error indexing method 'MyFunction'. Microsoft.Azure.WebJobs.Host: '%QueuePrefix%' does not resolve to a value.

All 2 comments

Duplicate of https://github.com/Azure/Azure-Functions/issues/1189

I'll respond there.

Duplicate of https://github.com/Azure/Azure-Functions/issues/1189

I'll respond there.

This issue has been moved to a repository you don't have access to or has been deleted since being transferred.

Was this page helpful?
0 / 5 - 0 ratings