Maybe this is helpful to create alerts on failed Azure Automation Runbooks:
https://learn.microsoft.com/en-us/azure/automation/automation-alert-metric
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten