What is Desired State Configuration?
Powershell Desired State Configuration (DSC) is really a powerful way of scripting. It is a declarative model of scripting, instead of you defining Powershell exactly each and every step to get from point A to point B. You only need to describe what point B is and Powershell takes care of it before anything. The biggest benefit is that we get to define our configuration, our infrastructures, our servers as a code. Desired State Configuration in Powershell can really be achieved through 3 simple steps:
- Create the Configuration
- Compile the Configuration into a MoF file
- Deploy the Configuration
What will you need to run Powershell DSC?
Thankfully we do not need a whole lot, Powershell comes with it built-in. So, for managing Windows systems with DSC you are going to need modern version of Powershell, that is:
- Windows 4.0, 5.0, 5.1
- Powershell DSC for Linux is available
- Currently limited support for Powershell Core
Also published on Medium.