dsccommunity / xDSCResourceDesigner

MIT License
24 stars 19 forks source link

Question about resource attribute #63

Closed jdhitsolutions closed 6 years ago

jdhitsolutions commented 6 years ago

Since the help documentation is a bit light I thought I'd ask here. In New-xDSCResourceProperty the Attribute property is required. I understand the Key and Required values. But am not sure what Read or Write is referring to. The resources I've test built seem to work just fine when using Write. I assumed this meant "writing" to the something on the computer. But that's just an assumption on my part. I'd appreciate any clarification on the Read and Write parameter values for Attribute.

adamrushuk commented 6 years ago

I found this when wanting the same clarification myself:

The [write] qualifier indicates that this property is optional when using the custom resource in a configuration script. The [read] qualifier indicates that a property cannot be set by a configuration, and is for reporting purposes only.`

Source: https://docs.microsoft.com/en-us/powershell/dsc/authoringresourcemof

jdhitsolutions commented 6 years ago

Thanks. I guess I wasn't that far off in my assumption.

adamrushuk commented 6 years ago

No worries Jeff. Glad to repay a simple link, after the many years I've spent learning from your content! :)