Hi All,
I have tried to configure the partial configurations for the set of servers.
The nodes are configured as following:
ConfigurationRepositoryWeb XXX-DSC-REPOS {
ServerURL = "https://$servername/PSDSCPullServer.svc"
CertificateID = $CertificateID
AllowUnsecureConnection = $False
RegistrationKey = $RegistrationKey
ConfigurationNames = @("xMyconfigMasterHost", "xMyconfig", "xMyconfig_SIT", $ComputerName)
"xMyconfigMasterHost", "xMyconfig", "xMyconfig_SIT" – are the partial configuration names that are merged for the node and contain environment wide settings.
$ComputerName – Computer specific configuration. Variable is populated from the script input.
PartialConfiguration xMyconfigMasterHost
{
Description = 'Configuration for the xMyconfigMasterHost'
ConfigurationSource = '[ConfigurationRepositoryWeb]XXX-DSC-REPOS'
RefreshMode = 'Pull'
}
PartialConfiguration xMyconfig
{
Description = 'Configuration for the xMyconfig'
ConfigurationSource = '[ConfigurationRepositoryWeb]XXX-DSC-REPOS'
DependsOn = '[PartialConfiguration]xMyconfigMasterHost'
RefreshMode = 'Pull'
}
PartialConfiguration xMyconfig_SIT
{
Description = 'Configuration for the xMyconfig_SIT'
ConfigurationSource = '[ConfigurationRepositoryWeb]XXX-DSC-REPOS'
DependsOn = '[PartialConfiguration]xMyconfig'
RefreshMode = 'Pull'
}
PartialConfiguration $ComputerName
{
Description = "Configuration for the $ComputerName"
ConfigurationSource = '[ConfigurationRepositoryWeb]XXX-DSC-REPOS'
DependsOn = '[PartialConfiguration]xMyconfig_SIT'
RefreshMode = 'Pull'
}
So all the servers have 2 partials configurations that they share and one specific, that is representing the configuration specific for the server.
I have 2 problems with this config:
1. If the configurations have been pulled to the node and I would like to change one of the configuration names, the merge will fail as it will try to include the old partial configuration that will now being replaced, as it still exist on the
node. The error will say that I do have a duplicate resource.
2. If I will try to run "Start-DscConfiguration -UseExisting -ComputerName "Server-01","Server-02" -Verbose -Force -Wait" on multiple nodes - it will fail for all except one.
The error for the failed nodes would be:
The attempt to get the action from server
http://dsc-001///PSDSCPullServer.svc/Nodes(AgentId='C07CBBB90')/GetDscAction failed
because pullserver is not available or there is no registered node with AgentId C07CBBB90
on the server.+ CategoryInfo : ResourceUnavailable: (root/Microsoft/...gurationManager:String) [], CimException+ FullyQualifiedErrorId : WebDownloadManagerGetActionNodeConfigurationNotFound,Microsoft.PowerShell.DesiredStateCo
nfiguration.Commands.GetDscActionCommand+ PSComputerName : Server-01
If try to run any amount of nodes in different PowerShell sessions with only one node per command - it will work fine for all nodes.
Any advice?