MS.Azure.WebJobs.Host: Queue Name and ConnectionString does not resolve to a value

Sukeerthi 21 Reputation points
2024-08-16T10:42:02.82+00:00

Hi Team,

I have upgrade Azure function from .Net6 to .Net 8 isolated and could not able to read QueueName and connection from app settings.

below is my code

[Function("Function1")]

public async Task Run([QueueTrigger("%FuncAppSettings:QueueName%", Connection = "FuncAppSettings:StorageConnection")] string queueItem)

{

  try

  {

     }
```}      

App settings:

 "FuncAppSettings": {

   "QueueName": "myqueue",

   "StorageConnection": "***"

 },

It was working before(.Net6) after upgrading to .net 8(Isolated) its not working.

Please find the below error details:

**Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.Function1'. Microsoft.Azure.WebJobs.Host: '%FuncAppSettings:QueueName%' does not resolve to a value.**

 **Error indexing method 'Functions.Function1'**

**Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.Function1'. Microsoft.Azure.WebJobs.Host: '%FuncAppSettings:QueueName%' does not resolve to a value.**

could you please help me to resolve this issue,

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,951 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.