Download - Travis Wright - PS WF SMA SCSM SP
![Page 1: Travis Wright - PS WF SMA SCSM SP](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/1.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/2.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/3.jpg)
“Button pusher” is the new “pencil pusher”
![Page 4: Travis Wright - PS WF SMA SCSM SP](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/4.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/5.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/6.jpg)
INTRODUCING POWERSHELL WORKFLOWS (PS WF)
![Page 7: Travis Wright - PS WF SMA SCSM SP](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/7.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/8.jpg)
HelloWorld PowerShell Workflow
Workflow HelloWorld {“Hello World”}
![Page 9: Travis Wright - PS WF SMA SCSM SP](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/9.jpg)
Remote Execution
![Page 10: Travis Wright - PS WF SMA SCSM SP](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/10.jpg)
Run As
![Page 11: Travis Wright - PS WF SMA SCSM SP](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/11.jpg)
Executing Workflows as PowerShell Jobs
![Page 12: Travis Wright - PS WF SMA SCSM SP](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/12.jpg)
Retrieving Output of a Job
![Page 13: Travis Wright - PS WF SMA SCSM SP](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/13.jpg)
Creating Workflows Using the PowerShell ISE
![Page 14: Travis Wright - PS WF SMA SCSM SP](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/14.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/15.jpg)
InlineScript
![Page 16: Travis Wright - PS WF SMA SCSM SP](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/16.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/17.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/18.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/19.jpg)
Suspend/Resume
![Page 20: Travis Wright - PS WF SMA SCSM SP](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/20.jpg)
INTRODUCING SERVICE MANAGEMENT AUTOMATION (SMA)
![Page 21: Travis Wright - PS WF SMA SCSM SP](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/21.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/22.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/23.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/24.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/25.jpg)
INTRODUCING WINDOWS AZURE PACK (WAP)
![Page 26: Travis Wright - PS WF SMA SCSM SP](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/26.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/27.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/28.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/29.jpg)
SMA/WAP DEMO
![Page 30: Travis Wright - PS WF SMA SCSM SP](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/30.jpg)
INTRODUCING SYSTEM CENTER – SERVICE MANAGER (SCSM)
![Page 31: Travis Wright - PS WF SMA SCSM SP](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/31.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/32.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/33.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/34.jpg)
SCSM-SMA INTEGRATION DEMO
![Page 35: Travis Wright - PS WF SMA SCSM SP](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/35.jpg)
INTRODUCING SELF-SERVICE PORTAL (SSP)
![Page 36: Travis Wright - PS WF SMA SCSM SP](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/36.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/37.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/38.jpg)
SELF-SERVICE PORTAL DEMO:PUTTING IT ALL TOGETHER
![Page 40: Travis Wright - PS WF SMA SCSM SP](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/40.jpg)
Please evaluate the session before you leave
![Page 41: Travis Wright - PS WF SMA SCSM SP](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/41.jpg)
Use layouts with this backgroundfor generic text
![Page 42: Travis Wright - PS WF SMA SCSM SP](https://reader035.vdocument.in/reader035/viewer/2022081516/54ba00e94a79599a2e8b4649/html5/thumbnails/42.jpg)
Use layouts with this background for software code