DSC "Property Sets"

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Craig Martin Craig Martin 1 year, 8 months ago.

  • Author
    Posts
  • #23622
    Profile photo of Trevor Sullivan
    Trevor Sullivan
    Participant

    Hey folks,

    PowerShell DSC Resources should support multiple “property sets,” similar to how PowerShell cmdlets support multiple “parameter sets.” The reasoning for this is essentially the same as parameter sets. For example, a “Process” DSC resource instance might be configured using the Name as the key property, in PropertySet1, and the Id as the key property in PropertySet2. That's an overly-simplified example, but the principle remains the same.

    If you feel it's appropriate, please vote on this PowerShell DSC enhancement request on Microsoft Connect.

    https://connect.microsoft.com/PowerShell/feedback/details/1199561/powershell-dsc-needs-to-support-property-sets

    Cheers,
    Trevor Sullivan
    Microsoft MVP: PowerShell
    http://trevorsullivan.net
    http://twitter.com/pcgeek86

  • #23641
    Profile photo of Craig Martin
    Craig Martin
    Member

    Good suggestion, I can see how that could be used to have one DSC resource cover different object types.

You must be logged in to reply to this topic.