Azure Function - Blob Trigger Event Grid

Dyt13 206 Reputation points
2022-09-20T16:06:34.787+00:00

Hi,

I'm trying to do the following : run an Azure Function (python 3.9) each time a blob is uploaded to a container (via event grid trigger) (webhook)
I've followed the tutorial : https://learn.microsoft.com/en-US/azure/azure-functions/functions-event-grid-blob-trigger?pivots=programming-language-python

243087-image.png

When i debug it locally (webhook + ngrok) everything works as expected but for some reason when i go "live" (when i deploy) the function seems to do nothing.
That's curious cause I see the event being sent :
243103-image.png

Even the function being triggered :
242988-image.png

But i don't see the expected result (transfer a blob from one container to another).
Also i don't see the different logging instruction i've written in the source code of the init function.

    logging.info(  
        f"""Start BlobTriggerEventId @   
        {myblob.name}|{datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S')}."""  
    )  

(maybe i don't know where to look for but i thought this would be in application insights log).

Can you please help on that ?

Cheers

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,365 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
322 questions
{count} votes