Hi,
I run my Azure Function inside the docker container deployed on my local computer. I've noticed every time the container is up and running and Azure Function is started my function is triggered immediately.
I've added run_on_startup=False
to the blob trigger decorator but it doesn't work - my function still gets triggered.
Here's my function:
import logging
import azure.functions as func
import azurefunctions.extensions.bindings.blob as blob
app = func.FunctionApp()
@app.blob_trigger(arg_name="client",
path="blobclient/{name}.csv",
connection="BlobStorageConnectionString",
run_on_startup=False
)
def function(client: blob.BlobClient):
logging.info(
f"Python blob trigger function processed blob \n"
f"Properties: {client.get_blob_properties()}\n"
)
Is there anything I'm missing?
Another question - what is the default value of this setting?
Thanks a lot,
Maria