PS4 - DSC ConfigurationData AllNodes Not Evaluated Correctly - by Steve Murawski

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 792462 Comments
Status Closed Workarounds
Type Bug Repros 2
Opened 7/3/2013 8:54:37 AM
Access Restriction Public


When passing -ConfigurationData to a configuration, the AllNodes key should be populated into an AllNodes variable for evaluation (per the DSC cheat sheet).

This doesn't appear to happen.  $AllNodes is not populated as an automatic variable

This problem is compounded in the Nodes function in PSDesiredSTateConfiguration.psm1.

On line 401, there is a guard check to see if $Name is null and if so exit.  If you are passing $allnodes.NodeName (or some filtered version thereof), this $name is null, so it never gets to creating a node map from the $configurationData.
Sign in to post a comment.