Travis Wright - PS WF SMA SCSM SP

Preview:

DESCRIPTION

 

Citation preview

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

Agenda

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

“Button pusher” is the new “pencil pusher”

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

Value of Automation

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

INTRODUCING POWERSHELL WORKFLOWS (PS WF)

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

HelloWorld PowerShell Workflow

Workflow HelloWorld {“Hello World”}

Remote Execution

Run As

Executing Workflows as PowerShell Jobs

Retrieving Output of a Job

Creating Workflows Using the PowerShell ISE

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

InlineScript

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

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

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

Suspend/Resume

INTRODUCING SERVICE MANAGEMENT AUTOMATION (SMA)

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

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

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

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

INTRODUCING WINDOWS AZURE PACK (WAP)

TENANT & ADMIN PORTALS

SERVICE BUSWEBSITES VIRTUAL MACHINES

DATABASES VIRTUAL NETWORKS

WAP At a Glance

SERVICE MANAGEMENT API

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

1ConsistentPlatform

Windows Azure Pack

Service ProvidersPrivate Cloud

Microsoft Cloud

Microsoft Cloud OS Vision

Windows Azure Pack

Windows Azure Platform

SMA/WAP DEMO

INTRODUCING SYSTEM CENTER – SERVICE MANAGER (SCSM)

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

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

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

SCSM-SMA INTEGRATION DEMO

INTRODUCING SELF-SERVICE PORTAL (SSP)

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

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

SELF-SERVICE PORTAL DEMO:PUTTING IT ALL TOGETHER

Questions & Discussion

Travis WrightDirector, Product ManagementCireson

travis.wright@cireson.com@radtravis

Please evaluate the session before you leave

Use layouts with this backgroundfor generic text

Use layouts with this background for software code

Recommended