Hi,
Thanks for the replies so far.
Yes, I can successfully browse to the Pull Server from the node itself.
I also tried configuring a second node - exactly the same behaviour so I have something wrong somewhere.
The RegistrationKeys.txt file contains the single registration key I am using so far.
Here is the script that was used to create the Pull Server:
[CmdletBinding()]
param
(
[string[]]$ComputerName = 'localhost'
)
configuration NewWMF5PullServer
{
Import-DSCResource -ModuleName xPSDesiredStateConfiguration -ModuleVersion 3.9.0.0
Node $ComputerName
{
WindowsFeature DSCServiceFeature
{
Ensure = "Present"
Name = "DSC-Service"
}
File RegistrationKeyFile
{
Ensure = 'Present'
DestinationPath = "$env:PROGRAMFILES\WindowsPowerShell\DscService\RegistrationKeys.txt"
Contents = '7184250f-616d-4e4d-bb7f-fe820ba91b2a'
DependsOn = @("[WindowsFeature]DSCServiceFeature")
}
xDscWebService PSDSCPullServer
{
Ensure = "Present"
EndpointName = "PSDSCPullServer"
Port = 8080
PhysicalPath = "$env:SystemDrive\inetpub\PSDSCPullServer"
CertificateThumbPrint = "AllowUnencryptedTraffic"
ModulePath = "$env:PROGRAMFILES\WindowsPowerShell\DscService\Modules"
ConfigurationPath = "$env:PROGRAMFILES\WindowsPowerShell\DscService\Configuration"
RegistrationKeyPath = "$env:PROGRAMFILES\WindowsPowerShell\DscService"
State = "Started"
DependsOn = @("[WindowsFeature]DSCServiceFeature", "[File]RegistrationKeyFile")
}
}
}
# Create the MOF.
NewWMF5PullServer
Here’s the script that configures the LCM on each target node:
[DscLocalConfigurationManager()]
Configuration WMF5TargetNodeLCM
{
Node 'localhost'
{
Settings
{
ConfigurationMode = 'ApplyAndAutoCorrect'
ConfigurationModeFrequencyMins = 45
RefreshFrequencyMins = 45
RefreshMode = 'Pull'
AllowModuleOverwrite = $true
RebootNodeIfNeeded = $true
}
ConfigurationRepositoryWeb ConfigurationManager
{
ServerUrl = 'http://[FQDN of Pull Server]:8080/PSDSCPullServer.svc'
RegistrationKey = '7184250f-616d-4e4d-bb7f-fe820ba91b2a'
ConfigurationNames = @("WebRole")
AllowUnsecureConnection = $true
}
}
}
WMF5TargetNodeLCM
Set-DSCLocalConfigurationManager -Path ./WMF5TargetNodeLCM –Verbose
Pull Server Operational Logs below:
ProviderName: Microsoft-Windows-Powershell-DesiredStateConfiguration-PullServer
TimeCreated Id LevelDisplayName Message
04/05/2016 11:51:13 4352 Information Configuration repository C:\Program Files\W…
04/05/2016 11:51:13 4352 Information Configuration repository C:\Program Files\W…
04/05/2016 11:51:13 4358 Information The Dsc agent with Agent Id 28FA6B8D-113B-1…
04/05/2016 11:51:12 4361 Information GetAction payload from client. CheckSum = D…
04/05/2016 11:51:12 4362 Information Client requested Operation = GetDscAction o…
04/05/2016 11:51:12 4370 Information The client with raw URL /PSDSCPullServer.sv…
04/05/2016 11:51:12 4373 Information The registration record with AgentId 28fa6b…
04/05/2016 11:51:12 4356 Information RegistrationRecord payload from client. Age…
04/05/2016 11:51:12 4372 Information The client with AgentID = 28fa6b8d-113b-11e…
04/05/2016 11:51:11 4356 Information RegistrationRecord payload from client. Age…
04/05/2016 11:51:11 4370 Information The client with raw URL /PSDSCPullServer.sv…
04/05/2016 11:35:01 4352 Information Configuration repository C:\Program Files\W…
04/05/2016 11:35:01 4352 Information Configuration repository C:\Program Files\W…
04/05/2016 11:35:01 4358 Information The Dsc agent with Agent Id 28FA6B8D-113B-1…
04/05/2016 11:35:01 4361 Information GetAction payload from client. CheckSum = D…
04/05/2016 11:35:01 4362 Information Client requested Operation = GetDscAction o…
04/05/2016 11:35:01 4370 Information The client with raw URL /PSDSCPullServer.sv…
04/05/2016 11:35:00 4357 Information The registration record with AgentId 28fa6b…
04/05/2016 11:35:00 4356 Information RegistrationRecord payload from client. Age…
04/05/2016 11:34:58 4356 Information RegistrationRecord payload from client. Age…
04/05/2016 11:34:58 4370 Information The client with raw URL /PSDSCPullServer.sv…
OData operational logs below:
ProviderName: Microsoft-Windows-ManagementOdataService
TimeCreated Id LevelDisplayName Message
05/05/2016 08:17:10 1102 Information Management Odata Service started successfully.
05/05/2016 08:17:10 4002 Information Custom authorization module Microsoft.Power…
05/05/2016 08:17:10 4012 Information Operation manager plugin 'Microsoft.Powersh…
05/05/2016 08:17:10 1104 Information Data Service configuration loaded successfu…
04/05/2016 12:41:06 1102 Information Management Odata Service started successfully.
04/05/2016 12:41:06 4002 Information Custom authorization module Microsoft.Power…
04/05/2016 12:41:06 4012 Information Operation manager plugin 'Microsoft.Powersh…
04/05/2016 12:41:06 1104 Information Data Service configuration loaded successfu…
04/05/2016 11:51:13 2006 Error Web Service has got a callback from OData f…
04/05/2016 11:51:13 4021 Error Operation manager plugin method 'InvokeActi…
04/05/2016 11:35:01 2006 Error Web Service has got a callback from OData f…
04/05/2016 11:35:01 4021 Error Operation manager plugin method 'InvokeActi…
04/05/2016 11:34:55 1102 Information Management Odata Service started successfully.
04/05/2016 11:34:55 4002 Information Custom authorization module Microsoft.Power…
04/05/2016 11:34:54 4012 Information Operation manager plugin 'Microsoft.Powersh…
04/05/2016 11:34:53 1104 Information Data Service configuration loaded successfu…
Note: this last log has highlighted that I was missing the checksum file. Corrected that, but no change in node behaviour.