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
ArchiveDemo { Path = "\\10.10.10.101\Backup\Scripts.zip" DestinationPath = "C:\Scripts" Ensure="Present" } } } ArchiveDemo .PS1 • Can take parameters like a function • Uses PowerShell Remoting • Each Configuration document gets converted to a MOF
[Key] string hostName; [Key] string ipAddress; [write,ValueMap {"Present", "Absent"},Values{"Present", "Absent"}] string Ensure; }; • [Key] for unique attributes; become mandatory • [Write] for attributes for which a value can be specified • [Read] for readonly attributes • ValueMap defines the possible values • Naming: classname.schema. mof HostsFile.Schema.Mof
Must return hashtable of the configuration ▫ Set-TargetResource ▫ Test-TargetResource Must return true or false • Module Manifest is required ▫ Use New-ModuleManifest
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 nodes PS V1, V2, V3 PS V4*** “Make it So” 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
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 nodes “Make it So” 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***