Use an alert to trigger an Azure Automation runbook no data

SadiqhAhmed-MSFT 37,686 Reputation points Microsoft Employee
2020-05-14T07:42:30.31+00:00

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. https://learn.microsoft.com/en-us/azure/automation/automation-create-alert-triggered-runbook. 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.
1,113 questions
0 comments No comments
{count} votes

Accepted answer
  1. tbgangav-MSFT 10,381 Reputation points
    2020-05-14T08:17:22.827+00:00

    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