-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in module DSC #34
Comments
Thanks, I will change this. |
Hey @spawluk, I added #35 to dev branch which increments the module to 0.10.1, and might fix your issue with the pull server, can you test it out and let me know? (I don't have a local lab pull server handy at the moment.) If it works I'll merge this up to master and do a release to PowerShell Gallery. |
It looks great. I can partially test it because I'm waiting for Windows Server 2016 VM's. Unfortunately class based resources can't work on my WS2k12R2 machines. |
Ah yes, not out-of-the-box, have to add WMF 5 / WMF 5.1 on 2012 R2. |
Even after adding it i have exceptions like |
Ok so it does work on WS2016 and W10? Can you paste the full error message you're seeing? That's happening when it's trying to pull the resources on WS2k12R2 or is that error happening at a new point? |
It happens during configuration when DSC engine try to create Resource class to invoke Test method.
|
Ok I need to do some deeper testing with this... This will be a good excuse for me to finally make a local lab with a pull server. :) |
It's super easy using DSC. Than it's better to have nice script to compile and rename files for PullServer standards |
According to Microsoft documentation you should use .psm1 extensions instead of .psd1 in module manifest file in NestedModules section (https://msdn.microsoft.com/en-us/powershell/reference/4.0/microsoft.powershell.core/new-modulemanifest#-nestedmodules)
Because of .psd1 extensions i got error during configuration of my ServiceBus server
Cannot find module SBFarm_0.10.0.0 from the server http://[PULLSERVER]/PSDSCPullServer.svc/Module(ConfigurationId='8230F4D0-EC13-4B8F-BA99-90F859D5DBF1',ModuleName='SBFarm',ModuleVersion='0.10.0.0')/ModuleContent. + CategoryInfo : ResourceUnavailable: (root/Microsoft/...gurationManager:String) [], CimException + FullyQualifiedErrorId : WebDownloadManagerModuleNotFound,Microsoft.PowerShell.DesiredStateConfiguration.Commands.GetDscModuleCommand + PSComputerName : [COMPUTERNAME]
The text was updated successfully, but these errors were encountered: