25
Service Management Automation Introduction Jakob Gottlieb Svendsen Coretech A/S http://blog.coretech.dk/jgs @JakobGSvendsen

System Center Universe Europe 2014 - Jakob Gottlieb Svendsen - Service Management AutomationIntroduction

Embed Size (px)

DESCRIPTION

System Center Universe Europe 2014 Jakob Gottlieb Svendsen Service Management Automation Introduction

Citation preview

Page 1: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

Service Management AutomationIntroductionJakob Gottlieb SvendsenCoretech A/Shttp://blog.coretech.dk/jgs@JakobGSvendsen

Page 2: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

Who am I• Jakob Gottlieb Svendsen - @JakobGSvendsen• Profession

• Chief Developer, Coretech A/S, System Center Gold Partner

• Titles• System Center Cloud and Data Center Management MVP• Windows Azure Pack / SMA• Orchestrator + Extensions for SCSM + SCOM• VBScript / PowerShell / VB.NET / C#.NET

• Communities• Co-Founder of the Danish PowerShell User Group (www.psug.dk)• Moderator on Microsoft TechNet Forums

• Author• Service Manager 2012 R2 Unleashed (contributing author – Release 2014)• Mastering System Center Orchestrator 2012 – 3 day workshop• Windows Azure Pack - SMA Workshop/course (in development)• Advanced SCOM management pack design/development Workshop/course (in

development)

Page 3: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

Use cases for process automation

http://blogs.technet.com/b/privatecloud/archive/2013/10/29/3589799.aspx

Area Example

Alert Triage and Remediation Automating tier 1 monitoring activities(diagnostics and recoveries)

Maintenance Tasks Cluster patchingStop/start servers or services in the right sequenceAutomate SQL Server maintenance tasksMaintenance windows

Service Catalog, Provisioning and Change Management Automation

Automate all or part of change management activitiesServer and VM provisioningIntegration with a service catalog

Dynamic Resource Allocation e.g. depending on load or calendar

Cross-Technology Integration Consistently integrate ticketing in processesMigration and interoperability between different solutions(e.g. new monitoring or ticketing system)

Line of Business Scenarios New employee onboarding, password resets, file transfers, etc.

Page 4: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

Service Management Automation (SMA)

- System Center 2012 R2 Orchestrator adds support forPowerShell Workflows through the SMA feature

- Browser-based runbook authoring integrated into the WAP Admin Portal

- Supports requirements for scale and high availability

- Import PS modules and create additional modules and runbooks

- Check out the Building Clouds Blog for an Introduction to SMA http://aka.ms/IntroToSMA

Page 5: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

DemoIntroduction

Page 6: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

Introducing PowerShell Workflows

- Workflows are a PS construct similar to a function or cmdlet

- Converted to and executed as a Windows Workflow Foundation workflow

- Workflows are different from a function/script/cmdlet

- Workflows can execute commands in parallel or in sequence

- Workflows can persist state

- You can suspend/resume a workflow

- Workflows “survive” OS shutdowns or network outages

- Runs activities. Cmdlets are run inside of an InlineScript block

Page 7: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

DemoFirst runbook

Page 8: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

SMA enhancements to PowerShell Workflow

- High availability workflow execution backed by SQL Server

- Centralized, machine-independent store

- Variables, Credentials, Connections, Certificates

- Schedules, Actions (Trigger on Events)

- Modules, Workflows, Checkpoints

- Built-in versioning for workflows and modules- API interface over HTTP (Odata web service)

- Historical view of all workflow jobs and their output

Page 9: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

DemoAssets + Schedules

Page 10: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

SMA : Architecture and Installation

Web Service

• Standard interface for all of SMA

• Security group controls access

• HTTPS support to secure connection to clients

Runbook Worker

• All runbook jobs are picked up by one or more runbook workers

• Runs under a service account

PowerShell Module

• SMA PowerShell module to enable management of SMA through cmdlets

Service Admin Portal integration

• Connect the Service Admin portal to the SMA web service

Page 11: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

SMA : Architecture and Installation

• Authoring• Debugging• Operating

Service Management Portal

• Runbook service• PowerShell Modules

Runbook Workers

•REST oData web service•Authorizes users

Web Service

•Runbooks•Runbook Resources•Tracks runbook job state

SMA DatabaseSubmit requestsRunbooks

Jobs

Modules Activies

Return results

SQL Database

&

ODATA REST Web Service

Persist State

Pick up Jobs

Runbook Workers

Http Response Http Request

Service Management Portal

Page 12: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

Service Management Automation – Minimum Setup

http://technet.microsoft.com/en-us/library/dn296433.aspx

WAPAdmin API

Admin Portal

Orchestrator/SMAWeb Service

Runbook WorkerPowershell Module

WAP Database SMA Database

Page 13: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

DemoCheck Points

Page 14: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

SMA Architecture with Service Manager

PowerShell

Windows Workflow Foundation

Service Management Automation Runtime

Service Management Automation Web Service API

Windows Azure Pack Admin Portal

SMA PowerShell Module/Cmdlets

SCSM WorkflowsSCSM Console

SMA

Cireson SMA Connector

Cireson SMA Connector

Page 15: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

Integration of Orchestrator and SMA

- Orchestratorsupports

- PowerShell Workflow

- Graphical Authoring

- Call SMA from Orchestrator

- Call Orchestrator from SMA

http://bit.ly/1ciQZZc

PowerShell Workflow

Engine

UI Runbook Engine

Process Automation

PowerShell Authoring

Graphical Authoring

Page 16: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

SMA Advantages Over “Classic” Orchestrator

- 64-bit support

- Native PowerShell execution and PowerShell 3+ support

- Checkpoint/Resume inside runbooks

- Runbook servers architecture is more scalable

- Save/Test drafts

- Versioned runbooks

- Schedule runbooks

- Parallel processing inside runbooks

Text authoring vs. Visual Designer

Page 17: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

Moving Runbooks and Conceptsfrom Orchestrator to SMA

- Sample migration case & Tools available to help

- 2-part blog post series about calling an Orchestrator Runbook from SMA, and integrating with Service Manager

- http://blogs.technet.com/b/privatecloud/archive/2013/11/01/calling-an-orchestrator-runbook-from-sma-part-1.aspx

- Orchestrator and SMA integration in action

- http://blogs.technet.com/b/privatecloud/archive/2013/12/11/automation-fun-with-orchestrator-and-sma-integration-points.aspx

- Smart for Runbook Conversion

- http://blogs.technet.com/b/privatecloud/archive/2013/11/25/automation-service-management-automation-sma-runbook-toolkit-spotlight-smart-runbook-conversion-helper.asp

Page 18: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

SMA : Runbook Authoring

- Things to consider when creating SMA Runbooks- Check Out: http://aka.ms/IntroToSMA

- Tags

- Logging

- Progress

- “Atomic” Runbooks that are modular in nature

Page 19: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

DemoLogging / Progress

Page 20: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

SMA : Runbook Authoring Tools

- WAP Portal

- PowerShell ISE

- Emulated Automation Activities Module

- Get it at TechNet Gallery – Joe Levy

- SMA Studio 2014

- FREE! – Open Source

- http://www.sekurbit.se/

Page 22: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

DemoImport Export

Page 23: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

Related Sessions- Today – 17/9:

- 16:45 – 17:15 – Me in Ask the Experts- 17:15 – 18:15 - Manage your Azure through Service Manager and SMA – Kurt

van Hoecke- 17:15 – 18:15 - Advanced Orchestrator Runbook Authoring and Management -

Anders Bengtsson, Peter Zerger- Thursday 18/9

- 10:45 – 11:45 - Building a real self service platform with SCSM, SMA and PowerShell Workflows - Travis Wright

- 17:15 – 18:15 - Service Management Automation (SMA) deep dive - Michael Rüefli, Markus Klein

- Friday 19/9- 14:30 - 15:30 - Self-service software provisioning with SCSM, SCORCH and

SCCM

Page 24: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

Links- Jakob Blog- http://blog.coretech.dk/jgs

- Building Clouds Blog - http://blogs.technet.com/b/privatecloud/

- Tips & Tricks Wiki – Ryan Andorfer http://social.technet.microsoft.com/wiki/contents/articles/26616.quick-tips-and-tricks-for-runbook-writing.aspx

Page 25: System Center Universe Europe 2014 - Jakob Gottlieb Svendsen -  Service Management AutomationIntroduction

Feedback

- Session feedback- SCU session planner

http://planning.systemcenteruniverse.ch- SCU WP app

- Overall Conference feedback- Link sent by email after the conference

- Remember: we will donate for every feedback we receive!