+ All Categories
Home > Documents > PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State...

PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State...

Date post: 02-Aug-2020
Category:
Upload: others
View: 27 times
Download: 0 times
Share this document with a friend
27
PowerShell let's talk about automation
Transcript
Page 1: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell

PowerShelllet's talk about automation

Page 2: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell

Automation

Orchestration

Installation

Automation

Servers, Servers,

Servers

Resilient

Automation?

Agenda

PowerShell

Deployment

Toolkit (PDT)

PowerShell:

Desired State

Configuration

PowerShell:

Workflows

Service

Management

Automation

Page 3: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell

Automation

Orchestration

Servers, Servers,

Servers

Resilient

Automation?

PowerShell:

Desired State

Configuration

PowerShell:

Workflows

Service

Management

Automation

Installation

Automation

Agenda

PowerShell

Deployment

Toolkit (PDT)

Page 4: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell
Page 5: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell

PDT 2.6…..zipSearch-String: „powershell

deployment toolkit 2.6“

Page 6: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell

Private Cloud installationInstaller.ps1

PDT - WalkthroughPreparation

Private Cloud Design Variable.xml

Software DownloadDownloader.ps1 + User

VMs (+ DC) creationVMcreator.ps1

Page 7: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell
Page 8: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell

Automation

Orchestration

Resilient

Automation?

PowerShell:

Desired State

Configuration

PowerShell:

Workflows

Service

Management

Automation

Agenda

PowerShell

Deployment

Toolkit (PDT)

Servers, Servers,

Servers

Installation

Automation

Page 9: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell
Page 10: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell

Automation!

Scripts

Lots of scripts

Error handling? lots of work / not implemented ;-)

„Scripting Anarchy“

Page 11: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell
Page 12: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell

<Demo>

|

Page 13: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell

Configuration and Continuous Deployment

Intent Environment

Configuration(Dev -> Test -> Production)

$SystemDrive = "C:"

$DemoFolder = "$SystemDrive\Demo"

$global:WebServerCount = 3

Structural

Configuration

WindowsFeature IIS {

Name = "Web-Server"

Ensure = "Present"

}

Make It So Idempotent

Automation

foreach -parallel ($featureName in $Name)

{

$feature = Get-WindowsFeature -Name $featureName

if(($Ensure -eq "Present") -and (!$feature.Installed))

{

Install-WindowsFeature -Name $featureName

}

….

}

Page 14: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell

Push Model

Configuration

Staging Area(Contains DSC data)3rd party

languages and

tools

Authoring Phase Staging Phase

PowerShell

“Make it So” Phase

Parser and

Dispatcher

Imperative

Providers

Local

Configuration

Store

Page 15: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell

Pull Model

Pull Server(Contains DSC data

and Modules)3rd party

languages and

tools

Authoring Phase Staging Phase

PowerShell

“Make it So” Phase

Parser and

Dispatcher

Imperative

Providers

Local

Configuration

Store

Page 16: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell

• PowerShell V4

Where is DSC available?

Windows Server 2012 R2

IncludedWindows 8.1

Windows Server 2012

Install with

Windows Management Framework 4.0Windows Server 2008 R2

Windows 7

Page 17: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell

ensure

correct configuration

Allows “continuous deployment” and prevents “configuration drift”

standards-based managed

elements

Page 18: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell

Automation

Orchestration

PowerShell:

Desired State

Configuration

PowerShell:

Workflows

Service

Management

Automation

Agenda

PowerShell

Deployment

Toolkit (PDT)

Servers, Servers,

Servers

Installation

Automation

Resilient

Automation?

Page 19: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell
Page 20: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell

Workflow Foundation (WWF) + PowerShell

Consists activities

allows nesting

Written in PowerShell language

Compiled to .net

Can set checkpoints

Page 21: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell
Page 22: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell

Automation

Orchestration

PowerShell:

Desired State

Configuration

PowerShell:

Workflows

Service

Management

Automation

Agenda

PowerShell

Deployment

Toolkit (PDT)

Servers, Servers,

Servers

Installation

Automation

Resilient

Automation?

Page 23: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell
Page 24: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell

SMA -Architecture

Page 25: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell
Page 26: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell
Page 27: PowerShell let's talk about automation - Microsoft€¦ · Automation? PowerShell: Desired State Configuration PowerShell: Workflows Service Management Automation Agenda PowerShell

Recommended