{"id":1861,"date":"2014-01-09T18:15:00","date_gmt":"2014-01-09T18:15:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2014\/01\/09\/separating-what-from-where-in-powershell-dsc\/"},"modified":"2024-02-22T14:36:33","modified_gmt":"2024-02-22T22:36:33","slug":"separating-what-from-where-in-powershell-dsc","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/separating-what-from-where-in-powershell-dsc\/","title":{"rendered":"Separating &#8220;What&#8221; from &#8220;Where&#8221; in PowerShell DSC"},"content":{"rendered":"<div class=\"WordSection1\">\n<p class=\"MsoNormal\"><span style=\"font-size: small;\"><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif';\">As you already know we introduced PowerShell Desired State Configuration to the world at our <a href=\"https:\/\/channel9.msdn.com\/Events\/TechEd\/NorthAmerica\/2013\/MDC-B302#fbid=\">TechEd NA 2013 Session<\/a>. The session also introduced the notion of structural configuration (what)\u00a0and environmental configuration (where) (at the 25:50 min mark). Structural configuration defines what is needed and does not change based on the environment. For instance, a configuration can require IIS to be installed \u2013 whether we have one node, or many nodes, whether it is a development environment or a production environment. It does not matter &#8211; we need IIS installed. Environmental configuration defines the environment in which the configuration is deployed. For instance, the node names and source file locations can change from a development to a test to a production environment. <\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"MsoNormal\" style=\"text-align: justify;\"><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif'; font-size: small;\">DSC offers the ability to separate structural configuration from environment configurational. This provides the ability to scale up or down a configuration across machines.<\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/powershell\/wp-content\/uploads\/sites\/30\/2014\/01\/2146.image001_thumb_2DE83685.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-20335\" src=\"https:\/\/devblogs.microsoft.com\/powershell\/wp-content\/uploads\/sites\/30\/2014\/01\/2146.image001_thumb_2DE83685.png\" alt=\"Image 2146 image001 thumb 2DE83685\" width=\"537\" height=\"166\" srcset=\"https:\/\/devblogs.microsoft.com\/powershell\/wp-content\/uploads\/sites\/30\/2014\/01\/2146.image001_thumb_2DE83685.png 537w, https:\/\/devblogs.microsoft.com\/powershell\/wp-content\/uploads\/sites\/30\/2014\/01\/2146.image001_thumb_2DE83685-300x93.png 300w\" sizes=\"(max-width: 537px) 100vw, 537px\" \/><\/a><\/p>\n<p class=\"MsoNormal\" style=\"text-align: justify;\"><span style=\"font-size: small;\"><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif';\">The way to specify environmental configuration is through the <\/span><span style=\"line-height: 107%; font-family: 'Lucida Console';\">ConfigurationData<\/span><span style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif';\"> <span lang=\"EN\">automatic parameter which is a hash table. Alternatively, the parameter can also take a .psd1 file containing the hashtable<\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"MsoNormal\" style=\"background: #012456; line-height: normal; margin-bottom: 0pt;\"><span style=\"color: whitesmoke; font-family: 'Lucida Console'; font-size: 9pt;\">PS C:\\&gt; Get-Command MyConfiguration -Syntax<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: #012456; line-height: normal; margin-bottom: 0pt;\"><span style=\"color: whitesmoke; font-family: 'Lucida Console'; font-size: 9pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: #012456; line-height: normal; margin-bottom: 0pt;\"><span style=\"color: whitesmoke; font-family: 'Lucida Console'; font-size: 9pt;\">MyConfiguration [[-InstanceName]&lt; string&gt;] [[-OutputPath] &lt;string&gt;] [[-ConfigurationData]&lt; hashtable&gt;] <\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: justify;\"><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif'; font-size: 9.5pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: justify;\"><span style=\"font-size: small;\"><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif';\">This hash table needs to have at least one key <\/span><span style=\"line-height: 107%; font-family: 'Lucida Console';\">AllNodes<\/span><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif';\"> \u2013 whose value is structured. ConfigurationData\u00a0can have any number of additional keys and value mappings added. For example:<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"color: orangered; font-family: 'Lucida Console'; font-size: 10pt;\">$MyData<\/span><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\"> <span style=\"color: darkgray;\">=<\/span> <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">@{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 <span style=\"background: yellow;\">AllNodes <span style=\"color: darkgray;\">=<\/span> @();<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 NonNodeData <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;&#8221;<\/span>\u00a0\u00a0 <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">} <\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: justify;\"><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif'; font-size: small;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: justify;\"><span style=\"font-size: small;\"><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif';\">The Key of interest is <\/span><span style=\"line-height: 107%; font-family: 'Lucida Console';\">AllNodes<\/span><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif';\">. Its value is an array. However each element of the array is a hash table in itself with NodeName being a required key<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"color: orangered; font-family: 'Lucida Console'; font-size: 10pt;\">$MyData<\/span><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\"> <span style=\"color: darkgray;\">=<\/span> <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">@{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 AllNodes <span style=\"color: darkgray;\">=<\/span> <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 @(<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 @{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NodeName <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Nana-VM-1&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<span style=\"color: darkgray;\">,<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 @{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NodeName <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Nana-VM-2&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<span style=\"color: darkgray;\">,<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 @{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NodeName <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Nana-VM-3&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 );<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 NonNodeData <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;&#8221;<\/span>\u00a0\u00a0 <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">}<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 9pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: justify;\"><span style=\"font-size: small;\"><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif';\">Each hash table entry in <span style=\"line-height: 107%; font-family: 'Lucida Console';\">AllNodes <\/span>corresponds to configuration data for one node in the configuration. The hash table can have any number of other keys (other than the required <\/span><span style=\"line-height: 107%; font-family: 'Lucida Console';\">NodeName <\/span><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif';\">key)<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"color: orangered; font-family: 'Lucida Console'; font-size: 10pt;\">$MyData<\/span><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\"> <span style=\"color: darkgray;\">=<\/span> <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">@{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 AllNodes <span style=\"color: darkgray;\">=<\/span> <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 @(<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 @{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NodeName <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Nana-VM-1&#8221;<\/span>;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Role\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;WebServer&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<span style=\"color: darkgray;\">,<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 @{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NodeName <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Nana-VM-2&#8221;<\/span>;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Role\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;SQLServer&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<span style=\"color: darkgray;\">,<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 @{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NodeName <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Nana-VM-3&#8221;<\/span>;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Role\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;WebServer&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 );<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 NonNodeData <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;&#8221;<\/span>\u00a0\u00a0 <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">}<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 9pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 9pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: justify;\"><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif'; font-size: small;\">DSC provides 3 special variables for use within the configuration which can access elements from the configuration data.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"MsoListParagraphCxSpFirst\" style=\"background: white; margin: 0in 0in 0pt 0.25in; line-height: normal; text-indent: -0.25in;\"><span style=\"font-size: small;\"><span style=\"color: #424242; font-family: 'Segoe UI','sans-serif';\">1.<span style=\"line-height: normal; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal;\">\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><span style=\"color: orangered; font-family: 'Lucida Console';\">$AllNodes<\/span><span lang=\"EN\" style=\"color: #424242; font-family: 'Segoe UI','sans-serif';\">: It<\/span><span lang=\"EN\" style=\"color: #424242; font-family: 'Segoe UI','sans-serif';\">is a special variable that will refer to the <\/span><span style=\"font-family: 'Lucida Console';\">AllNodes <\/span><span lang=\"EN\" style=\"color: #424242; font-family: 'Segoe UI','sans-serif';\">collection. It also supports filtering using simplified .Where() and .ForEach() syntax. So you can author a configuration like this<\/span><\/span><\/p>\n<p class=\"MsoListParagraphCxSpLast\" style=\"text-align: justify;\">\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"color: darkblue; font-family: 'Lucida Console'; font-size: 10pt;\">configuration<\/span><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\"> <span style=\"color: blueviolet;\">MyConfiguration<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 node <span style=\"color: orangered;\">$AllNodes<\/span><span style=\"color: darkgray;\">.<\/span>Where{<span style=\"color: orangered;\">$_<\/span><span style=\"color: darkgray;\">.<\/span>Role <span style=\"color: darkgray;\">-eq<\/span> <span style=\"color: darkred;\">&#8220;WebServer&#8221;<\/span>}<span style=\"color: darkgray;\">.<\/span>NodeName<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 {<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\">\n<p>&nbsp;<\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0 }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">} <\/span><\/p>\n<p class=\"MsoListParagraphCxSpFirst\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 9pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: justify; margin-left: 0.25in;\"><span style=\"font-size: small;\"><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif';\">When the configuration is invoked with the <\/span><span style=\"line-height: 107%; font-family: 'Lucida Console';\">ConfigurationData<\/span><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif';\"> parameter the filter returns a set of nodes for use in the node statement. This avoids the need for having to hard code the node name in a configuration (or parameterizing it always). This is equivalent to writing the following (When the above configuration is invoked with <\/span><span style=\"line-height: 107%; font-family: 'Lucida Console';\">\u2013ConfigurationData<\/span><span style=\"color: orangered; line-height: 107%; font-family: 'Lucida Console';\">$MyData<\/span><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif';\">presented above):<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 9pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"color: darkblue; font-family: 'Lucida Console'; font-size: 10pt;\">configuration<\/span><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\"> <span style=\"color: blueviolet;\">MyConfiguration<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 node <span style=\"color: blueviolet;\">Server1<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 {<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 node <span style=\"color: blueviolet;\">Server3<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 {<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">} <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 9pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoListParagraphCxSpFirst\" style=\"text-align: justify; text-indent: -0.25in; margin-left: 0.25in;\"><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif'; font-size: 9.5pt;\">2.<span style=\"font: small\/normal 'Times New Roman';\">\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><span style=\"font-size: small;\"><span style=\"color: orangered; line-height: 107%; font-family: 'Lucida Console';\">$Node<\/span><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif';\">: Once a set of nodes is filtered from <\/span><span style=\"color: orangered; line-height: 107%; font-family: 'Lucida Console';\">$AllNodes<\/span><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif';\">, <\/span><span style=\"color: orangered; line-height: 107%; font-family: 'Lucida Console';\">$Node<\/span><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif';\">can be used to refer to the current entry.<\/span><\/span><\/p>\n<p class=\"MsoListParagraphCxSpLast\" style=\"text-align: justify;\">\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"color: darkblue; font-family: 'Lucida Console'; font-size: 10pt;\">configuration<\/span><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\"> <span style=\"color: blueviolet;\">MyConfiguration<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 <span style=\"color: blue;\">Import-DscResource<\/span> <span style=\"color: navy;\">-ModuleName<\/span> <span style=\"color: blueviolet;\">xWebAdministration<\/span> <span style=\"color: navy;\">-Name<\/span> <span style=\"color: blueviolet;\">MSFT_xWebsite<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 node <span style=\"color: orangered;\">$AllNodes<\/span><span style=\"color: darkgray;\">.<\/span>Where{<span style=\"color: orangered;\">$_<\/span><span style=\"color: darkgray;\">.<\/span>Role <span style=\"color: darkgray;\">-eq<\/span> <span style=\"color: darkred;\">&#8220;WebServer&#8221;<\/span>}<span style=\"color: darkgray;\">.<\/span>NodeName<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 {<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 xWebsite <span style=\"color: blueviolet;\">Site<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 {<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Name\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: orangered;\">$Node<\/span><span style=\"color: darkgray;\">.<\/span>SiteName<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PhysicalPath <span style=\"color: darkgray;\">=<\/span> <span style=\"color: orangered;\">$Node<\/span><span style=\"color: darkgray;\">.<\/span>SiteContents<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Ensure\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Present&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">} <\/span><\/p>\n<p class=\"MsoListParagraphCxSpMiddle\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-size: small;\"><span lang=\"EN\" style=\"color: #424242; font-family: 'Segoe UI','sans-serif';\">The above configuration is equivalent to writing the following (when evaluated with <\/span><span style=\"color: orangered; font-family: 'Lucida Console';\">$MyData<\/span><span lang=\"EN\" style=\"color: #424242; font-family: 'Segoe UI','sans-serif';\">presented above)<\/span><\/span><\/p>\n<p class=\"MsoListParagraphCxSpLast\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 9pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"color: darkblue; font-family: 'Lucida Console'; font-size: 10pt;\">configuration<\/span><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\"> <span style=\"color: blueviolet;\">MyConfiguration<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 <span style=\"color: blue;\">Import-DscResource<\/span> <span style=\"color: navy;\">-ModuleName<\/span> <span style=\"color: blueviolet;\">xWebAdministration<\/span> <span style=\"color: navy;\">-Name<\/span> <span style=\"color: blueviolet;\">MSFT_xWebsite<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 node <span style=\"color: blue;\">Nana-VM-1<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 {<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 xWebsite <span style=\"color: blueviolet;\">Site<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 {<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Name\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Website1&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PhysicalPath <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;C:\\Site1&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Ensure\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Present&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 node <span style=\"color: blue;\">Nana-VM-3<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 {<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 xWebsite <span style=\"color: blueviolet;\">Site<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 {<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Name\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Website3&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PhysicalPath <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;C:\\Site3&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Ensure\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Present&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">} <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 9pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-size: small;\"><strong><span lang=\"EN\" style=\"color: #424242; font-family: 'Segoe UI','sans-serif';\">Note<\/span><\/strong><span lang=\"EN\" style=\"color: #424242; font-family: 'Segoe UI','sans-serif';\">: <em>xWebsite is a resource that we published as part of DSC Resource Kit Wave 1. More information on the same can be found <\/em><\/span><em><a href=\"http:\/\/blogs.msdn.com\/b\/powershell\/archive\/2013\/12\/26\/holiday-gift-desired-state-configuration-dsc-resource-kit-wave-1.aspx\"><span lang=\"EN\" style=\"font-family: 'Segoe UI','sans-serif';\">here<\/span><\/a><\/em><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: small;\">\u00a0<\/span><\/p>\n<p class=\"MsoListParagraphCxSpFirst\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-size: small;\"><span lang=\"EN\" style=\"color: #424242; font-family: 'Segoe UI','sans-serif';\">If you want some properties to apply to all the nodes, then it can be specified with <\/span><span style=\"font-family: 'Lucida Console';\">NodeName <\/span><span lang=\"EN\" style=\"color: #424242; font-family: 'Segoe UI','sans-serif';\">as \u201c<\/span><span style=\"font-family: 'Lucida Console';\">*<\/span><span lang=\"EN\" style=\"color: #424242; font-family: 'Segoe UI','sans-serif';\">\u201d (Note: * is a special notion. Wildcards are not supported)<\/span><\/span><\/p>\n<p class=\"MsoListParagraphCxSpMiddle\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 9pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoListParagraphCxSpLast\" style=\"background: white; margin: 0in 0in 0pt 1in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 9pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"color: orangered; font-family: 'Lucida Console'; font-size: 10pt;\">$MyData<\/span><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\"> <span style=\"color: darkgray;\">=<\/span> <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">@{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 AllNodes <span style=\"color: darkgray;\">=<\/span> <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 @(<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 @{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NodeName\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;*&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 LogPath\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;C:\\Logs&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<span style=\"color: darkgray;\">,<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 @{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NodeName <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Nana-VM-1&#8221;<\/span>;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Role\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;WebServer&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SiteContents <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;C:\\Site1&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SiteName <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Website1&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<span style=\"color: darkgray;\">,<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 @{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NodeName <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Nana-VM-2&#8221;<\/span>;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Role\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;SQLServer&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<span style=\"color: darkgray;\">,<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 @{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NodeName <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Nana-VM-3&#8221;<\/span>;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Role\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;WebServer&#8221;<\/span>;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SiteContents <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;C:\\Site2&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SiteName <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Website3&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 );<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">} <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoListParagraphCxSpFirst\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span lang=\"EN\" style=\"color: #424242; font-family: 'Segoe UI','sans-serif'; font-size: small;\">Now every node has a LogPath property.<\/span><\/p>\n<p class=\"MsoListParagraphCxSpMiddle\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span lang=\"EN\" style=\"color: #424242; font-family: 'Segoe UI','sans-serif'; font-size: small;\">\u00a0<\/span><\/p>\n<p class=\"MsoListParagraphCxSpMiddle\" style=\"background: white; margin: 0in 0in 0pt 0.25in; line-height: normal; text-indent: -0.25in;\"><span style=\"font-size: small;\"><span lang=\"EN\" style=\"color: #424242; font-family: 'Segoe UI','sans-serif';\">3.<span style=\"line-height: normal; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal;\">\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><span style=\"color: orangered; font-family: 'Lucida Console';\">$ConfigurationData<\/span><span lang=\"EN\" style=\"color: #424242; font-family: 'Segoe UI','sans-serif';\">: This variable can be used from within a configuration to access the configuration data hash table passed as a parameter. <\/span><\/span><\/p>\n<p class=\"MsoListParagraphCxSpLast\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span lang=\"EN\" style=\"color: #424242; font-family: 'Segoe UI','sans-serif'; font-size: 9.5pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"color: orangered; font-family: 'Lucida Console'; font-size: 10pt;\">$MyData<\/span><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\"> <span style=\"color: darkgray;\">=<\/span> <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">@{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 AllNodes <span style=\"color: darkgray;\">=<\/span> <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 @(<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 @{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NodeName\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;*&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 LogPath\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;C:\\Logs&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<span style=\"color: darkgray;\">,<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 @{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NodeName <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Nana-VM-1&#8221;<\/span>;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Role\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;WebServer&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SiteContents <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;C:\\Site1&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SiteName <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Website1&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<span style=\"color: darkgray;\">,<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 @{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NodeName <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Nana-VM-2&#8221;<\/span>;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Role\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;SQLServer&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<span style=\"color: darkgray;\">,<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 @{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NodeName <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Nana-VM-3&#8221;<\/span>;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Role\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;WebServer&#8221;<\/span>;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SiteContents <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;C:\\Site2&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SiteName <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Website3&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 );<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 NonNodeData <span style=\"color: darkgray;\">=<\/span> <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 @{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ConfigFileContents <span style=\"color: darkgray;\">=<\/span> (<span style=\"color: blue;\">Get-Content<\/span> <span style=\"color: blueviolet;\">C:\\Template\\Config.xml<\/span>)<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0 }\u00a0\u00a0 <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">} <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"color: darkblue; font-family: 'Lucida Console'; font-size: 10pt;\">configuration<\/span><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\"> <span style=\"color: blueviolet;\">MyConfiguration<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 <span style=\"color: blue;\">Import-DscResource<\/span> <span style=\"color: navy;\">-ModuleName<\/span> <span style=\"color: blueviolet;\">xWebAdministration<\/span> <span style=\"color: navy;\">-Name<\/span> <span style=\"color: blueviolet;\">MSFT_xWebsite<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 node <span style=\"color: orangered;\">$AllNodes<\/span><span style=\"color: darkgray;\">.<\/span>Where{<span style=\"color: orangered;\">$_<\/span><span style=\"color: darkgray;\">.<\/span>Role <span style=\"color: darkgray;\">-eq<\/span> <span style=\"color: darkred;\">&#8220;WebServer&#8221;<\/span>}<span style=\"color: darkgray;\">.<\/span>NodeName<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 {<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 xWebsite <span style=\"color: blueviolet;\">Site<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 {<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Name\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: orangered;\">$Node<\/span><span style=\"color: darkgray;\">.<\/span>SiteName<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PhysicalPath <span style=\"color: darkgray;\">=<\/span> <span style=\"color: orangered;\">$Node<\/span><span style=\"color: darkgray;\">.<\/span>SiteContents<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Ensure\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Present&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 File <span style=\"color: blueviolet;\">ConfigFile<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 {<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DestinationPath <span style=\"color: darkgray;\">=<\/span> <span style=\"color: orangered;\">$Node<\/span><span style=\"color: darkgray;\">.<\/span>SiteContents <span style=\"color: darkgray;\">+<\/span> <span style=\"color: darkred;\">&#8220;\\\\config.xml&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Contents <span style=\"color: darkgray;\">=<\/span> <span style=\"color: orangered;\">$ConfigurationData<\/span><span style=\"color: darkgray;\">.<\/span>NonNodeData<span style=\"color: darkgray;\">.<\/span>ConfigFileContents<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; margin: 0in 0in 0pt 0.5in; line-height: normal;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">} <\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: justify;\"><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif'; font-size: 9.5pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: justify;\"><span style=\"font-size: small;\"><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif';\">Here is a complete example using configuration data (<a href=\"http:\/\/gallery.technet.microsoft.com\/xWebAdministration-Module-3c8bb6be\">already included in examples for\u00a0xWebAdministration module in DSC Resource Kit Wave 1<\/a><\/span><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif';\">)<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"color: darkblue; font-family: 'Lucida Console'; font-size: 10pt;\">configuration<\/span><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\"> <span style=\"color: blueviolet;\">Sample_xWebsite_FromConfigurationData<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 <span style=\"color: darkgreen;\"># Import the module that defines custom resources<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 <span style=\"color: blue;\">Import-DscResource<\/span> <span style=\"color: navy;\">-Module<\/span> <span style=\"color: blueviolet;\">xWebAdministration<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 <span style=\"color: darkgreen;\"># Dynamically find the applicable nodes from configuration data<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 Node <span style=\"color: orangered;\">$AllNodes<\/span><span style=\"color: darkgray;\">.<\/span>where{<span style=\"color: orangered;\">$_<\/span><span style=\"color: darkgray;\">.<\/span>Role <span style=\"color: darkgray;\">-eq<\/span> <span style=\"color: darkred;\">&#8220;Web&#8221;<\/span>}<span style=\"color: darkgray;\">.<\/span>NodeName<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 {<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgreen;\"># Install the IIS role<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 WindowsFeature <span style=\"color: blueviolet;\">IIS<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 {<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Ensure\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Present&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Name\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Web-Server&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgreen;\"># Install the ASP .NET 4.5 role<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 WindowsFeature <span style=\"color: blueviolet;\">AspNet45<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 {<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Ensure\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Present&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Name\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Web-Asp-Net45&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgreen;\"># Stop an existing website (set up in Sample_xWebsite_Default)<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 xWebsite <span style=\"color: blueviolet;\">DefaultSite<\/span> <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 {<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Ensure\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Present&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Name\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Default Web Site&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 State\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Stopped&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PhysicalPath\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: orangered;\">$Node<\/span><span style=\"color: darkgray;\">.<\/span>DefaultWebSitePath<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DependsOn\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;[WindowsFeature]IIS&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgreen;\"># Copy the website content<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 File <span style=\"color: blueviolet;\">WebContent<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 {<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Ensure\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Present&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SourcePath\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: orangered;\">$Node<\/span><span style=\"color: darkgray;\">.<\/span>SourcePath<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DestinationPath <span style=\"color: darkgray;\">=<\/span> <span style=\"color: orangered;\">$Node<\/span><span style=\"color: darkgray;\">.<\/span>DestinationPath<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Recurse\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: orangered;\">$true<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Type\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Directory&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DependsOn\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;[WindowsFeature]AspNet45&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgreen;\"># Create a new website<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 xWebsite <span style=\"color: blueviolet;\">BakeryWebSite<\/span> <\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 {<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Ensure\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Present&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Name\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: orangered;\">$Node<\/span><span style=\"color: darkgray;\">.<\/span>WebsiteName<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 State\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Started&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PhysicalPath\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: orangered;\">$Node<\/span><span style=\"color: darkgray;\">.<\/span>DestinationPath<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DependsOn\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;[File]WebContent&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">}<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"color: darkgreen; font-family: 'Lucida Console'; font-size: 10pt;\"># Content of configuration data file (e.g. ConfigurationData.psd1) could be:<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"color: darkgreen; font-family: 'Lucida Console'; font-size: 10pt;\"># Hashtable to define the environmental data<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">@{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 <span style=\"color: darkgreen;\"># Node specific data<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 AllNodes <span style=\"color: darkgray;\">=<\/span> @(<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgreen;\"># All the WebServer has following identical information <\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 @{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NodeName\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;*&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 WebsiteName\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;FourthCoffee&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SourcePath\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;C:\\BakeryWebsite\\&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DestinationPath\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;C:\\inetpub\\FourthCoffee&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DefaultWebSitePath <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;C:\\inetpub\\wwwroot&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<span style=\"color: darkgray;\">,<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 @{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NodeName\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;WebServer1.fourthcoffee.com&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Role\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Web&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<span style=\"color: darkgray;\">,<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 @{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NodeName\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;WebServer2.fourthcoffee.com&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Role\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: darkgray;\">=<\/span> <span style=\"color: darkred;\">&#8220;Web&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0\u00a0\u00a0 );<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">}<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"color: darkgreen; font-family: 'Lucida Console'; font-size: 10pt;\"># Pass the configuration data to configuration as follows:<\/span><\/p>\n<p class=\"MsoNormal\" style=\"background: white; line-height: normal; margin-bottom: 0pt;\"><span style=\"color: blue; font-family: 'Lucida Console'; font-size: 10pt;\">Sample_xWebsite_FromConfigurationData<\/span><span style=\"font-family: 'Lucida Console'; font-size: 10pt;\"> <span style=\"color: navy;\">-ConfigurationData<\/span> <span style=\"color: blueviolet;\">ConfigurationData.psd1 <\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"MsoNormal\" style=\"text-align: justify;\"><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif'; font-size: small;\">Separating the environmental configuration from structural configuration helps author configuration without having to \u201chard code\u201d environment specific information in a configuration declaration. DSC provides a mechanism to do so but does not enforce it. The separation can be very specific to a configuration and its environment and each configuration author can use it as they seem fit.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"MsoNormal\" style=\"text-align: justify;\"><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif'; font-size: small;\">Happy configuring !!!<\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: justify;\"><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif'; font-size: 9.5pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: justify;\"><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif'; font-size: small;\">Narayanan (Nana) Lakshmanan<\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: justify;\"><span lang=\"EN\" style=\"color: #424242; line-height: 107%; font-family: 'Segoe UI','sans-serif'; font-size: small;\">Development Lead &#8211; PowerShell DSC<\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>As you already know we introduced PowerShell Desired State Configuration to the world at our TechEd NA 2013 Session. The session also introduced the notion of structural configuration (what)\u00a0and environmental configuration (where) (at the 25:50 min mark). Structural configuration defines what is needed and does not change based on the environment. For instance, a configuration [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[142,150,248,251,345,348],"class_list":["post-1861","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell","tag-desired-state-configuration","tag-dsc","tag-powershell","tag-powershell-4-0","tag-windows-powershell-4-0","tag-windows-powershell-desired-state-configuration"],"acf":[],"blog_post_summary":"<p>As you already know we introduced PowerShell Desired State Configuration to the world at our TechEd NA 2013 Session. The session also introduced the notion of structural configuration (what)\u00a0and environmental configuration (where) (at the 25:50 min mark). Structural configuration defines what is needed and does not change based on the environment. For instance, a configuration [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/1861","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=1861"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/1861\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=1861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=1861"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=1861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}