31
SpeedLab System Center 2012 R2 with PDT Alexandre Verkinderen Inovativ BE CDM MVP @AlexVerkinderen Christopher Keyaert Inovativ BE CDM MVP @Keyaertc

PowerShell Deployment Toolkit

Embed Size (px)

Citation preview

Page 1: PowerShell Deployment Toolkit

SpeedLabSystem Center 2012 R2 with PDTAlexandre VerkinderenInovativ BECDM MVP@AlexVerkinderen

Christopher KeyaertInovativ BECDM MVP@Keyaertc

Page 2: PowerShell Deployment Toolkit
Page 3: PowerShell Deployment Toolkit
Page 4: PowerShell Deployment Toolkit

Windows Azure Pack

- Windows Azure Pack 2013 Database Server- Windows Azure Pack 2013 Admin API - Windows Azure Pack 2013 Tenant- Windows Azure Pack 2013 Tenant Public API - Windows Azure Pack 2013 SQL Server

Extension Server- Windows Azure Pack 2013 MySQL Extension

Server- Windows Azure Pack 2013 Admin Site Server- Windows Azure Pack 2013 Tenant Site Server- Windows Azure Pack 2013 Admin

Authentication Site Server- Windows Azure Pack 2013 Tenant

Authentication Site Server- Windows Azure Pack 2013 Console

- Windows Azure Pack 2013 SQL Cloud Database Server

- Windows Azure Pack 2013 Web Sites Database Server

- Windows Azure Pack 2013 Web Sites File Server- Windows Azure Pack 2013 Web Sites Controller

Server- Windows Azure Pack 2013 Web Sites Management

Server- Windows Azure Pack 2013 Web Sites FrontEnd

Server- Windows Azure Pack 2013 Web Sites Publisher

Server- Windows Azure Pack 2013 Web Sites Shared Worker - Windows Azure Pack 2013 Service Bus Database

Server- Windows Azure Pack 2013 Service Bus Server

Page 5: PowerShell Deployment Toolkit

System Center Prerequisites

Page 6: PowerShell Deployment Toolkit

Typical System Center Deployment

Page 7: PowerShell Deployment Toolkit

Typical System Center DeploymentDefine your deployment

Download all the bits

Install each server OS

Create service accounts

Logon to each server

Install prerequisites

Install SQL

Grant services account permissions

Install first SC server role

Install other servers roles

Grant component admin permissions

Integrate components

Install console

Connect console

Install agents

Finally… manage something

Page 8: PowerShell Deployment Toolkit

System Center deployment with PDT

Page 10: PowerShell Deployment Toolkit

PowerShell Deployment Toolkit

Install SC

•Installer.ps1•Workflow.xml

Create VM’s

•Vmcreator.ps1

Download media

•Downloader.ps1

Define deployment

•Variable.xml•Workflow.xml

Get Requirements

Page 11: PowerShell Deployment Toolkit

PowerShell Deployment Toolkit Requirements- WinRar/7zip- WebPi- Admin Access- WinRM enabled- System Center 2012 R2 media- Sysprepped VHD

Page 12: PowerShell Deployment Toolkit

Define your deployment – Variable.xml- Specify global settings- Specify settings for each SC component- Specify servers for each role- Specify SQL settings for each instance

Page 13: PowerShell Deployment Toolkit

Define your deployment – Variable.xml

Page 14: PowerShell Deployment Toolkit

DemoVariable.xml

Page 15: PowerShell Deployment Toolkit

Download all the bits – Downloader.ps1Downloads…System Center ComponentsPrerequisites e.g. - SQL Native Client, Report Viewer, WSUSSQL Server 2012 and SP1SQL Server 2008 R2 and SP2SharePoint 2010 FoundationWindows Server 2012Management PacksIntegration Packs

Extracts…RAR – System Center 2012 ComponentsZip - SPModule

Runs…ADKSetup.exe downloadConfiguration Manager setupdl.exe download

Slipstreams…SQL Server 2008 R2 SP2

Requires…Windows Server 2012/Windows 8WinRAR

Restartable!

Page 16: PowerShell Deployment Toolkit

DemoDownloader.ps1

Page 17: PowerShell Deployment Toolkit

DemoVmcreator.ps1

Page 18: PowerShell Deployment Toolkit

Installing each server OS – VMCreator.ps1OptionalPDT can use existing servers, physical or virtual, any virtualization platform

Specify Server count

Specify defaultsHyper-V host, VM name, processor, memory, network adapter, OS disk, data disks, domain to joinFull example in default Variable.xml in PDT

Specify overrides per VM, if desired

VMCreator.ps1 will validate required resources for VM creationCreates VM, joins domain, enables WinRM, add installer service account to administrators

Page 19: PowerShell Deployment Toolkit

Installing each Server OS – variable.xml

Page 20: PowerShell Deployment Toolkit

DemoVmcreator.ps1 cont’d

Page 21: PowerShell Deployment Toolkit

DemoInstaller.ps1

Page 22: PowerShell Deployment Toolkit

System Center Knowledge – Workflow.xml

Installer.ps1 knows nothing about deploying System CenterInstaller.ps1 will validate all settings before deploymentAll “knowledge” is in Workflow.xmlWorkflow.xml defines everything we know about deploying System Center

Defines…Roles

Requirements – validation, Windows roles and features, prerequisitesDependencies on other rolesIntegrations between rolesFirewall

InstallablesDownloadsInstalls

Default settings – global, component, SQL

…and is completely extensible!

Page 23: PowerShell Deployment Toolkit

Installing System Center 2012 – Installer.ps1- Install prerequisites

- Install SQL

- Grant services account permissions- Install first server role- Install other servers roles- Grant component admin permissions- Integrate components- Install console- Connect console- Install agents- Manage something!

Page 24: PowerShell Deployment Toolkit

DemoWorkflow.xml

Page 25: PowerShell Deployment Toolkit

DemoInstaller.ps1 cont’d

Page 26: PowerShell Deployment Toolkit

Troubleshooting

- PDT Log files- C:\Users\<username>\AppDataLocal\Installer

- Installation Log files- C:\Temp\<guid>

Page 27: PowerShell Deployment Toolkit

Gotchas and Tips

- Installer.ps1 -validateonly- ReportViewer.msi

- Yes, Azure is possible!

Page 28: PowerShell Deployment Toolkit

Q&A

Page 29: PowerShell Deployment Toolkit

Feedback

- Session feedback- SCU session planner

http://planning.systemcenteruniverse.ch- SCU WP app

- Overall Conference feedback- Link sent by email after the conference

- Remember: we will donate for every feedback we receive!

Page 30: PowerShell Deployment Toolkit

Our Other Sessions- Ask the expert: Service Management Automation (Markus Klein/Jeff Wouters

/Alexandre Verkinderen)- 17/09 10h15, Room: Ask the experts area

- Savision BSM in the private Cloud (Alexandre Verkinderen)- 17/09 15h45, Room: Miami

- Multi-Factor authentication for your Clouds (Christopher Keyaert & Alexandre Verkinderen)- 18/09 09h15, Room: Sidney

- PowerBI for System Center ( Kurt Van Hoecke & Alexandre Verkinderen)- 18/09 09h15, Room: Sidney

- Savision BSM in the private Cloud (Alexandre Verkinderen)- 19/09 12h00, Room: Miami

Page 31: PowerShell Deployment Toolkit

System Center 2012 R2 with PDT

Christopher KeyaertInovativ BEhttp://www.vnext.be@KeyaertC

Alexandre VerkinderenInovativ BEhttp://scug.be/scom @AlexVerkinderen