November 15, 2017 at 8:46 am #84268ParticipantPoints: 0Rank: Member
I find the DSC configuration has 3 stages: Current, Pending, Previous
However I cannot find more details anywhere about why there are 3 stages and what's the workflow for them.
From my understanding, the configuration are running in "Pending" stage to prepare and check something.
And then it turns to "Current" stage with a MOF file named Current.mof, and LCM does the consistency check regularly.
For the "Previous" stage, if I re-run `Start-DscConfiguration` the "Current" MOF should be turned to "Previous". But I don't see any reason why we need "Previous" MOF.
If I guess right, the DSC allows **only one** configuration on one server: I start a new configuration (or even re-run the same one), the "current" one goes to "previous".
Please correct me if I am wrong. Let me know more details on this. Also aprreciated if you have found some documents to explain this.
November 15, 2017 at 3:09 pm #84289ParticipantPoints: 2Rank: Member
Where are you seeing these three stages?
If I use get-dsclocalconfigurationmanager, I get the LCMState property that has a "pending" state, but not sure if that is what you mean. In that case, Pending actually means it has begun to configure the machine based on a specific mof it has received. Once it finishes processing the configuration, that property changes to "idle".
November 15, 2017 at 7:18 pm #84323ParticipantPoints: 0Rank: Member
The previous.mof is for Restore-DSCConfiguration. To be honest I don't see much usage of Restore.
November 16, 2017 at 1:43 am #84358ParticipantPoints: 0Rank: Member
@Will, you can find the stage MOF from this folder: C:\Windows\System32\Configuration
For the LCMState from Get-DscLocalConfigurationManager command, I think that's also a little bit confusing when we talk about the "stage". From my side, it is "Idle".
However, there is not too much information on that neither. What I can find now is only this:
@michael, I think that make sense. Thanks.
The topic ‘Need Explanation on Configuration Stage: Current, Pending, Previous’ is closed to new replies.