Desired State Configuration (DSC) is fantastic platform that leverages PowerShell, in this video we will take a look at why DSC is important for your organization and quick look at DSC in action
- [Voiceover] Welcome to this video on PowerShell Desired State Configuration Essentials. And this video we're going to talk about why do we need Desired State Configuration or DSC for short and really the main reasons we need it is simply the evolution of IT management and configuration. Especially as developers are starting to do more and more with our businesses. We have to have a way for an IT standpoint to not only give them the resources that they have, but also provide them with configuration that's consistent that are not only meet their standards but more importantly meets our IT standards from security, from configuration.
From just content planning. So we have this great environment. And Desired State Configuration really helps us bridge the gap between IT pros and developers. Most importantly though, Desired State Configuration is a platform. So, you might be thinking, Matt, I've done Configuration Management before. I've used VB script or I've used Batch files or I've used other deployment platforms and I keep my environment up to date that way. But, the challenge with a lot of those environments is the complexity. The VB Scripts can get very complex. The great thing about DSC it's a platform but it's also based on powershells.
So, it's a very intuitive, natural language type of environment where we can really make it easy to describe an environment or describe a configuration and then deploy that configuration. And what DSC really allows you to do is ensure your data center is configured in the proper way and that your server's configured in the proper way. More importantly, DSC can be configured in such a way it prevents configuration drift. We know, as you have more and more servers that are in your environment, sometimes someone deleted or removed a file or renamed a file.
And something breaks. This is just the nature of IT. The great thing about Desired State Configuration, no only do we make a configuration the way it's suppose to, we can also prevent that configuration changing and making sure this platform or Desired State Configuration is acutally always there. Nice thing about this as well is that we can do continuous deployment. So we can go from development, to test, to production very easily with Desired State Configuration where we can actually set up our configuration files to handle that. So, through out this course, we're really going to dig into the nitty gritty of how Desired State Configuration works and give you an overview of this tremendously powerful platform that you can use inside your environment.
So, before we get rolling in the course, let's go ahead and do a quick peek at what Desired State Configuration can do for you and for your organization. So, I'm going to hop on over one of my servers and I'm actually going to show you a couple kind of before and after picture. So, here we have a web server that I'm actually browse to. So, I'm actually on a main to main controller, so I'm actually on an environment where DSC is being delivered from. And we see just a default website for this. So, if I run that script, and refresh that page it's already the default site. I'm going to run one power shell command to make this change.
So, I'm going to flip into my powershell ISC Environment. I have my line highlighted. Notice it says Start DCS Configuration. So I already have the configuration in place. I've already done some of the underlining plumbing to make this work. I'm just going to run that one line. Let it fire up. Give it a second. And hopefully if everything is working right, let me go and refresh this screen. Does anybody want a cupcake? So, if you'll notice here, we're actually able to take that configuration from the website, now if you think... well Matt, that was just all you did was copy them files. Exactly right.
But, the good thing about this now is with Desired State Configuration, this websites going to be way because I'm going make it so. And more importantly I'm going to keep it this way and keep it so throughout this. So, if you're wondering how I made this website and if you want the cupcakes for your own, stay tune. We're going to show you how to do this in the other videos in this course.
Current IT pros will need to understand DSC as they move into managing Microsoft's next wave of server and cloud products that will leverage this important technology. In this course, Matt Hester shows how to write configuration documents, work with DSC resources, and apply configurations to systems via both push and pull modes. Plus, he shows how to troubleshoot DSC and use DSC in non-Windows environments like Linux.
- Why we need DSC
- Understanding DSC architecture
- Working with built-in and custom resources
- Creating a DSC configuration
- Staging configured data
- Creating, testing, and restoring DSC configurations with the push model
- Configuring pull servers
- Creating and testing DSC configurations with the pull model
- Using DSC in Linux environments
- Troubleshooting DSC