An Azure service that provides an event-driven serverless compute platform.
Hello Nordfjord,
Thanks for reaching out on Microsoft Q&A.
From your description, we are sorry to hear you're running into an issue with your Azure Function that's supposed to trigger off a blob storage update or addition. Since it's working locally but not after deployment, let’s break down some common issues you might want to check:
Function Configuration: Ensure that the blob trigger configuration in Azure matches what you have locally. Check the path and connection string in your function app settings. The AzureWebJobsStorage connection string must be correctly set and pointing to the right storage account.
Log Stream: You mentioned that the log stream shows no sign of the trigger firing. This is helpful in identifying issues:
Check for any application errors in the logs that might indicate why the function is not executing. Make sure that logging is enabled for your function app and that you are looking in the right place. Container and Blob Operations: Double-check that the blob storage container exists and permissions are set correctly. Also, verify that you're uploading blobs to the right container that your function is listening to.
Delay in Trigger: Sometimes, if using the Consumption plan, there may be a short delay before the function triggers in response to blob updates. You might want to wait a few moments after uploading a file to see if it prompts the function.
Development vs. Production: If you are using local development settings that don't match with your Azure settings, ensure all necessary application settings (especially those in local.settings.json) are uploaded to Azure under Application settings.
If you’ve checked the above and it’s still not firing, I’d recommend gathering some more details, such as:
What runtime and version are you using for your Azure Function? Can you confirm the exact path and connection string settings in your Azure Function app?
- Have you looked at the Application Insights (if enabled) for any startup or invocation errors?
- Is your Function App deployed in the same region as your storage account? Please provide the information requested in the private message so we can look into this further.
Thanks