Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Powershell DSC
  • Table Of Contents Toc
Learning Powershell DSC

Learning Powershell DSC

By : James Pogran
4.9 (8)
close
close
Learning Powershell DSC

Learning Powershell DSC

4.9 (8)
By: James Pogran

Overview of this book

Windows PowerShell is a task-based command-line shell and scripting language designed especially for system administration. PowerShell DSC is a new management platform that enables you to deploy and manage configuration data for software services and manage the environment in which these services run. This book begins with an overview of the basics of PowerShell DSC by covering the architecture and components of the Desired Sate Configuration. It will then familiarize you with the set of PowerShell language extensions and new PowerShell commands. It will help you understand and create DSC configurations with the help of practical examples, and to create DSC custom resources for your custom applications. Finally, you will learn to deploy a real world application using PowerShell DSC. By the end of the book, you will have better knowledge about the powerful Desired State Configuration platform, which helps you to achieve continuous delivery, and efficient management and easy deployment of data for systems.
Table of Contents (9 chapters)
close
close
8
Index

Creating a custom PowerShell v5 DSC Resource

As we have progressed through this chapter, we have made some observations about PowerShell v4 DSC Resources. We have seen that DSC Resource MOF schema files are verbose and obtuse. CIM schemas requires many lines to express a simple parameter statement, and the wording used is confusingly different from the wording used inside the PowerShell scripts. Managing both MOF schema files and PowerShell scripts files with essentially the same information is ripe for human error and mistakes.

Microsoft listened to this feedback and came back with PowerShell v5 DSC class-based DSC Resources.

PowerShell classes

PowerShell v5 introduced a new feature called a PowerShell class. If you are familiar with programming in any language, you will recognize this new feature. If not, don't worry about it too much as you can get pretty far with some basic programming knowledge that you already learned using PowerShell. That is one of the original design goals in...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning Powershell DSC
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon