I’m writing a module/resource that is a little more unique than others I’ve written and because of this, I’m finding the format of the return data that I’d like to get back from get-targetresource to be unique even when compared to the parameters of the resource. But it then occurred to me that if the return data doesn’t match the parameters then it’s not as predictable and I might break something. Which leads to the question:
Is it “safe” to treat “get-targetresource” as effectively a reporting-only function and thus while it may share the same universal parameter inputs it might return some unique output?
Quick and dirty example: Lets say while it’s not a parameter I’d use in my set-, I’d like to report back on a property of an object (like the creator of the file)? Would the lack of an “owner” parameter be a problem if “owner” made it back in the returndata of a get-targetresource?