Registering target nodes with a DSC pull server
Now that the DSC pull server is set up and verified as working, we can address telling the target nodes where the DSC pull server is. We do this by configuring the LCM with the endpoint information for the DSC pull server; there isn't a self-discovery method to use.
Registering a target node using a configuration ID
Note how this is a similar DSC configuration script to any we have used so far until we get to the LocalConfigurationManager
keyword. We use this keyword to configure the local LCM to operate how we want it to:
Configuration ConfigurationIDTargetNodeLCM { Node $AllNodes.Where({ $_.Roles -contains 'Target'}).NodeName { LocalConfigurationManager { ConfigurationId = $Node.ConfigurationId RefreshMode = $Node.RefreshMode ConfigurationMode = $Node.ConfigurationMode DownloadManagerName = 'WebDownloadManager' DownloadManagerCustomData = @{ ServerURL = $Node.ConfigurationServerURL...