Agile/Scrum blog

Onderwerp: DSC

Writing Help for DSC Resources

Prajeesh Prathap Door: Prajeesh Prathap,  02-01-2015
Onderwerp: DSC  Desired State Configuration  PowerShell  

Windows PowerShell modules can include Help topics about the module and about the module members, such as cmdlets, providers, functions and scripts. The Get-Help cmdlet displays the module Help topics in the same format as it displays Help for other Windows PowerShell items,  and users use standard Get-Help commands to get the Help topics. Using the help system you can include details like syntax overviews, detailed explanations, examples etc. for your PowerShell modules or DSC resources.

For DSC you can make use of the conceptual ("about") Help topic to describe the module and its members and to explain how the members can be used together to perform tasks. Conceptual Help topics are text files with Unicode (UTF-8) encoding. The file name must use the about_.help.txt format, such as about_xSampleDSCResource1.help.txt. Read more..

DSC – Protecting the credentials in the MOF files

Prajeesh Prathap Door: Prajeesh Prathap,  01-01-2015
Onderwerp: DSC  Desired State Configuration  PowerShell  

When you dot source the DSC configuration file that contains a resource having a PSCredential object as parameter with the PSDscAllowPlainTextPassword option set in the configuration data, the resulting MOF file will have the password saved as plain text in a human readable format. This results in compromising the credentials from the MOF files. If you want to secure your credentials in the MOF file, then you need to use the LCM to check the credentials of the user, encrypt the credentials using the certificate details mentioned in the configuration data and then later decrypt it using the settings of the LCM.

To secure your MOF files, you’ll need to first create a certificate with a private key to decrypt the data in the MOF files and then use that information to create the MOF files. Read more..

DSC - Extending to Azure virtual machines

Prajeesh Prathap Door: Prajeesh Prathap,  25-12-2014
Onderwerp: DSC  Windows Azure  PowerShell  

Being a fan of PowerShell DSC, and have seen the ease and benefits of DSC, I wanted to test the extensions on my Azure infrastructure. To use DSC on your Azure VM’s you need to install the Azure PowerShell SDK on the VM. Once you have installed the SDK, you can create an authentication for the subscription by using the Azure AD. 

DSC – Configuration delivery modes

Prajeesh Prathap Door: Prajeesh Prathap,  30-11-2014
Onderwerp: PowerShell  DSC  Desired State Configuration  CD  

In the configuration management life cycle in DSC, configuration delivery plays a major role. Once a configuration is authored, a delivery mode helps to enact the configuration on the target systems. These modes dictate how the configuration is enforced and corrected, as required. DSC supports two types of delivery modes: Push and Pull.

Desired State Configuration - Elements of the configuration

Prajeesh Prathap Door: Prajeesh Prathap,  17-11-2014
Onderwerp: DSC  Desired State Configuration  PowerShell  

DSC is a feature built into the Windows Operating System. It’s based on the standards like CIMS and WS-Management remote management offered by the operating system. With DSC you can move to a way of configuration management where you can create a script that defines how the state of the server should be instead of defining how to make the server in the desired state. That means, DSC is more of a declarative syntax than an imperative one. This makes DSC scripts/ configurations easy to understand and maintain by the operations.

Desired State Configuration - Introduction to CIM

Prajeesh Prathap Door: Prajeesh Prathap,  03-11-2014
Onderwerp: CIM  Common Information Model  Desired state configruation  DSC  PowerShell  Windows Remote Management  

PowerShell 4.0 introduces desired state configuration (DSC), a powerful new feature that makes it easier than ever to manage your Windows infrastructure, whether on premise or in the cloud. DSC is built on the Common Information Model (CIM) standard developed by the Desktop Management Task Force (DMTF) and uses Windows Remote Management (WinRM) technology as a communication mechanism. In this post we will look at what Windows Remote Management is and how it is used in the Windows OS world to enable standards-based management. In the upcoming posts I'll explain how CIM cmdlets in PowerShell use WinRM to work with management data from remote systems and the role of DSC in managing remote machines.