Testing a Runbook

 

Updated: May 13, 2016

Applies To: Windows Azure Pack for Windows Server

You can test the Draft version of a runbook in Service Management Automation while leaving the published version of the runbook unchanged. This allows you to verify that the runbook is working correctly before replacing the published version.

When you test a runbook, the Draft runbook is executed and any actions that it performs are completed. No job history is created, but the Output Stream and Warning and Error Streams streams are displayed in the Test Output Pane. Messages to the Verbose Stream are displayed in the Output Pane only if the Preference Variables is set to Continue.

When a runbook is tested, it still executes the workflow normally and performs any actions against resources in the environment. For this reason, you should only test runbooks against non-production resources.

To Test a Runbook in Service Management Automation

To test a runbook, open the Draft version of the runbook in the Management Portal. Click the Test button at the bottom of the screen to start the test.

You can stop or suspend the runbook while it is being tested with the buttons underneath the Output Pane. When you suspend the runbook, it completes the current activity before being suspended. Once the runbook is suspended, you can stop it or restart it.

See Also

Service Management Automation
Runbook Authoring [SMA]
Editing a Runbook