Book Image

Learning PowerShell DSC

By : James Pogran
Book Image

Learning PowerShell DSC

By: James Pogran

Overview of this book

Table of Contents (14 chapters)
Learning PowerShell DSC
About the Author
About the Reviewers

Things you must consider when pushing DSC configurations

Our example DSC configuration is pretty simple even though it worked well for showcasing how to push DSC configurations. When DSC configurations become more complex, there are things you must take into consideration.

Up until now, we have been configuring settings or enabling software with DSC Resources that were already present on the target host. What if we tried to use text files and MSIs that were not present on the target node? In all our examples, we haven't had to actually do any work to get the files we want onto our target nodes. And herein lies the main problem with pushing DSC configurations. Nothing is done for us; we have to copy everything and ensure everything is present and accessible on the target nodes. So, what do we have to do for ourselves when pushing DSC configurations?

When pushing DSC configurations, DSC does not copy DSC Resources for you. While you may be annoyed by this, it does make sense when you think about...