Jakob Gottlieb Svendsen System Center Orchestrator Service Management Automation Introduction @JakobGSvendsen http://blog.coretech.dk/jgs/ Who am I • • Chief Developer / Consultant / Trainer Coretech A/S, System Center Gold Partner – • Titles – – • – Orchestrator / Service Management Automation / Windows Azure Pack Extensions for System Center (PS,VB.NET,C#.NET) Communities – • System Center Cloud and Data Center Management MVP Member of the System Center Influencers Team Areas – • Offices in Co-Founder of the Danish PowerShell User Group (www.psug.dk) Author / Training – – – Service Manager 2012 Unleashed (contributing author – Released October 2014) Mastering System Center Orchestrator 2012 – 3 day workshop Service Management Automation - 3 day Workshop (New!) Introduction Service Delivery stack Core Virtual Machine Manager Fabric, library & cloud management PaaS Websites IaaS Virtual machines PaaS IaaS AzureService Pack Network PaaS Database bus Operations Manager Infrastructure & application monitoring, alerting & usage Service Manager IT service management & request authoring Resource clouds Automation Billing Tenant Hosting management plan Orchestrator Integration & automation of key technologies & processes with SMA & Service Manager Data Protection Manager Hardware Continuous protection of key applications & workloads Service Management Automation (SMA) • System Center 2012 R2 Orchestrator adds support for PowerShell Workflows through the SMA feature • Browser-based runbook authoring integrated into the Azure Pack 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 Demo First runbook Portal • Centralized library for all Automation – – • Create runbooks within portal Call existing runbooks in library Manage Assets – – – – – • Modules Variables (standard and encrypted) Credentials (PowerShell Credentials and Certificates) Certificates Connections Test – – • Run runbook and see results within authoring window Troubleshoot issues Publish – Edit draft before publishing Demo Assets + Schedules SMA : Architecture and Installation Service Management Portal Service Management Portal Http Response • Authoring • Debugging • Operating Http Request Runbook Workers ODATA REST Web Service Return results • Runbook service • PowerShell Modules Web Service SQL Database Runbook Workers •REST oData web service •Authorizes users SMA Database Submit requests Runbooks Pick up Jobs Jobs Persist State Modules & Activies •Runbooks •Runbook Resources •Tracks runbook job state SMA : Installation Minimum Setup WAP Database WAP Admin API Admin Portal Admin Auth Orchestrator/SMA Web Service Runbook Worker Powershell Module SMA Database http://technet.microsoft.com/en-us/library/dn296433.aspx 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 Schedule runbooks Parallel processing inside runbooks • Text authoring vs. Visual Designer Demo Check Points Tools SMA : Runbook Authoring Tools • Azure Pack Portal • PowerShell ISE – Emulated Automation Activities – Get it at TechNet Gallery: Joe Levy • SMA Studio 2014 – FREE! – Open Source – http://www.sekurbit.se/ SMA : Other Tools – Import / Export • SMA Toolkit • Visualization and Dependency Mapping Tool • Import and Export Tool • Import complete folders + other options • Documentation and Conversion Helper Tool • For Classic Orchestrator • SMART for Runbook Import and Export http://blogs.technet.com/b/privatecloud/archive/2014/09/23/updated-sma-runbook-toolkit-smart-download-with-new-visualization-and-dependency-mappingtool.aspx Demo Logging / Progress SMA with Orchestrator Integration into each other via PowerShell modules Interoperability Orchestrator Roadmap Today: Orchestrator and Automation Orchestrator for Datacenter Azure Automation, SMA and Azure Pack User Interface • Standalone Management Console • Access Permissions (RBAC) User Interface • Web portal Authoring • Graphical, forms-based authoring of runbooks • Visualize end-to-end orchestration • Testing console to validate end to end process Authoring • PowerShell Authoring • Service Administrator can create runbooks to automate all aspects of cloud infrastructure, plan delivery, and maintenance activities Runbook Engine • Highly available • Custom workflow engine • Databus to easily pass information between activities Runbook Engine • Highly available • PowerShell Workflow based engine Integration • Integration packs for Microsoft and 3rd party systems • Orchestrator toolkit to extend into custom systems Integration • PowerShell Module based integration • Use existing PowerShell modules for Microsoft and 3rd party systems • Create PowerShell modules for additional resources/systems New Web portal • Based on the new Azure Portal • Role Based Access Control – Grant permissions to Automation resources Graphical Authoring • Visual Process – – – • Design your end to end processes using a visual experience Share easily with co-workers responsible for different parts of the process Document end to end process based on visual representation Data Bus – – • Subscribe to previous activities published data at design time Publish results to data bus during runtime. Authoring – – Create runbooks using forms based authoring Easily identify where the process failed for enhanced debugging Managing Runbooks & Jobs • Dashboard View – – • View runbook jobs over time Find jobs that may need attention Runbooks View – – – • Filtering of jobs based on status and date Identify authoring state (New, In edit, Published) Filter by tags to group related runbooks Jobs View – – – – – History of jobs per runbook Who last updated and when Input parameters and output Drill into each job to view streams generated to help troubleshooting Stop, Suspend and Resume job Consistent Runbooks / Assets / API • Runbooks – – • Runbooks can be moved between Azure & On premises Export & Import without changing PowerShell script API / PowerShell Module – – Consistent API so you can automate runbooks in Azure & on premises the same way Azure module for Automation to work against Azure and on premises Gallery • Content – Bring in Runbooks, PowerShell scripts, workflows and modules from Microsoft & community locations. • Integrated Experience – Customers can find and import content from within portal experience • Ecosystem – Customers can contribute runbooks and modules to community Coming: Orchestrator and Automation One Automation Solution for Azure and On Premises User Interface • Web portal • Access Permissions (RBAC) Authoring • Graphical Authoring • PowerShell Authoring • Visualize end-to-end orchestration • Gallery • Service Administrator can create runbooks to automate all aspects of cloud infrastructure, plan delivery, and maintenance activities Runbook Engine • Highly available • PowerShell Workflow based engine Integration • PowerShell Module based integration • Use existing PowerShell modules for Microsoft and 3rd party systems • Create PowerShell modules for additional resources/systems Tools • Tools to convert SCO Integration Packs and runbooks Orchestrator Investments move forward • Integration packs – – Migration tool to convert Orchestrator Integration packs to PowerShell modules Write PowerShell module for built in Orchestrator activities • Runbooks – – Migration tool to export runbooks from Orchestrator and import into new system Some fix up of runbooks required for things not directly supported • Service Manager connector – – New SM connector to allow it to work with the new Orchestrator solution. Update existing SM processes to use new connector Orchestrator Roadmap •Orchestrator for traditional datacenter Automation System Center •Heterogeneous support with Integration Packs 2012 / SP1 •Updated Orchestrator with additional integration packs and customer feedback System Center •Released Service Management Automation for the Azure Pack 2012 R2 Azure Automation vNext •Released Automation in Azure (Generally available now) •Multi-tenant solution for Azure operational tasks •Single Automation solution for cloud and datacenter automation •Graphical authoring •Consistent solution delivered in Azure and on premises •Convert non-PowerShell-based runbooks to PowerShell Workflow runbooks. Convert integration packs to PowerShell modules Demo Automate Everything! SMA Sessions at NIC 2015 Thursday • PowerShell Workflows: Prepare yourself for SMA and Azure Automation – 10:00 - 11:00 - Room 1 - Aleksandar Nikolic • System Center - Service Management Automation - Introduction – 11:20 - 12:20 - Room 1 - Jakob Gottlieb Svendsen • SMA - real-life experiences and troubleshooting – 13:20 - 14:20 - Room 1 - David O'Brien & Trond Hindenes • Automating DevOps between SCSM and TFS using SMA – 14:40 - 15:40 - Room 6 - Travis Wright • System Center - Service Management Automation – Automating System Center 2012 R2 – 16:00 - 17:00 - Room 1 - Jakob Gottlieb Svendsen Friday • Hangovers (and other subjects like SCSM in the cloud!) Links • My 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-tipsand-tricks-for-runbook-writing.aspx