September 2017
Beginner to intermediate
272 pages
8h 8m
English
We can approximate something similar using the reporting capabilities that come in the WMF 5 release using PowerShell and the web API endpoints in the DSC pull server. The data we can see is the data that the LCM on each target node sends back to the DSC pull server each time they perform a DSC execution. We set this up earlier in the chapter when we configured the DSC target node. We can see this data by issuing a PowerShell command that interrogates the REST API endpoint, which is wrapped up in a PowerShell function, as follows:
function Get-DscLCMStatusReport{ [cmdletBinding()] param( [Parameter()] [string]$AgentId, [Parameter()] [string]$serviceURL = "https://localhost:8080/PSDSCPullServer.svc" ) $requestUri ...
Read now
Unlock full access