question

SadiqhAhmed-MSFT avatar image
0 Votes"
SadiqhAhmed-MSFT asked ·

Use an alert to trigger an Azure Automation runbook no data

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://docs.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
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

tbgangav-MSFT avatar image
0 Votes"
tbgangav-MSFT answered ·

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.


·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.