22
System Center 2012 R2 Windows Azure Pack Service Management Automation 101

System Center 2012 R2 Windows Azure Pack

Embed Size (px)

DESCRIPTION

System Center 2012 R2 Windows Azure Pack. Service Management Automation 101. 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 - PowerPoint PPT Presentation

Citation preview

Page 1: System Center 2012 R2 Windows Azure Pack

System Center 2012 R2

Windows Azure PackService Management Automation 101

Page 2: System Center 2012 R2 Windows Azure Pack

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 Unleashed (contributing author – Release June 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 2012 R2 Windows Azure Pack

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 4: System Center 2012 R2 Windows Azure Pack

Service Management Automation

Introduction

Demo

Page 5: System Center 2012 R2 Windows Azure Pack

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 6: System Center 2012 R2 Windows Azure Pack

Service Management Automation

First runbook

Demo

Page 7: System Center 2012 R2 Windows Azure Pack

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 8: System Center 2012 R2 Windows Azure Pack

Service Management Automation

Triggers+

Schedules

Demo

Page 9: System Center 2012 R2 Windows Azure Pack

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 10: System Center 2012 R2 Windows Azure Pack

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 11: System Center 2012 R2 Windows Azure Pack

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 12: System Center 2012 R2 Windows Azure Pack

Service Management Automation

Check Points

Demo

Page 13: System Center 2012 R2 Windows Azure Pack

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 14: System Center 2012 R2 Windows Azure Pack

SMA : Runbook Authoring and Tools

Things to consider when creating SMA RunbooksCheck Out: http://aka.ms/IntroToSMA

Tags

Logging

Progress

“Atomic” Runbooks that are modular in nature

Page 15: System Center 2012 R2 Windows Azure Pack

Service Management Automation

Logging / Progress

Demo

Page 17: System Center 2012 R2 Windows Azure Pack

Service Management Automation

Import Export

Demo

Page 18: System Center 2012 R2 Windows Azure Pack

SMA : Working with modules

Creating SMA friendly PowerShell modules• Include for every cmdlets

• Synopsis

• Description

• Help uri

• Cmdlet should be able to take in a connection object as a parameter.

• Cmdlets in the module should be stateless

• Define output type for all cmdlets (IntelliSense)

Page 19: System Center 2012 R2 Windows Azure Pack

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 20: System Center 2012 R2 Windows Azure Pack

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 21: System Center 2012 R2 Windows Azure Pack

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 22: System Center 2012 R2 Windows Azure Pack

Thank You

Jakob Gottlieb Svendsen - @JakobGSvendsen

http://blog.coretech.dk/jgs

PowerShell User Group

http://www.psug.dk