I have an Azure Function that presumably has some configuration problem and so is failing to run. In the portal I see the following highlighted text:
I have a continuous deployment script that deploys new versions of the function, and has a step after the new version is published to test that it can call an endpoint. In this instance that step failed (with 'Function host is not running.' which makes sense), but in that case I'd really like to include a bit more detail about why the function is failing by adding the text from the error/notification that's shown in the Portal.
It seems like the error happens so early in the lifecycle of the function that nothing gets logged to AppInsights. The Azure Function deployment logs themselves don't seem to contain any info (as the actual deployment part is fine, it's just when the function goes to run that it fails)
Is there an API or CLI command I can use to get that text?