What is my DSCResource does not require any input parameters?

This topic contains 2 replies, has 3 voices, and was last updated by Profile photo of Nitin Gupta Nitin Gupta 4 months, 4 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #38392
    Profile photo of GS
    GS
    Participant

    Might be a stupid question but DSCResource schema requires me to have input parameter. But what is it's not required for my resource? Example is I want to make sure that there are no empty application pools on machine? Resource checks if any application pools do not have associated applications with it and then deletes them.
    Do I still need to have input parameter specified?

    #38533
    Profile photo of Don Jones
    Don Jones
    Keymaster

    So far, I've mainly seen people add a "dummy" property to fill the requirement.

    #38591
    Profile photo of Nitin Gupta
    Nitin Gupta
    Participant

    You at least need a key property in your resource in a way that multiple instances of your resource is not allowed. This Bloghas more details on how to write a resource with single instance.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.