Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug Azure Function QueueTrigger locally

I am developing an azure functions which will be triggered by the azure storage queue. For HTTPTrigger we can debug locally , but am not able to find the way to debug QueueTrigger locally . Can anyone of you tell me how can i acheieve debugging on my local box running function with QUEUETRIGGER . I am having a storage explorer on my local box but it writes on azure cloud storage account .

like image 664
Dinesh Avatar asked Aug 25 '17 09:08

Dinesh


1 Answers

Can anyone of you tell me how can i acheieve debugging on my local box running function with QUEUETRIGGER . I am having a storage explorer on my local box but it writes on azure cloud storage account.

If you'd like to test/debug your Azure functions app against the storage queue locally, without using Azure storage account, you can install the Microsoft Azure storage emulator that provides a local environment that emulates the Azure Blob, Queue, and Table services for development. purposes.

edit:

As my function was deployed on the Azure, so the message from the queue from getting consummated by the functions running on AZURE

Your WebJob on Azure and local consume message from same storage account, if you want only local WebJob function is triggered, as you said, you can disable your WebJob on Azure. Besides, as I mentioned, for testing/debuging your Azure WebJob functions locally, you can use Microsoft Azure storage emulator.

like image 161
Fei Han Avatar answered Sep 25 '22 21:09

Fei Han