Azure / Azure/azure-functions-host

Azure function template not working with queues

Open
#3,429 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

Hi guys,

I am trying to setup a service that would parse some items in an Azure Queue, the service would off course be an Azure Function.

So I followed the instructions on the New Project template in VS17 (with latest Azure update), launched the solution, and the debugger is listening but nothing happens. Although there are 200 messages in the queue.

Below you'll find the log when the function is running locally in Visual StudioHere is the log.

Thanks for your help !
Regards
Alexandre

[11-09-18 00:56:39] Reading host configuration file 'C:\Users\alexa\OneDrive\Documents\Visual Studio 2017\Projects\Scraper\AzureScout\bin\Debug\net461\host.json'
[11-09-18 00:56:39] Host configuration file read:
[11-09-18 00:56:39] {}
[11-09-18 00:56:39] Starting Host (HostId=kabylake-1578090547, Version=1.0.11913.0, InstanceId=3030fe18-5c6c-4c6a-a114-f88360d93771, ProcessId=5576, AppDomainId=1, Debug=False, ConsecutiveErrors=0, StartupCount=1, FunctionsExtensionVersion=)
Listening on http://localhost:7071/
Hit CTRL-C to exit...
[11-09-18 00:56:39] Loaded custom extension 'BotFrameworkConfiguration'
[11-09-18 00:56:39] Loaded custom extension 'SendGridConfiguration'
[11-09-18 00:56:39] Loaded custom extension 'EventGridExtensionConfig'
[11-09-18 00:56:39] registered EventGrid Endpoint = http://localhost:7071/admin/extensions/EventGridExtensionConfig
[11-09-18 00:56:39] Generating 1 job function(s)
[11-09-18 00:56:40] Found the following functions:
[11-09-18 00:56:40] AzureScout.Function1.Run
[11-09-18 00:56:40]
[11-09-18 00:56:40] Host initialized (1181ms)
[11-09-18 00:56:40] Host lock lease acquired by instance ID '000000000000000000000000F379901E'.
[11-09-18 00:56:40] Host started (1230ms)
[11-09-18 00:56:40] Job host started
[11-09-18 00:56:40] Executing HTTP request: {
[11-09-18 00:56:40] "requestId": "8f292b94-dc20-4e60-9a0f-ab4d535e4b18",
[11-09-18 00:56:40] "method": "GET",
[11-09-18 00:56:40] "uri": "/"
[11-09-18 00:56:40] }
[11-09-18 00:56:41] Executed HTTP request: {
[11-09-18 00:56:41] "requestId": "8f292b94-dc20-4e60-9a0f-ab4d535e4b18",
[11-09-18 00:56:41] "method": "GET",
[11-09-18 00:56:41] "uri": "/",
[11-09-18 00:56:41] "authorizationLevel": "Anonymous",
[11-09-18 00:56:41] "status": "OK"
[11-09-18 00:56:41] }
Debugger listening on [::]:5858

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the local run in Visual Studio 2017 with the queue containing messages, then inspect host.json and the generated AzureScout.Function1.Run entry point. Compare the host logs, including function discovery and startup, with the expected queue-trigger behavior; done means queued messages invoke the function locally.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.