orchestrator use cases appalachian state illinois

17
Orchestrator Use Cases Appalachian State Illinois Andrew Sanders Erik Coleman 1

Upload: lee-glover

Post on 02-Jan-2016

25 views

Category:

Documents


2 download

DESCRIPTION

Orchestrator Use Cases Appalachian State Illinois. Andrew Sanders Erik Coleman. AppState Environment. Single server: SQL instance Runbook server Web console Runbook Designer Runbook Designer also on clients. Current Uses. Four Runbooks : SCCM application requests - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Orchestrator Use Cases Appalachian State Illinois

1

Orchestrator Use Cases

Appalachian StateIllinois

Andrew SandersErik Coleman

Page 2: Orchestrator Use Cases Appalachian State Illinois

Information Technology Services2

AppState Environment

Single server:• SQL instance• Runbook server• Web console• Runbook Designer

Runbook Designer also on clients

Page 3: Orchestrator Use Cases Appalachian State Illinois

Information Technology Services3

Current Uses

Four Runbooks:• SCCM application requests• Endpoint Protection Remediation• Endpoint Protection Remediation clean-up• Help-desk software process

Page 4: Orchestrator Use Cases Appalachian State Illinois

Information Technology Services4

Endpoint Protection Remediation

Page 5: Orchestrator Use Cases Appalachian State Illinois

Using Orchestrator at Illinois

Erik Coleman, Senior Manager, Enterprise [email protected]

Page 6: Orchestrator Use Cases Appalachian State Illinois

Current Environment

• Single Orchestrator Server: – SQL instance with custom DB– Runbook server – Web console – Runbook Designer – In process of moving SQL DB's to separate server

• Custom ASP.NET Web Front End

Page 7: Orchestrator Use Cases Appalachian State Illinois

Current Uses

• Lync Account Provisioning– Person Accounts– Role-based (non-person) Accounts– Common Area Phones– Add/Delete/Change

Page 8: Orchestrator Use Cases Appalachian State Illinois

Lync Account Provisioning Workflow

• Need for phone endpoint• Telecom Unit Coordinator (TUC) submits service

request• Phone Number Assigned• Submit Ticket to Lync Team• Manual Actions by Lync Team (LCP or

PowerShell)• Respond/Close Ticket

Use Orchestrator

Page 9: Orchestrator Use Cases Appalachian State Illinois

LyncProcessingMain Runbook

Page 10: Orchestrator Use Cases Appalachian State Illinois

LyncScripts Child Runbook

Page 11: Orchestrator Use Cases Appalachian State Illinois

Anatomy of our Scripts

• “Run .NET Script” Activity:– Grab data from SQL table– Initialize Lync and Exchange Remote PS Sessions– Invoke Script as 64-bit– Call local Lync-PowerShell Scripts

Page 12: Orchestrator Use Cases Appalachian State Illinois

Typical PowerShell “Wrapper” Code

# Function to initialize Lync and Exchange connectionsFunction ConnectSessions{$pass = ConvertTo-SecureString ”{LyncServiceCredential} -AsPlainText -Force$cred = New-Object System.Management.Automation.PSCredential ("{LyncServiceAccount}",$pass)Import-Module ActiveDirectory$LyncSession = New-PSSession -Name LyncSCORCH –ConnectionURI {LyncConnectionURI} -Credential $credImport-PSSession $LyncSession$ExchangeSession = New-PSSession -Name ExchangeSCORCH –ConfigurationName Microsoft.Exchange -ConnectionUri {ExchangeConnectionURI} -Authentication Kerberos -Credential $credImport-PSSession $ExchangeSession}

Page 13: Orchestrator Use Cases Appalachian State Illinois

Typical PowerShell “Wrapper” Code

# Initialize Remote PowerShell SessionsInvoke-Command –ScriptBlock ${function:ConnectSessions}

# Actual script execution: Grab appropriate script from variables and pass args.$scriptPath = {LyncScriptPath}{LyncAddPersonScript}$argumentList = @()$argumentList += ("-Username",$netid)

$output = Invoke-Expression "& `"$scriptPath`" $argumentList 2>&1" -ErrorAction Continue

Remove-PSSession -Name LyncSCORCHRemove-PSSession -Name ExchangeSCORCH

Page 14: Orchestrator Use Cases Appalachian State Illinois

Is Orchestrator Worth the Time?

• Activating a Lync Account• O = 3180 minutes (53 man-hours)• T = 8 minutes• Nt = 200/month

• T x Nt = 1980 minutes/month saved• Using Orchestrator was “worth it” after 2

months in production

Page 15: Orchestrator Use Cases Appalachian State Illinois

Tips and Tricks

• Avoid Counters• Some Activities not thread-safe, like Append

Line• Junctions are not what they seem• Logging is not centralized (DB, text, and

EventLogs)• Edit PowerShell in PowerGUI (or equiv.)• Native PowerShell 2.0 engine is 32-bit only

Page 16: Orchestrator Use Cases Appalachian State Illinois

Future Orchestrator Uses

• Some things already done with PowerShell• Identity Changes• VM Provisioning

Page 17: Orchestrator Use Cases Appalachian State Illinois

Questions?