Hi,
U can use Azure Event Grid and Azure Functions
Set up an Event Grid subscription for the Blob Created
event on your ADLS Gen2 account. This will trigger whenever a file is uploaded. Refer to the Event Grid documentation. Create an Azure Function to process the event. The function will check the file size using the Content-Length
property.
If the file exceeds the threshold (e.g., 50MB), send an alert (e.g., via email using Logic Apps or an alerting service) and optionally delete the file. Refer to the Azure Functions documentation.
Best regards, Alex p.s. If you found the answer helpful, please click on Upvote and Accept Answer. This will help other community members.