Code Monkey home page Code Monkey logo

Comments (8)

smurawski avatar smurawski commented on August 12, 2024

Thanks.. I'll take a look

from dsc.

jimmarch avatar jimmarch commented on August 12, 2024

So what I did to fix this was simply delete the .psd1 file. I guess because I'm importing it via the cWebAdministration Module, and not just the cAppPool module, that file was causing issues...

from dsc.

smurawski avatar smurawski commented on August 12, 2024

I think I know what was happening in this case.. git tends to mangle .psd1 files (by trying to be helpful and adjust line endings. I'm going to blog about this shortly and will be pushing a change to the repo to tell git to knock that crap off.

from dsc.

AshleyPoole avatar AshleyPoole commented on August 12, 2024

I'm running into the same issue as well. I've tried the previous solution of deleting the psd1 file which does allow the MOF files to be built that consume the resource. The issue I'm getting is when running Start-DSCConfiguration I'm getting the following error "Could not get the module with the following name: PSHOrg_cAppPool. Check if the module exists under PSModulePath".

I've also tried to 'repair' PSHOrg_cAppPool.psd1 as it was missing quotes and the GUID but only ran into more errors.

Am I missing something?

from dsc.

keyrage avatar keyrage commented on August 12, 2024

Just to confirm this is still happening with the cAppPool resource. Steven's quick fix of deleting the PSD1 seems to work.

Interestingly I looked at some of the experimental DSC resources from Microsoft and they don't include a PSD1 for each resource. There is a PSD1 for the parent module but each resource is purely a PSM1 and MOF schema file. There's a bit of inconsistency about whether they use an "Export-Moduolemember" to export the functions within the psm1.

I'd be inclined to suggest that the community DSC resources follow a similar pattern of only using the PSD1 at the base module and not include one for each DSC resource?

from dsc.

dlwyatt avatar dlwyatt commented on August 12, 2024

Fixed on https://github.com/PowerShellOrg/cWebAdministration . The module manifest was missing its RootModule key, causing the PSM1 file not to load properly. (Deleting the optional psd1 file was also an option, but I decided to leave it since it contained author credits and such.)

from dsc.

smurawski avatar smurawski commented on August 12, 2024

And I'm in favor of keeping the PSD1. There are still a few edge cases I've hit where resources would not load without one.

from dsc.

matthewhatch avatar matthewhatch commented on August 12, 2024

That's interesting... I actually removed the psd1 from my fork, but will add it back.

from dsc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.