Home » Orchestrator » Validate your runbook design – part IV


Welcome to contoso.se! My name is Anders Bengtsson and this is my blog about Azure infrastructure and system management. I am a senior engineer in the FastTrack for Azure team, part of Azure Engineering, at Microsoft.  Contoso.se has two main purposes, first as a platform to share information with the community and the second as a notebook for myself.

Everything you read here is my own personal opinion and any code is provided "AS-IS" with no warranties.

Anders Bengtsson

MVP awarded 2007,2008,2009,2010

My Books
Service Manager Unleashed
Service Manager Unleashed
Orchestrator Unleashed
Orchestrator 2012 Unleashed
Inside the Microsoft Operations Management Suite

Validate your runbook design – part IV

Using the Run Program activity can sometimes be a bit tricky. This activity will report success if the command execute ok, even if the command execute with a bad result. For example, if I use it to copy a file, but the target folder does not exist, it will still report success, as the command, COPY, worked fine. As you can see in the image below, the activity report back success, but if we look at the program output we see that the copy job did not work.

A way to handle this is to add validation as the next step in the runbook. For example in this scenario verify that the target file exists

I have added a check to the SCO Validation Runbook, that checks if you are using any run program activities, just as a reminder to verify that you check the result of the command. You can download the new version of the runbook 20110909_scoCheck_WOLF. Please note that this is provided “as is” with no warranties at all. If you have any ideas what I should add, please post them as comment to this post or send me an e-mail. Also please note this is all based on my ideas and is not a “Health check” or Microsoft official guidelines.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.