PowerShell DSC needs to support "Property Sets"
Votes from Connect: 12
Original Date Submitted: 3/24/2015 8:05:35 AM
Handle: Trevor Sullivan [MVP]
Site Name: PowerShell
Feedback ID: 1199561
NOTE: I believe this functionality is already in progress, but I wanted to make sure it was documented in the official PowerShell feedback channel.
PowerShell DSC Resources need the ability to support multiple "property sets" similar to the "parameter sets" that are
- Add a "PropertySetName" property to the [DscProperty()] attribute (eg. [DscProperty(PropertySetName = "PropertySet1", Key)]
- Add a private property (eg. $PropertySetName) to the [DscResource()] attribute, to ensure that the Get(), Test(), and Set() methods for the DSC Resource class can determine which property set is in effect.
2a. Better yet, expose DSC Resource metadata through an automatic variable, similar to $PSCmdlet
Product Studio item created by Connect Synchronizer due to creation of feedback ID 1199561 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=1199561).
Internal BugId: 14333