I’m trying to create a workflow using TFS Build / Release Management that pushes a configuration to target nodes prior to deploying an application.
In phase 1 of all this the target nodes are configured to be in push mode and configured with ResourceRepositoryShare so that custom resources can be imported from a file share. Everything works absolutely fine when the configuration is run from a development machine where the custom resources are already installed - my blog post here has all the details.
I’m now working on phase 2 where I want TFS to deploy and run DSC scripts on newly created target nodes where I’m expecting the custom resources to be installed from the ResourceRepositoryShare file share. However, there seems to be a chicken and egg thing because when the scripts are deployed and run on these target nodes they fail with “Could not find the module…” errors. It seems like the scripts are ‘compiled’ before they are run and thus fail, and don’t realise that they will be pulling the custom resources from the ResourceRepositoryShare location.
I seem to be going round in circles - am I missing something obvious? Cheers!