Trevor Sullivan Solution Architect Project Leadership Associates.

19
Trevor Sullivan Solution Architect Project Leadership Associates

Transcript of Trevor Sullivan Solution Architect Project Leadership Associates.

Page 1: Trevor Sullivan Solution Architect Project Leadership Associates.

Trevor SullivanSolution Architect

Project Leadership Associates

Page 2: 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

Page 3: Trevor Sullivan Solution Architect Project Leadership Associates.

Social Media

http://trevorsullivan.net

#PSDSC#PowerShell

Page 4: Trevor Sullivan Solution Architect Project Leadership Associates.

Agenda

• PowerShell 5.0 [Preview]• OneGet• PSGet• Desired State Configuration

Page 5: Trevor Sullivan Solution Architect Project Leadership Associates.

OneGet

Windows Package Management

Page 6: Trevor Sullivan Solution Architect Project Leadership Associates.

OneGet

• Get-Command -Module OneGet;• Find-Package;• Install-Package;

Windows Client

Chocolatey

NuGet

SMB

http://oneget.org

Page 7: Trevor Sullivan Solution Architect Project Leadership Associates.

PSGet

PowerShell Module Management

Page 8: Trevor Sullivan Solution Architect Project Leadership Associates.

PSGet

• Get-Command -Module PowerShellGet;• Find-Module -Name PowerEvents -RequiredVersion 0.4;• Install-Module;• Update-Module;

Windows Client

Chocolatey

NuGet

SMB

Page 9: Trevor Sullivan Solution Architect Project Leadership Associates.

Desired State Configuration

Infrastructure As Code

Page 10: Trevor Sullivan Solution Architect Project Leadership Associates.

Why DSC?

Page 11: Trevor Sullivan Solution Architect Project Leadership Associates.

What’s DSC?

Author

Test

CommitApply

Report

Page 12: Trevor Sullivan Solution Architect Project Leadership Associates.

Configuration Structure

Node

Resource Instance

Resource Instance

Resource Instance

Resource Instances

ConfigurationConfiguration

Data

Page 13: Trevor Sullivan Solution Architect Project Leadership Associates.

Configuration Data

HashTable

AllNodes Variables

Node

Node

Node

Page 14: Trevor Sullivan Solution Architect Project Leadership Associates.

DSC Resources

• Specially crafted modules that expose configuration details

• Implement Get/Set/Test-TargetResource functions

Get-TargetResource

Test-TargetResource

Set-TargetResource

Page 15: Trevor Sullivan Solution Architect Project Leadership Associates.

DSC Push Mode

• Invoke configuration block with -OutputPath• Use Start-DscConfiguration

Client/Management Server

Managed Endpoints

WinRM

Page 16: Trevor Sullivan Solution Architect Project Leadership Associates.

DSC Pull Mode

DSC Clients

Pull ServerPull Service

Conformance Endpoint

Server Message Block (SMB)

Page 17: Trevor Sullivan Solution Architect Project Leadership Associates.

Push

Pull

Refresh Modes

Apply Only

Apply and Monitor

Apply and AutoCorrect

Configuration Modes

Local Configuration Manager

Pull Service OData Endpoint

Certificate Thumbprint

Download Manager

Credential

Reboot if Needed

Certificate ID

Credential

Other Settings

Page 18: Trevor Sullivan Solution Architect Project Leadership Associates.

Azure VM DSC Extension

Configuration Public Cloud

Page 19: Trevor Sullivan Solution Architect Project Leadership Associates.

Demo

Desired State Configuration