DSC Class based resource error


This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Indhu Krishna Sivaramakrishnan Indhu Krishna Sivaramakrishnan 1 week, 6 days ago.

  • Author
  • #55198
    Profile photo of Ox Hobbs
    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.

You must be logged in to reply to this topic.