xPSDesiredStateConfiguration icon indicating copy to clipboard operation
xPSDesiredStateConfiguration copied to clipboard

PublishModulesAndMofsToPullServer: Publish-ModuleToPullServer web config param required

Open ronx opened this issue 5 years ago • 0 comments

Details of the scenario you tried and the problem that is occurring

I recently mass updated my PS modules and cleaned up old ones, so I'm not sure which version of xPSDesiredStateConfiguration I was using previously. I have always used the Publish-ModuleToPullServer function to conveniently package up custom modules for deployment. However, I just noticed that the PullServerWebConfig parameter is now required. In my case, I simply want to get a module that I have on my local system and package it up into a zip, so I use -OutputFolderPath to tell it where to drop it. Now, when I try the same command I've always used, I'm prompted for PullServerWebConfig as well. After looking through the code, it appears this param isn't even used if OutputFolderPath is passed in, so I provided a dummy value that satisfied the parameter validation (leaf) and it worked as expected. My question is whether it was intentional to make this parameter mandatory when OutputFolderPath is specified. The examples still suggest that we should be able to specify OutputFolderPath only.

Version and build of PowerShell the target node is running

PSVersion 5.1.18362.145 BuildVersion 10.0.18362.145

Version of the DSC module that was used ('dev' if using current dev branch)

8.10.0.0

ronx avatar Oct 15 '19 18:10 ronx