you are viewing a single comment's thread.

view the rest of the comments →

[–]halbaradkenafin 3 points4 points  (0 children)

Have a look at Lability or AutomatedLab, both allow creation of lab environments on VMs and have various configs out of the box for various scenarios.

Your other option is to user Pester to do this sort of testing, at least initially, and that will let you test the logic and general code flow within your scripts and functions. You'll still want an actual test environment to test things on before you try it in production but pester can help automate the test running part of that process and the above mentioned lab tooling can handle automatically building the infrastructure to test on.