Hi,
I am wondering about the intended behaviour of the LCM in DSC.
In the event viewer, Application and services logs -> Microsoft -> Windows -> Desired state configuration
I can see chunks of events every 15 min where the configuration in the MOF-file is applied again and again.
Right now we are using/trying out DSC as a way to install software and applications (but perhaps other stuff in the future so we are learning right now...).
So, what we'd want is this to be a "one time effect". The MOF to be applied once and never again until Start-DscConfiguration is run again.
These are the properties of the LCM
PS C:\users\xxxxxxx> Get-DscLocalConfigurationManager
ActionAfterReboot : ContinueConfiguration
AgentId : 2E7BF1A9-5A21-11EA-A51A-0050568908B3
AllowModuleOverWrite : False
CertificateID :
ConfigurationDownloadManagers : {}
ConfigurationID :
ConfigurationMode : ApplyOnly
ConfigurationModeFrequencyMins : 15
Credential :
DebugMode : {NONE}
DownloadManagerCustomData :
DownloadManagerName :
LCMCompatibleVersions : {1.0, 2.0}
LCMState : Idle
LCMStateDetail :
LCMVersion : 2.0
StatusRetentionTimeInDays : 10
SignatureValidationPolicy : NONE
SignatureValidations : {}
MaximumDownloadSizeMB : 500
PartialConfigurations :
RebootNodeIfNeeded : True
RefreshFrequencyMins : 30
RefreshMode : PUSH
ReportManagers : {}
ResourceModuleManagers : {}
PSComputerName :
From Microsoft documentation RefreshMode: Push is "Configurations are initiated by calling the Start-DscConfiguration cmdlet. The configuration is applied immediately to the node. This is the default value." Great, this is what we are trying to accomplish.
What looks interfering is ConfigurationModeFrequencyMins but the documentation says "How often, in minutes, the current configuration is checked and applied. This property is ignored if the ConfigurationMode property is set to ApplyOnly. The default value is 15." Phew.. since we have "ApplyOnly" as "ConfigurationMode" then we are all set. Or are we?
Why does the LCM try to re-apply the MOF every 15 minutes with these LCM-settings? Is this intented behaviour?
/Daniel