Allow Import-DSCResource to leverage PowerShellGet to add missing modules dynamically
Frequency: current as of WMF4.0 (unknown in 5)
Right now, DSC is really only valuable in "established" environments with push configurations only looking for local module directories or a "Defined" repository already setup. This makes using DSC in a "consulting capacity" almost useless as I have to no only have a script to establish settings for a new machine ... but I need to copy modules into the right path first.
It would be awesome if I could add a flag to import-dscresource to tell the configuration to download the modules it needs via PowerShellGet if they are missing (maybe even a custom path for custom resources?). It would allow me to take those useful configurations with me and still have a "simple deploy" that doesn't require a mini-setup of me staging all the modules before hand.
Because if i have to stage a script too much ... it quickly becomes easier to just write a standalone PS with some parameters and skip the headache.