I'm working out a scenario where a post a message to an Azure Storage Queue. For testing purposes I've developed a console app, where I get the message and I'm able to update it with a try count, and when the logic is done, I delete the message.
Now I'm trying to port my code to an Azure Function. One thing that seems to be very different is, when the Azure Function is called, the message is deleted from the queue.
I find it hard to find any documentation on this specific subject and I feel I'm missing something with regard to the concept of combining these two.
My questions:
- Am I right, that when you trigger a function on a new queue item, the function takes the message and deletes it from the queue, even if the function fails?
- If 1 is correct, how do you make sure that the message is retried and posted to a dead queue for later processing?