Use an alert to trigger an Azure Automation runbook no data

SadiqhAhmed-MSFT 27,076 Reputation points Microsoft Employee

I want to run a runbook with the output of an alert. I followed the steps from the documentation, but I don't get any output. Can anyone help me please?

[Note: As we migrate from MSDN, this question has been posted by an Azure Cloud Engineer as a frequently asked question]

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
814 questions
0 comments No comments
{count} votes

Accepted answer
  1. tbgangav-MSFT 8,291 Reputation points

    Hi Sadiqh,

    If your runbook is exactly the same as the one that’s shown in this document then as that runbook have only Write-Verbose / Write-Error commands (but not Write-Output commands) so you would not be shown any user-specific output (except OperationID, Status, StartTime and EndTime) only in case

    1. your runbook is published but you didn't turn on verbose logging under 'Logging and tracing' tile of your runbook settings.
    2. your runbook is unpublished, and you have tested the runbook using Test pane, but you didn't set VerbosePreference variable to continue in runbook.
    0 comments No comments

0 additional answers

Sort by: Most helpful