Post on 02-Aug-2020
PowerShelllet'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…..zipSearch-String: „powershell
deployment toolkit 2.6“
Private Cloud installationInstaller.ps1
PDT - WalkthroughPreparation
Private Cloud Design Variable.xml
Software DownloadDownloader.ps1 + User
VMs (+ DC) creationVMcreator.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“
<Demo>
|
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
IncludedWindows 8.1
Windows Server 2012
Install with
Windows Management Framework 4.0Windows 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