Book Image

Learning PowerShell DSC - Second Edition

By : James Pogran
Book Image

Learning PowerShell DSC - Second Edition

By: James Pogran

Overview of this book

The main goal of this book is to teach you to configure, deploy, and manage your system using the new features of PowerShell v5/v6 DSC. This book begins with the basics of PowerShell Desired State Configuration, covering its architecture and components. It familiarizes you with the set of Windows PowerShell language extensions and new Windows PowerShell commands that make up DSC. Then it helps you create DSC custom resources and work with DSC configurations with the help of practical examples. Finally, it describes how to deploy configuration data using PowerShell DSC. Throughout this book, we will be focusing on concepts such as building configurations with parameters, the local configuration manager, and testing and restoring configurations using PowerShell DSC. By the end of the book, you will be able to deploy a real-world application end-to-end and will be familiar enough with the powerful Desired State Configuration platform to achieve continuous delivery and efficiently and easily manage and deploy data for systems.
Table of Contents (9 chapters)

Real-life DSC usage

After coming this far, you're on the bandwagon and are ready to implement DSC in your production environment. You're the admin for numerous servers and you want to start getting things in order right away. You've talked it over with your boss and you both know there isn't enough room on the VM server for a dedicated instance just to stand up to the DSC pull server when it hasn't proven itself yet. You've agreed to start out with pushing DSC configurations to show progress and, in a month, re-evaluate what the progress is.

When you open the list of servers you manage, you notice that there is a mix of Windows 2008 R2 and Windows 2012 R2. A sigh of relief escapes your mouth when you remember the last of the old Windows 2003 servers were migrated off a couple months ago in preparation for the end of life cutoff that happens this year...