Hi @Phillip Ashworth ,
I do agree that, it works for me too using below code and configurations:
using System;
using Azure.Storage.Queues.Models;
using Microsoft.Azure.Functions.Worker;
using Microsoft.Extensions.Logging;
namespace FunctionApp2
{
public class Function1
{
private readonly ILogger<Function1> rithlger;
public Function1(ILogger<Function1> logger)
{
rithlger = logger;
}
[Function(nameof(Function1))]
public void Run([QueueTrigger("%test:name%", Connection = "test:rithconstr")] QueueMessage message)
{
rithlger.LogInformation($"Hello Rithwik, the message is : {message.MessageText}");
}
}
}
local.settings.json:
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "",
"FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated",
"test__rithconstr": "DefaultEndpointsProtocol=https;AccountName=rithwik9b2e;AccountKey=YawnJjrithwiktestCw==;EndpointSuffix=core.windows.net",
"test__name": "rithq"
}
}
Output:
If this answer was helpful, please click "Accept the answer" and mark Yes
, as this can help other community members.
If you have any other questions or are still experiencing issues, feel free to ask in the "comments" section, and I'd be happy to help.