Chaining DSC scripts together

Welcome Forums DSC (Desired State Configuration) Chaining DSC scripts together

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

 
Participant
1 year, 11 months ago.

  • Author
    Posts
  • #62908

    Participant
    Points: 14
    Rank: Member

    Hi!
    I have 9 seperate DSC scripts to configure a member Server. They do various things like installing windows features, copying files, installing Sql Mgmt Tools, creating and starting services. I'd be grateful to get opinions on how I chain these scripts together – is there something like a "DependsOn" function which you can link to other scripts? Or should I combine them all into one ginormous script?

    thx
    Ciaran

  • #62911

    Keymaster
    Points: 1,759
    Helping HandTeam Member
    Rank: Community Hero

    That's a bigger question than you might think ;). I did an entire chapter in The DSC Book on that, in fact.

    There's no DependsOn like that, no. You can dot source. You can make composite resources. You can use partials. There's a lot of design stuff to consider either way.

    • #62934

      Participant
      Points: 14
      Rank: Member

      Yep – after some reading about my options, I'm beginning to realize theres going to be some work ahead of me. I think I can solve this using composite Resources. I just need to find the time and a quiet room to go figure it out.

      thanks 🙂

The topic ‘Chaining DSC scripts together’ is closed to new replies.