Disable DSC

This topic contains 4 replies, has 4 voices, and was last updated by

 
Participant
1 month ago.

  • Author
    Posts
  • #121410

    Participant
    Points: 16
    Rank: Member

    Hi everyone,

    I've been tasked with implementing DSC at my organization and have done so

    successfully with great results. However, developers occasionally would like to

    perform maintenance involving resources that DSC currently controls (ie. services, app pools, etc.).

     

    Is there a way myself or dev teams can temporarily disable DSC to prevent it from "making it so"

    at it's scheduled 15min intervals? I was thinking of a way to disable the LCM but haven't found anything yet.

    Your help is much appreciated.

     

    Thanks,

  • #121558

    Participant
    Points: 832
    Helping Hand
    Rank: Major Contributor

    You can set LCM ConfigurationMode to 'MonitorOnly'.

  • #121929

    Participant
    Points: 10
    Rank: Member

    Here is the settings I use

     

    [DSCLocalConfigurationManager()]
    configuration LCMConfig
    {
       Node localhost
       {
          Settings
          {
              ActionAfterReboot = "ContinueConfiguration"
              Configurationmode = "ApplyOnly"
              RefreshMode = 'Push'
          }
       }
    
    }
    
    LCMConfig

     

  • #122011

    Participant
    Points: 16
    Rank: Member

    Good stuff guys. Thanks!

  • #122298

    Participant
    Points: 28
    Rank: Member

    I need to ask the question here, why are the developers making these changes live? If these are being made in test that is an entirely different story.

    If your devs have tested these changes then they should be giving you the changes to migrate to production. By turning off DSC or moving it to monitor only, you are opening yourself for drift and going to cause issues once you turn it back on.

You must be logged in to reply to this topic.