Microsoft Office Tutorials and References
In Depth Information
Applying the runbook concept to Office 365
Figure 7-1 Orchestrator runbook example that has four activities.
As Figure 7-1 shows, an Orchestrator runbook has an initial activity that processes actions
and passes the results to the next activity. In Figure 7-1, the initial activity is the Monitor
Folder activity. As its name suggests, this activity monitors a folder for any number of
specific criteria such as a file name, file date, number of files, and other properties. This activity
continues until the specified criteria are met. In the terms used by Orchestrator, meeting
the criteria is a success. The runbook then follows the link to the Find Text activity. The Find
Text activity looks for specific text passed on by the Monitor Folder activity. The criteria
for the text might be a name, computer name, domain name, case sensitivity, or an exact
match of numbers and text. Once the Find Text criteria are met, the Write Web Page
activity will run. This activity uses the text information from the preceding Find Text activity and
appends data to a web page or creates a new web page based on an HTML template. The
final activity, the Send Mail activity, sends an email notification to an email address with a
message that the runbook has finished.
Applying the runbook concept to Office 365
In Figure 7-1, the Monitor Folder activity has properties that would search for a file with
any name. The file could be a text file that contains information about a user account. It
could contain the user's User Principle Name (UPN), first name, and last name. The second
activity in the runbook could be configured to read the information and pass it in a variable
to the next activity. You could then use this runbook to create a new account in Office 365
using a Windows PowerShell cmdlet. You will learn more about Office 365 Windows
PowerShell cmdlets in Chapter 9, “Windows PowerShell for Office 365.”
Now, instead of writing data to a web page as the third activity, we will run a Windows
PowerShell cmdlet instead. Figure 7-2 shows the minor change in the runbook to support
the Run Program activity. The change in our activity to a run program provides the
capability to create the new user account in Active Directory and then run the DirSync command
to synchronize the account in Office 365, followed by the Windows PowerShell cmdlet to
assign Office 365 licenses to the user account.
Search JabSto ::

Custom Search