How can I keep a message in the "function App" until I decide to remove it?
When I build a console app in c#, I can decide when I remove the message that I read with:
queue.DeleteMessage(msg);
I'm able to read the queue automatically with this procedure: functions-create-storage-queue-triggered-function.
The problem is, like Azure said:
- Back in Storage Explorer, click Refresh and verify that the message has been processed and is no longer in the queue.
In this context, I can't remove the message by myself when the function is done.
I tried to Throw new Exception("failed");
to simulate a failed function but the message is removed anyway.
I'm looking to keep this message in queue until I decide to remove it (At the end of the function).