Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Getting error Could not find the type of DSC resource class MSFT_nxPackageResource. #870

@Jasmsft

Description

@Jasmsft

DSC config
Configuration 'aidepackageinstall' {
Import-DscResource -ModuleName nx
node LinuxNode {
#Ensure aide package is installed
nxpackage aidepackage {
Ensure = 'Present'
Name = 'aide'
PackageManager = 'Apt'
}
}
}

New-GuestConfigurationPackage -Name 'MyConfig'
-Configuration 'C:\Temp\LinuxNode.mof' -Type Audit
-Force

Result:
Name Path


MyConfig C:\Windows\System32\MyConfig.zip

Get-GuestConfigurationPackageComplianceStatus -Path C:\Windows\System32\MyConfig.zip
result:
Write-Error: Job 4cd3cfb6-343d-44f7-ab8c-ec3a1c4a063f : MIResult: 6 Error Message: Could not find the type of DSC resource class MSFT_nxPackageResource. Message ID: ClassTypeNotFound Error Category: 13 Error Code: 6 Error Type: MI

image

NX module is installed and should have the MSFT_nxPackageResource class in it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions