Hello guys,
trying to get a report from dsc server (WMF 5.1). As I know starting from 5 there is no Compliance server block in dsc config.
What I am using on clients is
[DSCLocalConfigurationManager()]
configuration PullClientConfigID
{
Node localhost
{
Settings
{
RefreshMode = 'Pull'
ConfigurationID = $guid
RefreshFrequencyMins = 30
RebootNodeIfNeeded = $false
}
ConfigurationRepositoryWeb server
{
ServerURL = 'https://server.contoso.com:8080/PSDSCPullServer.svc'
}
ReportServerWeb server
{
ServerURL = 'https://server.contoso.com:8080/PSDSCPullServer.svc'
}
}
}
PullClientConfigID
DSC itself works well, but I can not find a way to receive a reports.
Based on following, pull server is a report server as well:
([xml](invoke-webrequest "https://server.contoso.com:8080/PSDSCPullServer.svc" | % Content)).service.workspace.collection.href Configurations Modules Action Module StatusReport Node Reports Nodes
However, using https://msdn.microsoft.com/en-us/powershell/dsc/reportserver view report script I am receiving an error
Cannot index into a null array.
Any ideas?