Skip to content
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

Installation failure #101

Open
wwwizards opened this issue Dec 16, 2024 · 1 comment
Open

Installation failure #101

wwwizards opened this issue Dec 16, 2024 · 1 comment

Comments

@wwwizards
Copy link

wwwizards commented Dec 16, 2024

first: this is an excellent tool which i have used in previous lives...

Currently, I am getting the following when trying to deploy on Win22+IISv10:

PS D:\PROJECTS\websites\WebJEA\Source> .\Deploy.ps1
At D:\PROJECTS\websites\WebJEA\Source\Deploy.ps1:38 char:5
+     Import-DSCResource -ModuleName xWebAdministration
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Could not find the module 'xWebAdministration'.
At D:\PROJECTS\websites\WebJEA\Source\Deploy.ps1:39 char:5
+     Import-DSCResource -ModuleName xXMLConfigFile
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Could not find the module 'xXMLConfigFile'.
At D:\PROJECTS\websites\WebJEA\Source\Deploy.ps1:40 char:5
+     Import-DscResource -ModuleName cUserRightsAssignment
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Could not find the module 'cUserRightsAssignment'.
    + CategoryInfo          : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : ModuleNotFoundDuringParse 

from the article: [Desired State Configuration 2.0] and [PowerShell Desired State Configuration (DSC) Overview]

"With the release of PowerShell 7.2, the PSDesiredStateConfiguration module is no longer included in the PowerShell package. "

I have followed the detour but cannot get WebJEA to deploy. it looks to me as if this is a major blocker for this product and may require refactoring for moving forward.

Any help would be greatly appreciated.

joe.negron.nyc

@cbigini
Copy link

cbigini commented Dec 19, 2024

Hello wwwizards,

I encoutered the same problem with the WebJEA deployment.
The details are a bit fuzzy but IIRC the DCS module presence is evaluated before even trying to execute the script, during the parse phase. I opened the Deploy.ps1, got to line 230 to 239 and launched that to fix it.

Don't forget to change the values at the top of the script :)

Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants