Dependency in ForEach loop

Welcome Forums DSC (Desired State Configuration) Dependency in ForEach loop

Viewing 0 reply threads
  • Author
    Posts
    • #195542
      Participant
      Topics: 1
      Replies: 2
      Points: 23
      Rank: Member

      Hi,

      I have a case where i need to create some mount points that point to pre-created folders. The folder structure is created by a File resource in a ForEach loop. Then the same path of previously created folders is used in a DiskAccessPath resource ForEach loop that creates the mount points.

      Configuration Data:

      This is the code:

      It looks like the DependsOn in the DiskAccessPath loop doesn’t work. Or at least not the way i was expecting it to work. It constantly tries to create the mount points before the folder structure is created.

      Please let me know what i’m doing wrong here.

      Thank you in advance.

Viewing 0 reply threads
  • The topic ‘Dependency in ForEach loop’ is closed to new replies.