42
Travis Wright SCSM SSP WAP SMA PS How a Bunch of Letters Can Help Deliver Solutions Faster, with Fewer Issues, Save Money, Impress the Boss, and Get You a Promotion

Travis Wright - PS WF SMA SCSM SP

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Travis Wright - PS WF SMA SCSM SP

Travis Wright

SCSM SSP WAP SMA PSHow a Bunch of Letters Can Help Deliver Solutions Faster, with Fewer Issues, Save Money, Impress the Boss, and Get You a Promotion

Page 2: Travis Wright - PS WF SMA SCSM SP

Agenda

• PS: PowerShell• WF: PowerShell Workflow• SMA: Service Management Automation• WAP: Windows Azure Pack• SCSM: System Center – Service Manager• SSP: Self-service portal

Page 3: Travis Wright - PS WF SMA SCSM SP

“Button pusher” is the new “pencil pusher”

Page 4: Travis Wright - PS WF SMA SCSM SP

Learn PowerShell or practice the phrase “Would you like fries with that?”-Don Jones, PowerShell MVP

Blue Collar IT vs. White Collar ITJeffrey Snover, Windows Server Lead Architect, Distinguished Engineer, Father of PowerShellhttp://www.youtube.com/watch?v=66cYDdmF9u0#t=64

Page 5: Travis Wright - PS WF SMA SCSM SP

Value of Automation

• Lower costs• Reduce time to completion• Minimize human error• Ensure processes are followed and documented• Abstract away high security operations

Page 6: Travis Wright - PS WF SMA SCSM SP

INTRODUCING POWERSHELL WORKFLOWS (PS WF)

Page 7: Travis Wright - PS WF SMA SCSM SP

Introducing PowerShell Workflows

• Workflows are a PS construct similar to a function or cmdlet• They are converted to and executed as a Windows Workflow

Foundation workflow at runtime• Workflows are different from a function/script/cmdlet

• Some commands don’t work unless they are in an InlineScript block• Workflows can execute commands in parallel or in sequence• Variable lifetime is handled differently• Workflows can persist state• You can suspend/resume a workflow• Workflows “survive” OS shutdowns or network outages• Logging and retry are handled by workflow engine • Runs activities. Cmdlets are run inside of an InlineScript block

Page 8: Travis Wright - PS WF SMA SCSM SP

HelloWorld PowerShell Workflow

Workflow HelloWorld {“Hello World”}

Page 9: Travis Wright - PS WF SMA SCSM SP

Remote Execution

Page 10: Travis Wright - PS WF SMA SCSM SP

Run As

Page 11: Travis Wright - PS WF SMA SCSM SP

Executing Workflows as PowerShell Jobs

Page 12: Travis Wright - PS WF SMA SCSM SP

Retrieving Output of a Job

Page 13: Travis Wright - PS WF SMA SCSM SP

Creating Workflows Using the PowerShell ISE

Page 14: Travis Wright - PS WF SMA SCSM SP

Parameters

• Parameter names can only be letters, numbers, hyphen, underscore

• Hyphenated parameter names must be enclosed in quotes

• Parameters can be mandatory• You can create parameter sets

Page 15: Travis Wright - PS WF SMA SCSM SP

InlineScript

Page 16: Travis Wright - PS WF SMA SCSM SP

Persistence

• A checkpoint stores the current variable values, output, and current command to disk in the user profile of the user running the workflow

• All checkpoints are removed when the workflow completes unless the –AsJob was used in which case it remains until the job is deleted

• -PSPersist $true: creates a checkpoint after each activity• -PSPersist can also be passed to an individual activity• Checkpoint-Workflow activity can be used anywhere in the

workflow

Page 17: Travis Wright - PS WF SMA SCSM SP

Parallelism: ForEach -Parallel

• ForEach –Parallel can be used to For Each through a collection executing the commands contained by the For Each in parallel

• Order is non-deterministic because it depends on each item’s variable completion time

• Max degrees of parallelism: 5

Page 18: Travis Wright - PS WF SMA SCSM SP

Parallel/Sequence Block Example

• Commands in a Parallel block execute in an indeterminate order at the “same” time

• Max degree of parallelism: 5• Commands in a Sequence

block execute in order

Page 19: Travis Wright - PS WF SMA SCSM SP

Suspend/Resume

Page 20: Travis Wright - PS WF SMA SCSM SP

INTRODUCING SERVICE MANAGEMENT AUTOMATION (SMA)

Page 21: Travis Wright - PS WF SMA SCSM SP

Service Management Automation (SMA)

• SMA is a component in the Orchestrator setup• 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 for existing resources or to connect into 3rd party systems (ticketing system, billing system, etc.)

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

Page 22: Travis Wright - PS WF SMA SCSM SP

SMA Advantages Over Orchestrator

• 64-bit support• Native PowerShell execution and PowerShell 3+ support• Checkpoint/restart inside runbooks• Runbook servers architecture is more scalable• Ability to export selected variables, using the SMART tool• Save drafts• Versioned runbooks• Schedule runbooks• Parallel processing• Text authoring vs. visual designer

Page 23: Travis Wright - PS WF SMA SCSM SP

PowerShell

Windows Workflow Foundation

Service Management Automation Runtime

Service Management Automation Web Service API

Windows Azure Pack Admin Portal

SMA PowerShell Module/Cmdlets

SMA Architecture

SCSM Workflows

SCSM Console

SMA

Cireson SMA Connector

Page 24: Travis Wright - PS WF SMA SCSM SP

Integration of Orchestrator and SMA

• System Center 2012 R2 Orchestratorsupports both PowerShell Workflowand Graphical Authoring

• Call SMA from Orchestrator or call Orchestrator from SMA

http://bit.ly/1ciQZZc

PoSh Authoring Graphical Authoring

PoSh Workflow Engine UI Runbook Engine

Process Automation

Interop

Page 25: Travis Wright - PS WF SMA SCSM SP

INTRODUCING WINDOWS AZURE PACK (WAP)

Page 26: Travis Wright - PS WF SMA SCSM SP

TENANT & ADMIN PORTALS

SERVICE BUSWEBSITES VIRTUAL MACHINES

DATABASES VIRTUAL NETWORKS

WAP At a Glance

SERVICE MANAGEMENT API

Page 27: Travis Wright - PS WF SMA SCSM SP

WAP ArchitectureService Admin

PortalTenant Portal

Service Management API

Service Provider Foundation (Tenant, Admin, Usage)

Virtual Machine Manager

Orchestrator Operations Manager

Hyper-V

PaaS Provisioning and Management

Engine

IISSQL Server

Service Bus

Windows Server

Page 28: Travis Wright - PS WF SMA SCSM SP

1ConsistentPlatform

Windows Azure Pack

Service ProvidersPrivate Cloud

Microsoft Cloud

Microsoft Cloud OS Vision

Windows Azure Pack

Windows Azure Platform

Page 29: Travis Wright - PS WF SMA SCSM SP

SMA/WAP DEMO

Page 30: Travis Wright - PS WF SMA SCSM SP

INTRODUCING SYSTEM CENTER – SERVICE MANAGER (SCSM)

Page 31: Travis Wright - PS WF SMA SCSM SP

SCSM Overview

Platform

CMDB DW Workflow .NET API Notifications Console & Forms Security

IT Service Management Solutions

Incident & Problem ManagementService Request FulfillmentChange & Release ManagementConfiguration Management

Knowledge ManagementSelf-service ReportingSelf-service PortalService Catalog Asset Management*

ConnectorsSystem Center – Configuration ManagerSystem Center – Operations ManagerSystem Center – OrchestratorSystem Center – Virtual Machine ManagerActive DirectoryExchangeService Management Automation (SMA)*

* Cireson Products

Page 32: Travis Wright - PS WF SMA SCSM SP

SCSM–SMA Integration (Cireson SMA Connector)

Key Scenarios

Include a SMA runbook activity in a work item processExample: New AD User service request/request offering

Subscription workflows trigger SMA runbooksExample: Automated incident troubleshooting

Page 33: Travis Wright - PS WF SMA SCSM SP

SCSM-SMA Connector Key Design Points

• Connector object• Persisted, shared connector configuration• Securely encrypts and stores credentials• Doesn’t sync data into SCSM CMDB like other connectors

• No “runbook” objects in CMDB like SCO integration – no “contract”!• SMA Runbook Activity Work Item Class

• Derives from Activity Work Item class• Can be included in parent work items just like any other activity work item• Generic properties like SCO runbook activity (Text1..10, Boolean1..5, etc.)• Stores mapping of properties to runbook parameters

• SMA runbook subscription workflow wizard• Subscribe to create/update of any class of objects in CMDB

• Helpful Views and Console Tasks• View Runbook• View Runbook Job• Start Runbook Now

Page 34: Travis Wright - PS WF SMA SCSM SP

SCSM-SMA INTEGRATION DEMO

Page 35: Travis Wright - PS WF SMA SCSM SP

INTRODUCING SELF-SERVICE PORTAL (SSP)

Page 36: Travis Wright - PS WF SMA SCSM SP

Self-Service Portal Features

• Service Catalog• Make service requests• Report incidents

• View/update requests• Search knowledge base• Approve/reject requests• Update activities assigned to you

Page 37: Travis Wright - PS WF SMA SCSM SP

Out of Box Portal vs. Cireson PortalOut of Box Portal• Built on SharePoint• Requires Silverlight• Limited style customization• Lots of clicks and scrolling• Service catalog, my requests,

knowledge base• Poor performance/scale• Doesn’t work on x-plat/mobile• Internet-facing not supported• Windows-integrated auth only

Cireson Portal• No SharePoint required• HTML 5, No Silverlight• Complete style customization• Minimal clicks and scrolling• Service catalog, my requests,

knowledge base + analyst portal• Excellent performance/scale• Works on x-plat/mobile• Internet-facing supported• Windows-integrated/forms auth

Page 38: Travis Wright - PS WF SMA SCSM SP

SELF-SERVICE PORTAL DEMO:PUTTING IT ALL TOGETHER

Page 39: Travis Wright - PS WF SMA SCSM SP

Questions & Discussion

Travis WrightDirector, Product ManagementCireson

[email protected]@radtravis

Page 40: Travis Wright - PS WF SMA SCSM SP

Please evaluate the session before you leave

Page 41: Travis Wright - PS WF SMA SCSM SP

Use layouts with this backgroundfor generic text

Page 42: Travis Wright - PS WF SMA SCSM SP

Use layouts with this background for software code