DSC Resource Skeleton with Key Property

suggest change
[DscResource()]
class Ticket {
  [DscProperty(Key)]
  [string] $TicketId
}

A DSC Resource must declare at least one key property. The key property is what uniquely identifies the resource from other resources. For example, let’s say that you’re building a DSC Resource that represents a ticket in a ticketing system. Each ticket would be uniquely represented with a ticket ID.

Each property that will be exposed to the user of the DSC resource must be decorated with the [DscProperty()] attribute. That attribute accepts a Key parameter, which marks the property as the resource's key.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents