locked
DSC Clients PartialConfiguration RRS feed

  • Question

  • Hello,

    I have a DSC PartialConfiguration

    [DSCLocalConfigurationManager()]
    configuration PullClientConfigNames
    {
        Node localhost
        {
            Settings
            {
                RefreshFrequencyMins            = 30;
                RefreshMode                     = "PULL";
                ConfigurationMode               ="ApplyAndAutocorrect";
                AllowModuleOverwrite            = $true;
                RebootNodeIfNeeded              = $true;
                ConfigurationModeFrequencyMins  = 15;
            }
    
            ConfigurationRepositoryWeb TESTLABDSC
            {
                ServerURL = 'https://LABDCS01.testlab.intern:8080/PSDSCPullServer.svc’
                RegistrationKey = '140a952b-b9d6-406b-b416-e0f759c9c0e4'
                ConfigurationNames = @("InstallWeb","Telnet","WinBackup")
            }
    
            PartialConfiguration InstallWeb
            {
                Description                     = "InstallWeb"
                ConfigurationSource             = @("[ConfigurationRepositoryWeb]TESTLABDSC")
            }
    
            PartialConfiguration Telnet
            {
                Description                     = "Telnet"
                ConfigurationSource             = @("[ConfigurationRepositoryWeb]TESTLABDSC")
                DependsOn                       = '[PartialConfiguration]InstallWeb'
      
            }
    
            PartialConfiguration WinBackup
            {
                Description                     = "WinBackup"
                ConfigurationSource             = @("[ConfigurationRepositoryWeb]TESTLABDSC")
                DependsOn                       = '[PartialConfiguration]Telnet'
      
            }
    
    
        }
    }
    PullClientConfigNames 

    But only the first one gets applied. I do not see the rest in the Get-DscConfiguration. Should i be able to see them?

    PS C:\> Get-DscConfiguration
    
    
    ConfigurationName    : InstallWeb
    DependsOn            : 
    ModuleName           : PsDesiredStateConfiguration
    ModuleVersion        : 1.1
    PsDscRunAsCredential : 
    ResourceId           : [WindowsFeature]InstallIIS
    SourceInfo           : 
    Credential           : 
    DisplayName          : Web Server (IIS)
    Ensure               : Present
    IncludeAllSubFeature : False
    LogPath              : 
    Name                 : Web-Server
    Source               : 
    PSComputerName       : 
    CimClassName         : MSFT_RoleResource

    Thank you,




    Wednesday, July 4, 2018 2:03 PM