Needed to add PutBlockList in event filter... that solved it !
Azure storage event doesnt trigger logic app when large file is uploaded.
I uploaded 100 mb file using SFTP client and using azure portal and powershell. When ever the file is uploaded using Winscp storage event triggers the logic app but as soon as i upload a file of more than 60mb from the portal directly or powershell logic app is not triggered, thought the event history shows the event was triggered.
I dont know if there is some glitch or am i missing some configuration ?
4 answers
Sort by: Most helpful
-
-
Amrinder Singh 5,555 Reputation points Microsoft Employee
2024-12-12T17:28:52.7466667+00:00 Hi Gaurav Sharma - Thanks for reaching out.
When you will be performing the upload via WinSCP, the underlying APIs would be SFTP ones such as SFTP Create/Commit however when you upload via Portal/Powershell, you might be hitting blob specific API' such as Put Blob.
I would recommend reviewing your filtering condition as to what API's have you listed in the same. If you haven't added the required ones, that could be the reason why some of them might be getting skipped.
Hope this information helps! please let us know if you have any further queries. I’m happy to assist you further.
Please "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members
-
Vinod Kumar Reddy Chilupuri 1,915 Reputation points Microsoft Vendor
2024-12-12T18:11:46.77+00:00 Welcome to Microsoft Q&A, thanks for posting your query.
When uploading large files to Azure Blob Storage, certain limitations and configurations must be considered. If your Logic App is not triggering for files larger than 60 MB, the issue might be due to how Azure handles events for large uploads.
Event Triggering: Azure Blob Storage sends events through Event Grid to subscribers like Logic Apps. If the event appears in the event history, it was successfully sent. However, your Logic App might not be configured to process large payloads properly.
Request Size Limits: Azure Storage has a 4 MB limit for single requests. Files larger than this must be uploaded in smaller chunks, especially if using REST API or HTTPS PUT. If your Logic App reports a "Request body is too large" error, it might be unable to handle the payload size.
SFTP Uploads: Uploading files via SFTP may generate multiple events, which your Logic App could handle differently than uploads made via the Azure portal or PowerShell.
Here are some troubleshooting steps to follow.
- verify your Logic App to handle larger payloads effectively.
- Break large files into smaller chunks before uploading.
- Verify the event schema and ensure your Logic App is properly set to respond to events triggered by large file uploads.
For more information, please follow the below Microsoft documentations as reference.
https://learn.microsoft.com/en-us/azure/event-grid/event-schema-blob-storage?tabs=cloud-event-schema#sftp-events
https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-event-overview#reacting-to-blob-storage-events
https://learn.microsoft.com/en-us/azure/connectors/connectors-create-api-azureblobstorage?tabs=consumption#limitations
Similar threads:
https://learn.microsoft.com/en-us/answers/questions/756369/azure-logic-app-is-not-working-when-trying-to-tran
https://learn.microsoft.com/en-us/answers/questions/696106/when-upload-file-more-that-200mb-to-a-blog-the-bloPlease feel free to contact if the issue persists, we will be glad to assist you closely. Please do consider clicking on
"Accept Answer"
and"Up-vote"
on the post that helps you, as it can be beneficial to other community members. -
Vinod Kumar Reddy Chilupuri 1,915 Reputation points Microsoft Vendor
2024-12-13T16:45:19.1033333+00:00 I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this!
Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer. Accepted answers show up at the top, resulting in improved discoverability for others.
Issue: Azure storage event doesn't trigger logic app when large file is uploaded.
Solution: You need to add PutBlockList in event filter that will solve your issue.
If your issue remains unresolved or have further questions, please let us know in the comments how we can assist. We are here to help you and strive to make your experience better and greatly value your feedback.
Please let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.