I'm investigating the webhooks / event triggers available for Azure Storage. Unfortunately the documentation seems preoccupied with showing how to get the Azure portal to build the function for me, which doesn't permit local testing.
In particular, I'm looking into capturing when a blob has been deleted.
Example of my usage (an Azure Function):
[FunctionName("BlobDelete")]
public static async Task Run([BlobTrigger("...")]
CloudBlockBlob blob,
string name,
TraceWriter log)
{
;
}
The problem arises when I delete a blob from the storage container: the function is not triggered.
However, I found that if I hit CTRL+C
in the console then the function is triggered.
Can anyone explain why? Is my usage wrong?
Also, I was unable to find any documentation for the BlobDelete
trigger, I could only find BlobInput
, BlobOutput
and BlobCopy
. I took a guess with BlobDelete
and it... half works.