September 2017
Beginner to intermediate
272 pages
8h 8m
English
The DSC ConfigurationData hash table must have an AllNodes key whose value is an array, with hash tables with one key named NodeName. This is a hard requirement; the key must be spelled correctly, as DSC looks for that specific key. The error message DSC outputs when this key is incorrect is hard to figure out at first in order to be sure to be correct in this to save some headaches later on. A very contrived example is as follows:
[PS]> $ConfigData = @{>>> AllNodes = @(>>> @{>>> Node = "foo">>> }>>> )>>> }[PS]>[PS]> configuration InstallExampleSoftware>>> {>>> Node "localhost">>> {>>> WindowsFeature DotNet>>> {>>> Ensure = 'Present'>>> Name = 'NET-Framework-45-Core'>>> }>>> }>>> }[PS]>[PS]> InstallExampleSoftware ...Read now
Unlock full access