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

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 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