I have a project hosted in Github that is being continuously deployed to Azure whenever a developer checks in any code. (this deployment is for a dev server, not prod).
In the case of a failed deployment, how can I get the failure log emailed to me automatically? This does not seem to be a current feature in Azure.
For the deployment, we are using a Kudu deploy.cmd file generated with the
azure site deploymentscript
command. In this script there are several tests for errors after the commands finish. Such as:
IF !ERRORLEVEL! NEQ 0 goto error
with the error label executing these commands:
:error
endlocal
echo An error has occurred during web site deployment.
call :exitSetErrorLevel
call :exitFromFunction 2>nul
It seems to me that this would be an ideal place to have the log file emailed to me. But I am not sure what that would look like. Any help or pointers in the right direction would be great.