How to set resultCode in an Azure FunctionApp?

I got a FunctionApp that checks a blob-container for blobs containing a certain number, and I would like to just log into Application Insights the number we found.

So I need to find the number in the following Analytics query:

requests | project timestamp, id, name, success, resultCode, duration, operation_Id | where timestamp > ago(30d) | where name == 'CheckSSNStatus' | order by timestamp desc | take 100 

But I can’t seem to be able to adjust the resultCode.

Please advice.

submitted by /u/Torquai
[link] [comments]

Leave a Reply