Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Optionally generate output with an Azure Function

I currently have a Timer triggered Azure Function that checks a data endpoint to determine if any new data has been added. If new data has been added, then I generate an output blob (which I return).

However, returning output appears to be mandatory. Whereas I'd only like to generate an output blob under specific conditions, I must do it all of the time, clogging up my storage.

Is there any way to generate output only under specified conditions?

like image 205
hbd Avatar asked Dec 14 '22 22:12

hbd


1 Answers

If you have the blob output binding set to your return value, but you do not want to generate a blob, simply return null to ensure the blob is not created.

like image 161
Cloud SME Avatar answered Feb 27 '23 01:02

Cloud SME