DSC Class based resource error

This topic contains 2 replies, has 3 voices, and was last updated by  Aurimas N. 8 months, 2 weeks ago.

  • Author
  • #55198

    Ox Hobbs

    Hi, I am looking around to see if anyone else has seen this error when creating DSC class-based resources.
    I have a few resources in the same psm1 file. The first couple of resources work normally and I haven't done anything different in the next resource I am trying to create.

    My resource shows up with Get-DscResource properly. However, when I run an Invoke-DscResource -Method Test on it I get an error:
    Invoke-DscResource : All classes must have a reference to ConfigurationResource.

    My searches don't show me anything and I just simply don't see that I have done anything different from any other class-based resource I have create.


  • #55223

    can you please share the relevant pieces of the class based resource that is throwing that error? That would help us investigate more.

  • #70188

    Aurimas N.

    Hi, were you able to identify the problem?

You must be logged in to reply to this topic.