davidobrien1985 / DscResources

This repository will contain custom PowerShell DSC Resources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

dragon788 opened this issue · comments

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.

@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.