Transcript
Page 1: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative
Page 2: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

Windows Management Framework 4.0

http://www.microsoft.com/en-us/download/details.aspx?id=40855

Requires .NET Framework 4.5

http://www.microsoft.com/en-us/download/details.aspx?id=30653

Page 3: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

Scale

Business is growing

More servers = More Failures

Rapid changes

Adjust and respond fast

More changes = More Failures

Scale + Rapid changes = Constant failures?

Page 4: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

Enables you to ensure that the components of your

data center have the correct configuration

Allows “continuous deployment” and prevents

“configuration drift”

Uses language extensions and providers to enable

declarative, autonomous and idempotent (repeatable)

Deployment, Configuration and Conformance of

standards-based managed elements

Page 5: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

How

What

Page 6: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative
Page 8: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

Archive

Resource

Environment

ResourceFile Resource

Group

ResourceLog Resource

Package

Resource

Process

Resource

Registry

Resource

Role

Resource

Script

Resource

Service

Resource

User

Resource

http://technet.microsoft.com/en-us/library/dn249921

Page 9: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

Active

Directory

Computer

ManagementDatabase

Failover

ClusterHyper-V Networking

Remote

DesktopSmbShare SQL

System

Security

Web Admin-

istration…

Requires: http://support.microsoft.com/kb/2883200

Page 10: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

Archive

Ensure

Path

Destination

Page 11: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

myFirstDSC

Page 12: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

Environment

Ensure

Name

Value

Page 13: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

File

Ensure

Type

Recurse

SourcePath

DestinationPath

Page 14: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

Group

Ensure

GroupName

Page 15: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

Log

Message

Page 16: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

Package

EnsurePathNameProductIdArgumentsLogPath

Page 17: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

InstallWPT

Page 18: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

WindowsProcess

Arguments

Path

Ensure

WorkingDirectory

Page 19: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

Registry

Ensure

Key

ValueName

ValueData

Page 20: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

WindowsFeature

Ensure

Name

Page 21: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

Script

SetScriptTestScriptGetScript

Page 22: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

Service

Name

StartupType

State

Page 23: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

User

Ensure

UserName

Password

DependsOn

Page 24: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

Configuration

Node

WindowsFeature

Ensure

Name

Page 25: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

MyWebServerConfiguration

Page 26: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative
Page 27: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

AkadaDSC

Page 28: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

MultiNodeDemo

Page 29: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

Configuration

Staging Area(Contains DSC data)

3rd party

languages

and tools

Authoring Phase

(May include imperative

as well as declarative

code)

Staging Phase

- Fully declarative configuration

representation using DMTF

standard MOF instances

- Configuration is calculated for all

nodesPS V1, V2, V3

PS V4*

Set Phase

(Declarative configuration is

reified through imperative

providers.)

Parser and

Dispatcher

Imperative

Providers

*When authoring in PowerShell, on top of PSV3

imperative features, PSV4 adds:

• Declarative syntax extensions

• Schema-driven Intellisense

• Schema validation (early-binding)

Providers implement

changes:

• Monotonic

• Imperative

• Idempotent

Local

Configuration

Store

Page 30: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

Pull Server(Contains DSC data

and Modules)

Authoring Phase

(May include imperative

as well as declarative

code)

Set Phase

(Declarative configuration is

reified through imperative

providers.)

Parser and

Dispatcher

Imperative

Providers

*When authoring in PowerShell, on top of PSV3

imperative features, PSV4 adds:

• Declarative syntax extensions

• Schema-driven Intellisense

• Schema validation (early-binding)

Providers implement

changes:

• Monotonic

• Imperative

• Idempotent

Local

Configuration

Store

3rd party

languages

and tools

PS V1, V2, V3

PS V4*

Staging Phase

- Fully declarative configuration

representation using DMTF

standard MOF instances

- Configuration is calculated for all

nodes

Page 31: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative
Page 32: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

http://technet.microsoft.com/en-us/library/dn249922

Page 33: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

desired state

Page 34: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative
Page 35: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative
Page 36: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

DscLocalConfigurationManager

Page 37: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

“Hey, you're a Web server

Here's what you should look like. Get to it, and stay

that way!“

Page 38: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative
Page 39: Windows Management Framework 4.0 40855 - IT in a box in PowerShell 4.0.pdf · Pull Server (Contains DSC data and Modules) Authoring Phase (May include imperative as well as declarative

Top Related