I’m currently new to DSC but I’ve got a pretty good grasp on it so far. I am in the process of building a custom resource and deploying it out via a pull server. For the most part everything in my configuration was all good until I got to this part.
I believe my issue is the format of the ZIP being stored in my DSC module directory for the pull server.
The module in my powershell module directory looks like this:
Of the above files how should they be zipped up? I’ve tried numerous combinations and none have worked. I am aware that it needs to be zipped like xEnableFirewall_1.0.zip and a checksum created for the ZIP. The ZIP has at the very least the following included
---xEnableFirewall xEnableFirewall.psm1 xEnableFirewall.schema.mof xEnableFirewall.schema.mof.checksum
But where do I put the psd1 that contains the version info etc?
I’ve tried it in pretty much almost every combination I can think of but no luck.
The LCM downloads the file to temp but then I get errors in my event log saying this depending on the location where I’ve put the psd1 file in the ZIP:
ErrorId is 0x6. ErrorDetail is Module file xEnableFirewall did not contain a module with required version 1.0.
The content validation for module xEnableFirewall completed with status code 6.
The content validation for module xEnableFirewall completed with status code 12.