none
Send Alert when there is an error running runbook. RRS feed

  • Question

  • Hello,

    I have created a runbook using Azure Automation Accounts which Processes the  Tabular model using Powershell script. How to create an Alert on this runbook when their is an error/failure while processing and seems like runbook returns completed status even if there is an error.

    Any help is much appreciated.

    Thanks!!


    sree

    Thursday, October 25, 2018 3:02 AM

Answers

All replies

  • Hi, 

    Please check the link below

    https://docs.microsoft.com/en-us/azure/automation/automation-alert-metric

    further if you want to capture the exact error related to tabular model processing then you can write it in your powershell code and generate a log file, this log file you can save in Azure blob.


    Cheers,

    • Marked as answer by srikanth.kasu Monday, October 29, 2018 9:16 PM
    Thursday, October 25, 2018 3:55 AM
  • I was able to implement the alert successfully but it is not working as I expected it to. It sends an email when the runbook fails then after 5 mins sends a resolved email though it is not resolved. I just want it to alert us when a runbook fails don't need resolved email. how do I set this ? Can you please direct me how to create log file using powershell code too. Thanks for your help!!

    sree

    Sunday, October 28, 2018 4:17 AM