powershell let's talk about automation - microsoft automation? powershell: desired state...

Download PowerShell let's talk about automation - Microsoft Automation? PowerShell: Desired State Configuration

Post on 02-Aug-2020

1 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

  • PowerShell let's talk about automation

  • Automation

    Orchestration

    Installation

    Automation

    Servers, Servers,

    Servers

    Resilient

    Automation?

    Agenda

    PowerShell

    Deployment

    Toolkit (PDT)

    PowerShell:

    Desired State

    Configuration

    PowerShell:

    Workflows

    Service

    Management

    Automation

  • Automation

    Orchestration

    Servers, Servers,

    Servers

    Resilient

    Automation?

    PowerShell:

    Desired State

    Configuration

    PowerShell:

    Workflows

    Service

    Management

    Automation

    Installation

    Automation

    Agenda

    PowerShell

    Deployment

    Toolkit (PDT)

  • PDT 2.6…..zip Search-String: „powershell

    deployment toolkit 2.6“

    https://gallery.technet.microsoft.com/PowerShell-Deployment-f20bb605

  • Private Cloud installation Installer.ps1

    PDT - Walkthrough Preparation

    Private Cloud Design Variable.xml

    Software Download Downloader.ps1 + User

    VMs (+ DC) creation VMcreator.ps1

  • Automation

    Orchestration

    Resilient

    Automation?

    PowerShell:

    Desired State

    Configuration

    PowerShell:

    Workflows

    Service

    Management

    Automation

    Agenda

    PowerShell

    Deployment

    Toolkit (PDT)

    Servers, Servers,

    Servers

    Installation

    Automation

  • Automation!

    Scripts

    Lots of scripts

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

    „Scripting Anarchy“

  • |

  • 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

    }

    ….

    }

  • 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

  • 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

  • • PowerShell V4

    Where is DSC available?

    Windows Server 2012 R2

    Included Windows 8.1

    Windows Server 2012

    Install with

    Windows Management Framework 4.0 Windows Server 2008 R2

    Windows 7

  • ensure

    correct configuration

    Allows “continuous deployment” and prevents “configuration drift”

    standards-based managed

    elements

  • Automation

    Orchestration

    PowerShell:

    Desired State

    Configuration

    PowerShell:

    Workflows

    Service

    Management

    Automation

    Agenda

    PowerShell

    Deployment

    Toolkit (PDT)

    Servers, Servers,

    Servers

    Installation

    Automation

    Resilient

    Automation?

  • Workflow Foundation (WWF) + PowerShell

    Consists activities

    allows nesting

    Written in PowerShell language

    Compiled to .net

    Can set checkpoints

  • Automation

    Orchestration

    PowerShell:

    Desired State

    Configuration

    PowerShell:

    Workflows

    Service

    Management

    Automation

    Agenda

    PowerShell

    Deployment

    Toolkit (PDT)

    Servers, Servers,

    Servers

    Installation

    Automation

    Resilient

    Automation?

  • SMA - Architecture

Recommended

View more >