windows management framework 4.0 40855 - it in a box in powershell 4.0.pdf · pull server (contains...
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/1.jpg)
![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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/2.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/3.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/4.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/5.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/6.jpg)
![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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/8.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/9.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/10.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/11.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/12.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/13.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/14.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/15.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/16.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/17.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/18.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/19.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/20.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/21.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/22.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/23.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/24.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/25.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/26.jpg)
![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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/27.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/28.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/29.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/30.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/31.jpg)
![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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/32.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/33.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/34.jpg)
![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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/35.jpg)
![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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/36.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/37.jpg)
“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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/38.jpg)
![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](https://reader030.vdocument.in/reader030/viewer/2022040102/5e05956b5b612b32ad25a1fd/html5/thumbnails/39.jpg)