Comments (8)
Thanks.. I'll take a look
from dsc.
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.
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.
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.
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.
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.
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.
That's interesting... I actually removed the psd1 from my fork, but will add it back.
from dsc.
Related Issues (20)
- DSCBuild: Allow resource modules to specify their own build scripts HOT 2
- DscBuild: Restore state of Program Files directory on failed build HOT 6
- Add tests for DscBuild HOT 1
- Resolve-DscConfigurationProperty and Services vs node HOT 4
- Modules in DSC_Resorces cant be used to manage machine running invoke-DSCBuild. HOT 11
- Command conflicts HOT 1
- Get-DscConfigurationData filtering behavior HOT 1
- DSC Resource HOT 5
- cSmbshare Test-TargetResource FIX HOT 1
- ValidateSet can not be used for Arrays, PSCredentials, and Hashtable HOT 2
- How to get Credentials into a Configuration HOT 2
- Documentation for DSC tooling HOT 4
- New Resources for ElasticSearch, NSSM, 7zip and JRE HOT 15
- DSC resources for Team Foundation Server HOT 7
- Update credential encryption code
- Modify New-DscResourceFromModule to accept new parameters HOT 1
- Break up cDscDiagnostics into individual scripts HOT 4
- Add-DscEncryptedPassword functionality HOT 4
- DSC Resource PSHOrg_cADGroup to cActive Directory HOT 6
- building with Jenkins HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dsc.