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)

Pushing DSC Configurations

"The past, like the future, is indefinite and exists only as a spectrum of possibilities"
- Stephen Hawking

We have covered everything there is to know about DSC and its internals at this point, but we have not fully explained the different ways DSC configurations actually get to the target nodes. In the first few chapters of the book, you learned that there are two models to DSC: a push and a pull model. In this chapter, we will be covering the push model. We will first define what the push model is and then move on to how to use it with DSC configurations. We'll take an example configuration and apply it to a local target node and a remote target node.

In this chapter, we will cover the following topics:

  • Tooling
  • Setting things up
  • Locally pushing DSC configurations
  • Remotely pushing DSC configurations
Look at Chapter 7, DSC Cross Platform...