Runbook properties

Important

This version of Orchestrator has reached the end of support. We recommend you to upgrade to Orchestrator 2022.

A runbook is essentially a series of activities that are using data, performing tasks, and publishing data for use by other activities in the runbook. Each runbook has a collection of configurable properties. These properties let you customize the behavior of a runbook.

View the properties of a runbook

Follow these steps to view the properties of a runbook:

  1. In the Runbook Designer, in the Connections pane, select the Runbooks folder.

  2. If the runbook is stored in a folder, select the appropriate folder under Runbooks.

  3. In the Runbook Designer Design workspace, right-click the tab of a runbook to select Properties.

  4. To close the Runbook Properties dialog, select Finish.

A summary of the runbook properties and how to configure them follows.

General

On the General tab of the Runbook Properties dialog, you can customize a name and description for the runbook. You can also associate a schedule with the runbook. After you assigned a schedule to the runbook, the runbook only runs on the dates and times that you specified in the schedule.

Create a schedule

  1. In the Runbook Designer, in the Connections pane, expand the Global Settings folder.

  2. Right-click the Schedules folder to select New to selectSchedule.

  3. On the General tab of the New Schedule dialog, in the Name box, enter a name for the schedule.

  4. On the Details tab of the New Schedule dialog, select the date and time to start the runbook.

Configure the schedule for specific days of the week

  1. On the Details tab of the New Schedule dialog box, click Days of the week, and then select the days on which you want to start the runbook.

  2. Under Occurrence, select the week of the month to start the runbook.

    For example, if you want to start the runbook every Monday, under Days of the week, select Monday, and under Occurrence, select First, Second, Third, Fourth, and Last.

Configure the schedule for specific days in the month

  1. On the Details tab of the New Schedule dialog, select Days of the month.

  2. In the Days of the month box, enter the date or dates on which you want to start the runbook.

    Separate multiple dates with a comma.

    For example, if you want to start the runbook on the first and 15th of every month, enter 1, 15 in the Days of the month box.

Configure the schedule for specific hours

  1. On the Details tab of the New Schedule dialog, select Hours.

  2. In the Schedule Hours dialog, select the hours on which you want to start the runbook.

    You can both allow and deny the start of a runbook during any period. For example, if you want to start a runbook only outside business hours, select the hours of 9 AM to 5 PM for Monday, Tuesday, Wednesday, Thursday, and Friday, and select Denied.

  3. On the Exceptions tab of the New Schedule dialog, add any date exceptions for the runbook, and select OK.

  4. Select Finish.

Important

The scheduled date and time to start a runbook is based on the system clock of the runbook server. This enables schedules to function in virtual machine environments and to continue to run even when the system clock adjusts for daylight savings time.

Associate a schedule with a runbook

  1. In the Runbook Properties dialog, on the General tab, select the ellipsis button (...) to browse for a Schedule.

  2. Select a schedule, select OK, and then select Finish.

Runbook servers

This tab displays the list of runbook servers assigned to run this runbook. If the list is empty, the runbook uses the setting defined in the Runbook Servers folder found in the Connections pane of the Runbook Designer. If the runbook server that uses the Primary role is available, the runbook runs on it. If the primary runbook server isn't available, each runbook server that uses a Standby role is checked until one is found that can run the runbook.

You can override the default behavior and assign a primary and any number of standby runbook servers to a runbook. It's useful to assign a specific runbook server to a runbook if the runbook requires access to a specialized resource, such as a backup device.

Assign primary and standby runbook servers to a runbook

Follow these steps to assign primary and standby runbook servers to a runbook:

  1. In the Runbook Properties dialog, on the Runbook Servers tab, select Override default Runbook Server roles to configure primary and standby runbook servers.

  2. Select Add.

  3. Select a runbook server, and select OK.

    The first runbook server that you added becomes the primary runbook server.

  4. To add more runbook servers, select Add, and select another runbook server.

    All additional runbook servers are added as standby runbook servers.

  5. When you're finished adding runbook servers, select Finish.

Logging

This feature controls what data is logged to the orchestration database. If stored in the orchestration database, this data is visible in views such as the Log pane in the Runbook Designer and in the Orchestration console. This information doesn't affect the availability of Published Data in a running runbook.

Published Data includes data specific to each activity.

Common Published Data is a set of data items that are common to all activities. These items are as follows:

  • Activity Name

  • Activity Type

  • Activity ID

  • Activity End Time Year, Month, Day, Weekday, Hours, Minutes, Seconds

  • Activity Duration

  • Previous Activity

  • Previous Activity Name

Caution

When you turn on logging, the size of the orchestration database increases.

Event notifications

You can enable event notification for the runbook. Notifications appear in views such as the Log pane in the Runbook Designer and in the Orchestration console.

If you want to be notified when a runbook runs for more than a specified length of time, enter a value in the seconds box.

If you want to be notified if the runbook doesn't run, select the Runbook fails to run option.

For more information about event notifications, see Orchestrator Logs.

Job concurrency

The job concurrency setting lets you set the maximum number of simultaneous jobs so that you can carry out multiple requests for the same runbook at the same time. This setting applies to the individual runbook. A runbook server can run 50 runbooks at the same time. If you select a job concurrency setting over 50, your environment requires more runbook servers or the requests to start a runbook will queue.

The following limitations apply:

  • You can't run simultaneous requests for runbooks that start with Monitoring activities. If you try to change the maximum number of simultaneous requests for these runbooks, the Runbook Designer resets the Maximum number of simultaneous jobs value to 1 and displays an error message.

  • A runbook server runs simultaneous requests for runbooks up to the maximum processing limit. To change the maximum processing limit, see How to Configure Runbook Throttling.

  • Don't create simultaneous requests for runbooks that contain Modify Counter activities. When you run different copies of the same runbook at the same time that modify (set, reset, increment, or decrement), a Counter can cause the Counter value to become unreliable. You can read the value of Counters in runbooks that run at the same time.

  • Don't run simultaneous requests for runbooks that interact with a non-Microsoft product, such as a ticketing or system-monitoring tool, unless you have a good understanding of how the tool handles parallel processing. If the non-Microsoft application can't handle parallel processing, or if you don't know, leave the maximum number of simultaneous requests at a value of 1.

  • Plan the use of multiple requests carefully. Before you change the maximum number of simultaneous runbook requests, consider the tasks performed by the runbook. Verify that each runbook instance can finish successfully. For example, if your runbook creates a folder, copies files into it, and then deletes the folder when it's finished, one instance of the runbook might delete the folder before other instances are finished with it. In this case, you should keep the maximum number of simultaneous requests for this runbook a value of 1 to avoid conflicts.

Returned Data

Returned Data defines the data that a runbook returns when it finishes. Each Returned Data definition can contain either a single or multiple parameter values. To populate the data definitions, end the workflow with a Return Data activity that contains the return values.

You access the Returned Data values through Published Data in one of several ways.

  • Invoke the runbook from another runbook by using the Invoke Runbook activity. The parent runbook can access the child runbook's Returned Data as Published Data from the Invoke Runbook activity.

  • View the Published Data from the Runbook Designer or Orchestration console.

  • Use the Orchestrator web service to return the Published Data programmatically.

To define the Returned Data for a runbook to return, use Add, Edit, and Remove to create each parameter.

Next steps

View Orchestrator Logs to see event notifications.