davidobrien1985 / DscResources

This repository will contain custom PowerShell DSC Resources
MIT License
22 stars 9 forks source link

Can this module also immediately import a new module for use e.g. Import-DSCResource? #5

Closed dragon788 closed 7 years ago

dragon788 commented 8 years ago

I left a comment on your initial blog post about this repository, but I am wondering if it would be possible to have this module perform the install and import so that you could immediately use the module that was added, but I'm not sure if this matches the structure of how DSC works.

davidobrien1985 commented 8 years ago

@dragon788 no, this won't fly with DSC. If the Import-DscModule keyword can't find the module then the file won't compile to a .mof. This would need to happen in two steps.