SlideShare a Scribd company logo
CROSS-PLATFORM CONFIGURATION
MANAGEMENT WITH
DESIRED STATE CONFIGURATION
Ravikanth C
Windows PowerShell MVP
PowerShellMagazine.com
@ravikanth
AGENDA
• DSC PRIMER
• DEMO
DSC PRIMER
• Address challenges in
– Continuous Delivery and Integration
– Configuration Management
• Management Platform
– Available for Windows and Linux/Unix
• Provides
– Language Extensions
– Resources
– PowerShell Cmdlets
• Declarative Style (DSL)
• Push and Pull configuration delivery
DSC PRIMER
What about these and
many others?
DSC PRIMER
• Configuration Management as an API
• Write your own tools to
– Author
– Stage
– Push
– Monitor
• Or use 3rd-party tools such as ScriptRock
GaurdRail and so on!
DSC PRIMER
• Configuration is stored at:
– Windows: C:WindowsSystem32Configuration
– Linux: /opt/omi-1.0.8/etc/dsc/configuration
• Current.mof – Present configuration (N)
• Backup.mof – Copy of Current.mof
• Pending.mof – Configuration changes
pending
• Previous.mof – N-1 configuration
• MetaConfig.mof – LCM configuration
DSC PRIMER
• DSC logs provide insight into
configuration changes and issues
• Windows: Event Logs
– Applications and Services
Logs/Microsoft/Windows/Desired State
Configuration
• Linux: /opt/omi-1.0.8/var/log
DSC IN ACTION & DSC API
Demo
DSC PRIMER
• Custom resource authoring is easy!
– Heard of Modules?
• For Windows OS
– Script Modules
– Binary Modules in C#
– MI Provider (native code)
• For Linux OS
– MI Provider
BACKUP
DECLARATIVE SYNTAX
Configuration ArchiveDemo {
Node SRV3-WS2012R2 {
Archive ArchiveDemo {
Path = "10.10.10.101BackupScripts.zip"
DestinationPath = "C:Scripts"
Ensure="Present"
}
}
}
ArchiveDemo
.PS1
DSC ARCHITECTURE
LCM API
CIM Method PowerShell Cmdlet
SendConfigurationApply Start-DscConfiguration
SendConfiguration -
ApplyConfiguration -
GetConfiguration Get-DscConfiguration
Rollback Restore-DscConfiguration
TestConfiguration Test-DscConfiguration
StopConfiguration -
SendMetaConfigurationApply Set-DscLocalConfigurationManager
GetMetaConfiguration Get-DscLocalConfigurationManager
PerformRequiredConfigurationChecks -
Custom Resources
• Three Functions
– Get-TargetResource
– Set-TargetResource
– Test-TargetResource
Start
Test-
TargetResource
Set-
TargetResource
False
End
True

More Related Content

PDF
HFM System Messages: Revealed!
PPTX
HFM API Deep Dive – Making a Better Financial Management Client
PPTX
Docker for .NET Developers
PPTX
Introduction to Desired State Configuration (DSC)
PDF
Building and Managing your Virtual Datacenter using PowerShell DSC - Florin L...
PPTX
Configuration management comes to Windows
PPT
Desired state-configuration-ravikanth-august-2013-vtc india
PPTX
PowerShell DSC: Introduction
HFM System Messages: Revealed!
HFM API Deep Dive – Making a Better Financial Management Client
Docker for .NET Developers
Introduction to Desired State Configuration (DSC)
Building and Managing your Virtual Datacenter using PowerShell DSC - Florin L...
Configuration management comes to Windows
Desired state-configuration-ravikanth-august-2013-vtc india
PowerShell DSC: Introduction

Similar to Cross platform configuration management using Desired State Configuration (20)

PPT
PowerShell v4 Desired State Configuration
PPTX
Sp automation with dsc
PPTX
Jan Egil Ring - Get started with windows power shell desired state configuration
PPTX
PowerShell-and-DSC-Enables-DSCDevOps-1.pptx
PPT
Mmik_Powershell_DSC_Azure_DSC
PPT
Mmik powershell dsc_slideshare_v1
PPTX
NetPonto #10 @Porto - DevOps: Poershell DSC
PPTX
PowerBreakfast #005 - Why DSC, NOW?
PPTX
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSC
PPTX
Server update management optimization
PPTX
PowerShell DSC Partial Configurations and Cross-node Synchronization
PDF
PowerShell DSC - State of the Art & Community by Gael Colas
PPTX
Automation: PowerShell & DSC
PPTX
Managing the Infrastructure Stack with PowerShell
PPTX
ECS19 - Nik Charlebois - Automate the Deployment & Monitoring of SharePoint w...
PDF
VMworld Europe 2014: Taking Reporting and Command Line Automation to the Next...
PPTX
Deeper into DSC (DSC vs. GPO vs. DCM - What and When)
PDF
Step by Step instructions to install Cluster Domain deployment model
PDF
Power shell desired state configuration for Devops and ALM practitioners
PPTX
Azure Security and Management
PowerShell v4 Desired State Configuration
Sp automation with dsc
Jan Egil Ring - Get started with windows power shell desired state configuration
PowerShell-and-DSC-Enables-DSCDevOps-1.pptx
Mmik_Powershell_DSC_Azure_DSC
Mmik powershell dsc_slideshare_v1
NetPonto #10 @Porto - DevOps: Poershell DSC
PowerBreakfast #005 - Why DSC, NOW?
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSC
Server update management optimization
PowerShell DSC Partial Configurations and Cross-node Synchronization
PowerShell DSC - State of the Art & Community by Gael Colas
Automation: PowerShell & DSC
Managing the Infrastructure Stack with PowerShell
ECS19 - Nik Charlebois - Automate the Deployment & Monitoring of SharePoint w...
VMworld Europe 2014: Taking Reporting and Command Line Automation to the Next...
Deeper into DSC (DSC vs. GPO vs. DCM - What and When)
Step by Step instructions to install Cluster Domain deployment model
Power shell desired state configuration for Devops and ALM practitioners
Azure Security and Management
Ad

More from Ravikanth Chaganti (20)

PPTX
Azure Bicep - An Introduction
PPTX
Azure CLI 2.0 Tips and Tricks
PPTX
Tests Driven PowerShell Learning
PPTX
PowerShell Data as File System
PPTX
Azure at the command line
PPTX
Microsoft Azure Cloud and DevOps
PPTX
Using PowerShell DSC with AWS Cloud and CloudFormation
PPTX
Developing Infrastructure Code for CI & CD
PPTX
Operations Validation for Infrastructure As Code - PSConfEU 2016
PPTX
Authoring Azure Resource Manager Templates - Future Unleashed 2015
PPTX
Cloud Computing for IT professionals
PPTX
Introduction to Microsoft Azure Compute
PPTX
Windows Server 2012 R2 Hyper-V Replica
PPTX
Whats new in Windows Server 2012 R2 Hyper-V
PPTX
Power shell saturday ravikanth
PPTX
PowerShell 3.0 workflows
PPTX
Introduction to PowerShell and getting started
PPTX
PowerShell in the enterprise - TechED India 2011
PPTX
Managing Hyper-V With PowerShell
PPTX
Using PowerShell for active directory management
Azure Bicep - An Introduction
Azure CLI 2.0 Tips and Tricks
Tests Driven PowerShell Learning
PowerShell Data as File System
Azure at the command line
Microsoft Azure Cloud and DevOps
Using PowerShell DSC with AWS Cloud and CloudFormation
Developing Infrastructure Code for CI & CD
Operations Validation for Infrastructure As Code - PSConfEU 2016
Authoring Azure Resource Manager Templates - Future Unleashed 2015
Cloud Computing for IT professionals
Introduction to Microsoft Azure Compute
Windows Server 2012 R2 Hyper-V Replica
Whats new in Windows Server 2012 R2 Hyper-V
Power shell saturday ravikanth
PowerShell 3.0 workflows
Introduction to PowerShell and getting started
PowerShell in the enterprise - TechED India 2011
Managing Hyper-V With PowerShell
Using PowerShell for active directory management
Ad

Recently uploaded (20)

PPTX
Cloud computing and distributed systems.
PDF
Electronic commerce courselecture one. Pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PPT
Teaching material agriculture food technology
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Empathic Computing: Creating Shared Understanding
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
KodekX | Application Modernization Development
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
Big Data Technologies - Introduction.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Cloud computing and distributed systems.
Electronic commerce courselecture one. Pdf
Network Security Unit 5.pdf for BCA BBA.
Teaching material agriculture food technology
NewMind AI Monthly Chronicles - July 2025
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
“AI and Expert System Decision Support & Business Intelligence Systems”
Review of recent advances in non-invasive hemoglobin estimation
Empathic Computing: Creating Shared Understanding
20250228 LYD VKU AI Blended-Learning.pptx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
The Rise and Fall of 3GPP – Time for a Sabbatical?
KodekX | Application Modernization Development
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Big Data Technologies - Introduction.pptx
The AUB Centre for AI in Media Proposal.docx
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy

Cross platform configuration management using Desired State Configuration

  • 1. CROSS-PLATFORM CONFIGURATION MANAGEMENT WITH DESIRED STATE CONFIGURATION Ravikanth C Windows PowerShell MVP PowerShellMagazine.com @ravikanth
  • 3. DSC PRIMER • Address challenges in – Continuous Delivery and Integration – Configuration Management • Management Platform – Available for Windows and Linux/Unix • Provides – Language Extensions – Resources – PowerShell Cmdlets • Declarative Style (DSL) • Push and Pull configuration delivery
  • 4. DSC PRIMER What about these and many others?
  • 5. DSC PRIMER • Configuration Management as an API • Write your own tools to – Author – Stage – Push – Monitor • Or use 3rd-party tools such as ScriptRock GaurdRail and so on!
  • 6. DSC PRIMER • Configuration is stored at: – Windows: C:WindowsSystem32Configuration – Linux: /opt/omi-1.0.8/etc/dsc/configuration • Current.mof – Present configuration (N) • Backup.mof – Copy of Current.mof • Pending.mof – Configuration changes pending • Previous.mof – N-1 configuration • MetaConfig.mof – LCM configuration
  • 7. DSC PRIMER • DSC logs provide insight into configuration changes and issues • Windows: Event Logs – Applications and Services Logs/Microsoft/Windows/Desired State Configuration • Linux: /opt/omi-1.0.8/var/log
  • 8. DSC IN ACTION & DSC API Demo
  • 9. DSC PRIMER • Custom resource authoring is easy! – Heard of Modules? • For Windows OS – Script Modules – Binary Modules in C# – MI Provider (native code) • For Linux OS – MI Provider
  • 11. DECLARATIVE SYNTAX Configuration ArchiveDemo { Node SRV3-WS2012R2 { Archive ArchiveDemo { Path = "10.10.10.101BackupScripts.zip" DestinationPath = "C:Scripts" Ensure="Present" } } } ArchiveDemo .PS1
  • 13. LCM API CIM Method PowerShell Cmdlet SendConfigurationApply Start-DscConfiguration SendConfiguration - ApplyConfiguration - GetConfiguration Get-DscConfiguration Rollback Restore-DscConfiguration TestConfiguration Test-DscConfiguration StopConfiguration - SendMetaConfigurationApply Set-DscLocalConfigurationManager GetMetaConfiguration Get-DscLocalConfigurationManager PerformRequiredConfigurationChecks -
  • 14. Custom Resources • Three Functions – Get-TargetResource – Set-TargetResource – Test-TargetResource Start Test- TargetResource Set- TargetResource False End True