My Profile Photo

duffney.io


DevOps Engineer | Pluralsight Author | Speaker | Blogger | PowerShell Advocate


  1. Setting up Windows for Docker Container Development

    Containers are here! and if you haven’t already used them I highly, highly recommend you start even if it’s for lab only environments. I say this for a few reasons the most important being it will advance your career. Containers are going to be the way forward if that isn’t clear enough from all the buzz going around for the past few years. Another equality good reason you should start messing around with them is...…


  2. Using Desired State Configuration (DSC) Composite Resources

    Table of Contents Table of Contents Understanding Composite Resources DSC Without a Composite Resource Creating Composite Resources Using Composite Resources Adding Properties to a Composite Resource Summary Composite resources can be thought of as help functions, but instead of helper functions for your PowerShell scripts it’s a helper resource for your DSC configurations. They help solve the same problem helper functions do by modularizing your code. Which reduces the length and complexity of your code....…


  3. Getting Started with Invoke-Build

    Table of Contents Table of Contents What is InvokeBuild? PowerShell Module Development Workflow Creating The InvokeBuild Script Creating the Install Dependencies InvokeBuild Task Adding Linting with PSScriptAnalyzer Testing the Code with Pester Updating the Module Manifest Generating an Artifact Sources What is InvokeBuild? Invoke-Build is a build automation tool written in PowerShell. What does that mean? Well, just like anything written in PowerShell the purpose of it is to automate something and in this case...…


  4. Using Module Versions with Invoke-DscResource

    Invoke-DscResource is a cmdlet available in PowerShell version 5 and above. It allows you to run a Dsc resource method without having to generate a mof document or even write a configuration document. In this blog post you’ll learn how to use a ModuleSpecification to tell the cmdlet which version of a resource module to use. Why would you need to do that? By default, the cmdlet will use the latest version of the resource...…


  5. Getting Started with Pester

    Pester is a PowerShell behavior-driven development (BDD) style testing framework. But, really all you need to know about it before getting started, is that it’s a testing framework and it can be used to automate the testing of your PowerShell code. You might think to yourself well what’s the point of that? I already wrote my PowerShell function, all I need to do now is run it and see if it does what I want....…