Skip to content
This repository has been 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

Open
Jasmsft opened this issue Aug 5, 2022 · 1 comment

Comments

@Jasmsft
Copy link

Jasmsft commented Aug 5, 2022

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

@briandoddscc
Copy link

Hi,
Did you get to the bottom of this?
Brian.

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

No branches or pull requests

2 participants