Skip to content

[Question]: CI/CD Pipeline Failure: Error: Unexpected error when running action. Error Message: The term 'Get-CimInstance' is not recognized #1308

@michaelscott-1963

Description

@michaelscott-1963

Question

I am receiving the following error message when the CI/CD pipelines is run:

Invoke Run-AlPipeline with buildmode Default
Parameters
Pulling generic image
  
    _____       _ _ _                                          _        _
   |  __ \     | | (_)                                        (_)      (_)
   | |__) |   _| | |_ _ __   __ _    __ _  ___ _ __   ___ _ __ _  ___   _ _ __ ___   __ _  __ _  ___
   |  ___/ | | | | | | '_ \ / _` |  / _` |/ _ \ '_ \ / _ \ '__| |/ __| | | '_ ` _ \ / _` |/ _` |/ _ \
   | |   | |_| | | | | | | | (_| | | (_| |  __/ | | |  __/ |  | | (__  | | | | | | | (_| | (_| |  __/
   |_|    \__,_|_|_|_|_| |_|\__, |  \__, |\___|_| |_|\___|_|  |_|\___| |_|_| |_| |_|\__,_|\__, |\___|
                             __/ |   __/ |                                                 __/ |
                            |___/   |___/                                                 |___/
  
  Run-AlPipeline Telemetry Correlation Id: d759cfff-f7e7-4f65-950f-33ec3c4d9be7
  Applying settings from /home/runner/work/ManageByAttributes/ManageByAttributes/.github/AL-Go-Settings.json
  Applying settings from /home/runner/work/ManageByAttributes/ManageByAttributes/.AL-Go/settings.json
  No settings found in /home/runner/work/ManageByAttributes/ManageByAttributes/.github/CICD.settings.json
  No settings found in /home/runner/work/ManageByAttributes/ManageByAttributes/.AL-Go/CICD.settings.json
  No settings found in /home/runner/work/ManageByAttributes/ManageByAttributes/.AL-Go/carcallynx.settings.json
  Enabling Microsoft telemetry...
  Error: Unexpected error when running action. Error Message: The term 'Get-CimInstance' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again., StackTrace: at Get-BestGenericImageName, /home/runner/.BcContainerHelper/6.0.28/BcContainerHelper/ContainerHandling/Get-BestGenericImageName.ps1: line 20 <- at <ScriptBlock>, /home/runner/.BcContainerHelper/6.0.28/BcContainerHelper/AppHandling/Run-AlPipeline.ps1: line 1004 <- at <ScriptBlock>, /home/runner/.BcContainerHelper/6.0.28/BcContainerHelper/AppHandling/Run-AlPipeline.ps1: line 1041 <- at <ScriptBlock>, /home/runner/.BcContainerHelper/6.0.28/BcContainerHelper/AppHandling/Run-AlPipeline.ps1: line 1023 <- at Run-AlPipeline, /home/runner/.BcContainerHelper/6.0.28/BcContainerHelper/AppHandling/Run-AlPipeline.ps1: line 1019 <- at <ScriptBlock>, /home/runner/work/_actions/microsoft/AL-Go-Actions/v6.1/RunPipeline/RunPipeline.ps1: line 395 <- at <ScriptBlock>, /home/runner/work/_temp/a73865f1-4054-441c-9de1-7d7613d76486.ps1: line 3 <- at <ScriptBlock>, /home/runner/work/_actions/microsoft/AL-Go-Actions/v6.1/Invoke-AlGoAction.ps1: line 17 <- at <ScriptBlock>, /home/runner/work/_temp/a73865f1-4054-441c-9de1-7d7613d76486.ps1: line 2 <- at <ScriptBlock>, <No file>: line 1
  Error: Process completed with exit code 1.

My .github/AL-Go-Settings.json are:

{
  "type": "PTE",
  "templateUrl": "https://github.com/microsoft/AL-Go-PTE@main",
  "templateSha": "36999e29e31ad83a6a856ee6ef59cd1602c84df5",
  "runs-on": "ubuntu-latest",
  "gitHubRunner": "ubuntu-latest",
  "doNotPublishApps" : true
}

I added the "doNotPublishApps" : true after reading Issue 806

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions