Chapter 1. Introduction to PowerShell DSC
"Begin at the beginning," the King said, very gravely, "and go on till you come to the end: then stop." | ||
--Lewis Carroll, Alice in Wonderland |
"Don't Panic." | ||
--Douglas Adams, The Hitchhiker's Guide to the Galaxy |
Welcome to PowerShell Desired State Configuration (DSC), the new configuration management platform from Microsoft. We begin with a quote from Alice in Wonderland. Besides pertinent advice for the author, it is apropos of what DSC is at its very core. DSC, by the very simplest definition, allows you to write down the beginning, the middle, and the end of your deployment story. The second quote we see is from The Hitchhiker's Guide to the Galaxy, and is something to remember throughout reading this book. We will cover a lot of new concepts, some old concepts with new importance, and a lot of PowerShell. Don't panic; we'll get through fine.
This book will begin with the basics of PowerShell DSC, covering its architecture and many components. It will familiarize you with the set of Windows PowerShell language extensions and new Windows PowerShell commands that comprise DSC. Then, it will help you create DSC custom resources and work with DSC configurations with the help of practical examples. Finally, it will describe how to deploy a configuration data set using PowerShell DSC.
By the end of this book, you will be able to deploy a real-world application end to end.
In this chapter, we will cover:
- What is PowerShell DSC?
- Why do we need Configuration Management and what is DevOps?
- How does DSC help me?
- A high level overview of DSC
- DSC requirements
- DSC versions