I created an event-triggered function in Azure (name of the function app: "stamevents", name of the function: "EventGridTrigger1". this is my function.json file:
{
"scriptFile": "__init__.py",
"bindings": [
{
"type": "eventGridTrigger",
"name": "event",
"direction": "in"
}
]
}
and this is my init.py file:
import json
import logging
import azure.functions as func
def main(event: func.EventGridEvent):
result = json.dumps({
'id': event.id,
'data': event.get_json(),
'topic': event.topic,
'subject': event.subject,
'event_type': event.event_type,
})
logging.info('Python EventGrid trigger processed an event: %s', result)
Now, I want to trigger this function when I'm uploading a blob.
So I went to my storage account, pressed on "Events" and chose "Azure Function".
and create.
Next I chose the function app and the function I just created
But this is what I see and I don't understand what to do next, and how to make this function fire after I upload a blob.
Any help will be appreciated!








