190 likes | 199 Views
Join Trevor Sullivan, Microsoft MVP, as he explores the new features in PowerShell 5.0 Preview, including OneGet, PSGet, and Desired State Configuration. Learn how to use these powerful tools and improve your infrastructure-as-code skills.
E N D
Trevor Sullivan Solution Architect Project Leadership Associates
Speaker Trevor Sullivan • Microsoft MVP: PowerShell • Solution Architect with PLA • 10 years of experience on Windows platform • Community member (StackExchange, MyITforum, etc.) • Open-source project owner/contributor @pcgeek86
Social Media #PSDSC #PowerShell http://trevorsullivan.net
Agenda • PowerShell 5.0 [Preview] • OneGet • PSGet • Desired State Configuration
OneGet Windows Package Management
OneGet NuGet • Get-Command -Module OneGet; • Find-Package; • Install-Package; Chocolatey SMB Windows Client http://oneget.org
PSGet PowerShell Module Management
PSGet NuGet • Get-Command -Module PowerShellGet; • Find-Module -Name PowerEvents-RequiredVersion 0.4; • Install-Module; • Update-Module; Chocolatey SMB Windows Client
Desired State Configuration Infrastructure As Code
Configuration Structure Configuration Data Configuration Node Resource Instances Resource Instance Resource Instance Resource Instance
Configuration Data HashTable AllNodes Variables Node Node Node
DSC Resources • Specially crafted modules that expose configuration details • Implement Get/Set/Test-TargetResource functions
DSC Push Mode Managed Endpoints • Invoke configuration block with -OutputPath • Use Start-DscConfiguration WinRM Client/Management Server
DSC Pull Mode Pull Service Pull Server Server Message Block (SMB) Conformance Endpoint DSC Clients
Local Configuration Manager Configuration Modes Refresh Modes Apply Only Push Apply and Monitor Pull Apply and AutoCorrect Download Manager Other Settings Pull Service OData Endpoint Reboot if Needed Certificate Thumbprint Certificate ID Credential Credential
Azure VM DSC Extension Public Cloud Configuration
Demo Desired State Configuration