Azure Function and storage queue, what to do if function fails
<p>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.</p>

<p>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.</p>

<p>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.</p>

<p>My questions:</p>

<ol>
<li>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?</li>
<li>If 1 is correct, how do you make sure that the message is retried and posted to a dead queue for later processing?</li>
</ol>