Coder Social home page Coder Social logo

Comments (4)

ptal3 avatar ptal3 commented on June 10, 2024

Digging into the CloudWatch logs, seems like the Powershell scripts are failing:

At C:\AWSQuickstart\Module-AD\Module-AD.psm1:1455 char:9

  •     Import-DscResource -ModuleName 'AuditPolicyDsc'
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    

Could not find the module 'AuditPolicyDsc'.
At C:\AWSQuickstart\Module-AD\Module-AD.psm1:2040 char:9

  •     Import-DscResource -ModuleName 'AuditPolicyDsc'
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    

Could not find the module 'AuditPolicyDsc'.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ModuleNotFoundDuringParse

Import-Module : The specified module 'C:\AWSQuickstart\Module-AD\Module-AD.psm1' was not loaded because no valid
module file was found in any module directory.
At C:\ProgramData\Amazon\SSM\InstanceData\i-0de7f58f9c3c2f3e2\document\orchestration\f3fa5751-66f1-4f7e-892f-c4009df51b
2a\awsrunPowerShellScript\0.awsrunPowerShellScript_script.ps1:2 char:5

  • Import-Module -Name 'C:\AWSQuickstart\Module-AD\Module-AD.psm1' - ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ResourceUnavailable: (C:\AWSQuickstar...\Module-AD.psm1:String) [Import-Module], FileNot
      FoundException
    • FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

New-VolumeFromRawDisk : The term 'New-VolumeFromRawDisk' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At C:\ProgramData\Amazon\SSM\InstanceData\i-0de7f58f9c3c2f3e2\document\orchestration\f3fa5751-66f1-4f7e-892f-c4009df51b
2a\awsrunPowerShellScript\0.awsrunPowerShellScript_script.ps1:7 char:1

  • New-VolumeFromRawDisk
  •   + CategoryInfo          : ObjectNotFound: (New-VolumeFromRawDisk:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

Invoke-PreConfig : The term 'Invoke-PreConfig' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At C:\ProgramData\Amazon\SSM\InstanceData\i-0de7f58f9c3c2f3e2\document\orchestration\f3fa5751-66f1-4f7e-892f-c4009df51b
2a\awsrunPowerShellScript\0.awsrunPowerShellScript_script.ps1:8 char:1

  • Invoke-PreConfig
  •   + CategoryInfo          : ObjectNotFound: (Invoke-PreConfig:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

Invoke-LcmConfig : The term 'Invoke-LcmConfig' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At C:\ProgramData\Amazon\SSM\InstanceData\i-0de7f58f9c3c2f3e2\document\orchestration\f3fa5751-66f1-4f7e-892f-c4009df51b
2a\awsrunPowerShellScript\0.awsrunPowerShellScript_script.ps1:9 char:1

  • Invoke-LcmConfig
  •   + CategoryInfo          : ObjectNotFound: (Invoke-LcmConfig:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

from learn-cantrill-io-labs.

ptal3 avatar ptal3 commented on June 10, 2024

Hi @acantril,

Issue resolved.

A missing "AuditPolicyDSC" module dependency needs to be added onto
https://learn-cantrill-labs.s3.amazonaws.com/aws-hybrid-activedirectory/03_HYBRIDDIR-NESTED-ONPREM-AD-v2.yaml.

Snippet below:

$Modules = @(
@{
Name = 'NetworkingDsc'
Version = '8.2.0'
},
@{
Name = 'ActiveDirectoryDsc'
Version = '6.0.1'
},
@{
Name = 'ComputerManagementDsc'
Version = '8.4.0'
},
@{
Name = 'DnsServerDsc'
Version = '3.0.0'
},
@{
Name = 'AuditPolicyDsc'
Version = '1.4.0.0'
}

)

from learn-cantrill-io-labs.

acantril avatar acantril commented on June 10, 2024

Hi
This demo is broken
i'm working on replacing, but it says in the course not to do it.

from learn-cantrill-io-labs.

ptal3 avatar ptal3 commented on June 10, 2024

Thank you @acantril, much appreciated!

from learn-cantrill-io-labs.

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.