I am trying to find out the answer to a reasonably simple question. Under what circumstances is the Get-TargetResource called.
I am currently writing a considerable number of resource modules, and they are doing exactly as I expect them to do. However I am also leaving the Get-TargetResource function very sparse (I currently leave a throw in there so I find out if it is called -
which it isn't)
I know how to structure the resource file. I am not asking for that. I am asking for the context that the function is called under so that I can write a function that actually provides some function!
I do not believe that anyone understands this particular aspect of DSC because there is no documentation regarding its implementation. (I have spent a lot of time looking now)
Please if you are as fully conversant with DSC as you suggest maybe you could enlighten us as to the conditions that must be set for Get-TargetResource to be called.
(that does seem an awfully peculiar belief though, surely that would mean that nobody would ever be able to learn a new technology like DSC, because they wouldn't be able to write Resources because they didn't understand it because they couldn't write resources
- or maybe I'm misunderstanding your point)