Service Management Automation: 3,2,1, Automate!

Slides:



Advertisements
Similar presentations
Yet another Service Management Automation Session
Advertisements

Lower costs and improve predictability Automation Enable service owners to focus on work that adds business value Reduce error-prone manual activities.
Automating Microsoft Azure with PowerShell MMS Minnesota 2014 Trevor Sullivan and David O’Brien – #MMSMinnesota.
Integrate into existing systems with PowerShell integration modules Extend by building PS modules to enable integrating into other systems Optimize.
CMDB Ticketing Billing Management Systems Web based Runbook Authoring: Service Administrator can create runbooks to automate all aspects of cloud.
Welcome Course 20410B Module 0: Introduction Audience
Your CMDB and PowerShell DSC: DevOps Techniques
WMU GNL Automation How to make my IT life easier CHRISTOPHER KEYAERT CONSULTANT AT INOVATIV CLOUD AND DATACENTER MANAGEMENT MVP.
System Center 2012 R2 Windows Azure Pack Service Management Automation 101.
VIR314. Understand the scenarios Application support Understand the scenarios Application support Review of the sequencing process Demo Review of the.
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 15 Technical Preview and published July 2012.
Automate Microsoft Azure Ross Sponholtz Mark Ghazai.
Deploying and Managing Windows Server 2012
OM. Brad Gall Senior Consultant
SCORCH – Fun Recipes for RunBooks MMS Minnesota 2014 Steve Jesok & Matthew #MMSSCOrch.
CMDB Ticketing Billing Management Systems VIRTUAL MACHINE CLOUDS 12 SQL SERVER 9 PLANS 12 WEBSITE CLOUD 12 MYSQL SERVERS 0 NOTIFICATIONS 0 USER.
Trevor Sullivan Solution Architect Project Leadership Associates.
System Center Reporting Zero to Hero 15 minutes x 4 MMS Minnesota 2014 Samuel Erskine (Sam) Dieter Gasser (Didi) IT Driving Fellow Principal Consultant.
Yes, Applications DO work in task sequences!
4/24/2017 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
Orchestrator 2012 The Unknown Hero of Automation David Norling-Christensen Senior Systems Architect.
Automating Operational and Management Tasks in Microsoft Operations Management Suite and Azure
Node.js & Windows Azure AZR326  JavaScript on the Server!  Event driven I/O server-side JavaScript  Not thread based, each connection uses only a.
End to End Automation with MDT Managing your reference images. Fred om Daniel
A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson.
Windows 10 Setup InternalsWindows 10 Setup Internals Johan
Are you Ready for Configuration Manager vNext?
PowerShell Package Management for the Enterprise Kirk Aleksandar
Windows 10 Feature & Servicing Updates Options and Demystifying Steven Rachui
Define, bundle, deployDefine, bundle, deploy Working with Windows Server Containers and Docker James David O’Brien.
Azure Automation Tao Yang & Pete Zerger ARC311 Microsoft Ignite 2015
ConfigMgr! Intune! Azure!ConfigMgr! Intune! Azure! Understanding Cloud Based Management Options Steven Rachui
Managing Third Party Updates with Microsoft’s System Center Configuration Manager Secunia Integration, MMS 2015 Kent AgerlundSherry Kissinger.
Nano ServerNano Server The Future of Window Server Mikael Johan
House of tails dogs charity All donations go 100% to the charity #MMSGIVEBACK.
Managing iOS Device Using ConfigMgr and Intune Hybrid MDM John Presenter #2 Twitter Handle Blog or address.
PowerShell Community Handbook Kirk Aleksandar
Critical Security Controls & Effective Cyber Defense Hasain “The Wolf”
Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea.
Introduction to Administering a SQL Server Matthew Steve Thompson, stevethompsonmvp.wordpress.com.
The Art of deploying Windows 10 With ConfigMgr 2012 R2 Johan Mikael
XPlatform ManagementxPlatform Management Windows Provisioning from *nix David James.
ConfigMgr 2012 SQL Refresher MMS Minnesota 2014 Matthew Teegarden/Steve Thompson.
Introduction to T-SQL – Part Deux Matthew Sherry Kissinger kissinger.
OS Deployment - LEVEL 500OS Deployment - LEVEL 500 Johan
Server OS Deployment Deep Dive with two crazy guys and ConfigMgr 2012 R2 MMS Minnesota 2014 Greg Nash.
Microsoft Public Cloud Services Automation Excellence Marcel Zehner | Cloud Believer Innovation itnetX
SQL Tips & Tricks Best practices from the field John Nelson Apps Systems Engineer Steve Thompson Senior Consultant,
Windows Certification Paths OR MCSA Windows Server 2012 Installing and Configuring Windows Server 2012 Exam (20410) Administering Windows Server.
From Zero to Automation HeroFrom Zero to Automation Hero A MNSCug production Steve Jesok Ameriprise – Senior Systems Engineer Ryan Andorfer.
Why you should be using VSTSWhy you should be using VSTS Visual Studio Team Services (VSTS) Nathan Lasnoski Vice President of blog.concurrency.com.
Long Live Azure Automation!Long Live Azure Automation! Cloud-first Configuration Management and Automation Beth Cooper Program Manager.
Introduction Service Management Automation
Building AD-SQL-APP Server on AZURE
Ed OMS Team 5/29/2018 1:05 PM PowerShell as a Service Managing clouds, Windows, Linux, on-premises or public with Microsoft Operations.
Configure and Manage Your Hybrid Cloud Environment at Scale
Migrating Infrastructure to Microsoft Azure
Azure Functions and Automation: The SQL Agent in the Cloud
Azure Primed Randy Pagels Sr. Developer Technology Specialist
Microsoft Virtual Academy
Azure PowerShell Aaron Roney Senior Program Manager Cormac McCarthy
Microsoft Virtual Academy
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Making PowerShell Useful
Microsoft Virtual Academy
Making PowerShell Useful
Microsoft Virtual Academy
Microsoft Virtual Academy
5/1/2019 3:34 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or.
This is the slide shown before the presentation starts
Presentation transcript:

Service Management Automation: 3,2,1, Automate! This session will cover the base requirements for configuring and installing Service Management Automation. This will include the nuts and bolts of how it to configure, troubleshoot, and the basics of importing and running your runbooks. Walk away ready to automate Nash Pherson @KidMystic Blog or e-mail address Steve Jesok @SteveJesok Blog or e-mail address

Nash Pherson City, Country @KidMystic Microsoft MVP Enterprise Mobility MNSCUG Board Member Schlepping IT for 12 years…. #MMSMOA

Steve Jesok Minneapolis, United States @SteveJesok MNSCUG Board Member Sr Design Engineer Schlepping IT for 15 years…. #MMSMOA

System Center Orchestration Automation Tool Primary Function Orchestrator Orchestrator is intended for automation of all on-premises resources. It uses a different runbook engine than Service Management Automation and Azure Automation. Service Management Automation Service Management Automation is installed locally in your data center as a component of Windows Azure Pack and is intended to automate management tasks in the private cloud. Azure Automation Azure Automation runbooks run in the Azure public cloud and are intended to automate Azure-related management tasks.

Service Management Automation SMA Architecture at a glance…

SMA in 60 minutes What we need to start System Requirements Install SMA Create repeatable process, and document them. Code Versioning PowerShell ISE

SMA Hardware Recommendations Minimum of two cores and 4 GB of RAM for each virtual machine 60 GB of available disk space Test with a single system, and use multiple systems with load-balanced incoming traffic for production.

Software Requirements Server 2012 R2 PowerShell 4 .Net and IIS Prerequisites A SQL instance 2 service accounts, on for the IIS AppPool, on for the Worker

Not a requirement, or is it? A very pretty GUI Windows Azure Pack Not a requirement, or is it? A very pretty GUI Adds additional server requirements Do you want/need it? Can be installed quickly (sort of) to try. http://blogs.technet.com/b/privatecloud/archive/2013/12/06/windows-azure-pack-installing-amp- configuring-series.aspx http://rlevchenko.com/2014/11/12/step-by-step-installation-of-windows-azure-pack/

WAP Challenge The setup can be very challenging…

Installing SMA https://technet.microsoft.com/en-us/library/dn308244.aspx #Install the pre-reqs Install-WindowsFeature Web-Server, Web-Basic-Auth, Web-Windows-Auth, Web-Url- Auth, Web-Asp-Net45, NET-Framework-Core, Net-Framework-45-Core, NET-WCF-HTTP- Activation, Web-Mgmt-Console #PowerShell Module msiexec.exe /i PowershellModuleInstaller.msi /L*v C:\SMAPoShModInstaller.log #WebService msiexec.exe /i WebServiceInstaller.msi /L*v C:\SMAWebServiceInstaller.log CREATEDATABASE="Yes" SQLSERVER="localhost\SMA" DATABASEAUTHENTICATION="Windows" SQLDATABASE="SMADEV" APPOOLACCOUNT="sma-ap" APPOOLPASSWORD=“Password” #Worker msiexec.exe /i WorkerInstaller.msi /L*v C:\SMAWorkerInstaller.log CREATEDATABASE="NO" SQLSERVER="localhost\SMA" DATABASEAUTHENTICATION="Windows" SQLDATABASE="SMADEV" SERVICEACCOUNT="sma-sa" SERVICEPASSWORD=“Password”

First thing, what’s our plan? Have an approach to what you are doing… What do we want to automate? Standard processes=standard runbooks, naming conventions, etc Code management Testing, testing, testing

Have an approach to measure what you do What to automate first? Have an approach to measure what you do What are the biggest wins? Very repeatable and measureable. Automate small repeatable tasks for big gains. Start with the things you do first! Get clear requirements when working with other teams. Document, document, document.

SMA Basics Assets Runbooks Jobs Credentials, variables, schedules The workflows we create Jobs The automated work we do Modules Shared code

A walk around the block…

PowerShell SMA Cmdlets #List SMA commands Get-Command -Module Microsoft.SystemCenter.ServiceManagementAutomation #Save some time $sma = "https://server.domain.com" #List Runbooks Get-SmaRunbook -WebServiceEndpoint $sma

PowerShell SMA Cmdlets #Credentials $Credential = Get-Credential Set-SmaCredential -WebServiceEndpoint $sma -Name SMADemo -Value $Credential -Description "This is the account I am using for this demo" Get-SMACredential -WebServiceEndpoint $sma #Variables Set-SmaVariable -WebServiceEndpoint $sma -Name "SMTP-Server" -Value "Test-Mail.mydomain.com" - Description "This is my mail server" Set-SmaVariable -WebServiceEndpoint $sma -Name "SMTP-Port" -Value "5150" -Description "This is my mail server port" Get-SmaVariable -WebServiceEndpoint $sma | Where-Object {$_.Name -like 'SMTP-*'} #Schedules $StartDate = "Friday, November 6, 2015 2:00:00 PM" $EndDate = "Friday, November 13, 2015 2:01:00 PM" Set-SmaSchedule -WebServiceEndpoint $sma -StartTime $StartDate -ExpiryTime $EndDate -DayInterval 1 - Name "Daily-2:00PM" -ScheduleType "DailySchedule" -Description "A test schedule to demo with" Get-SmaSchedule -WebServiceEndpoint $sma -Name "Daily-2:00PM"

Test, test, test…. Test your scripts, always! Define testing as part of process documentation, what are specific cases. What to do when the process fails. Pester your scripts.

Version Control with GIT/SouceTree Visual visual representation of changes. Single or many branches. Rollback when required. Comments on each commit. https://git-scm.com/download/gui/linux#

Basic GIT versioning

Simplify Commits and Pushes PowerShell ISE Add-ons Automate manual tasks Speed up the process to commit changes, if it’s easy enough you will do it all the time. Build your own, or find one that work. One is coming for SMA! http://social.technet.microsoft.com/wiki/contents/articles/2969.windows- powershell-ise-add-on-tools.aspx

Git Commits

All the data is present… Look in the database All the data is present… SELECT rb.RunbookName ,rb.LastModifiedTime ,rb.LastModifiedBy ,rbs.[TotalJobCount] ,rbs.[LastStart] ,rbs.[FailedCount] ,rbs.[StoppedCount] ,rbs.[RunningCount] ,rbs.[CompletedCount] ,rbs.[SuspendedCount] FROM [Stats].[vwRunbookSummary] rbs inner join [Core].[vwRunbooks] rb on rbs.RunbookId=rb.RunbookId Where LastStart IS NOT NULL

Reporting! Will be posted next week! http://mnscug.org/blogs/steve-jesok

Don’t create elaborate Runbooks. Stop, Drop, and Roll…. Keep things basic. Don’t create elaborate Runbooks. Common monitoring, vs individual monitors. Build modules for common functions More on Modules: http://blogs.technet.com/b/orchestrator/archive/2014/06/12/authoring-integration- modules-for-sma.aspx

Resources – Helpful links for getting started System Req: https://technet.microsoft.com/en-US/library/dn469256.aspx Orchestration Option s: https://technet.microsoft.com/en-us/library/hh237242.aspx Runbook Output Messages: https://technet.microsoft.com/en-us/library/dn919924.aspx CheckPointing: http://blogs.technet.com/b/orchestrator/archive/2014/04/08/service-management- automation-checkpoint-suspend-and-resume-runbooks.aspx Monitoring: http://blogs.technet.com/b/orchestrator/archive/2014/03/18/monitoring-and- troubleshooting-in-service-management-automation.aspx Assets in Depth: http://blogs.technet.com/b/orchestrator/archive/2014/03/05/sma-capabilities-in- depth-assets.aspx David O'Brian SMA via PowerShell DSC: http://www.david-obrien.net/2014/07/deploy-sma-worker- via-powershell-dsc/ PowerShell ISE Add-On: http://social.technet.microsoft.com/wiki/contents/articles/2969.windows- powershell-ise-add-on-tools.aspx Try Azure/OMS Automation too! https://azure.microsoft.com/en- us/documentation/articles/automation-create-runbook-from-samples/

Discuss… Ask your questions-real world answers! Plenty of time to engage, share knowledge. Evaluations: Please provide session feedback by clicking the EVAL button in the scheduler app (also download slides). One lucky winner will receive a free ticket to the next MMS! Session Title: SPONSORS